3 * Copyright (C) 2017 Collabora Inc.
4 * Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef _GST_FAKE_VIDEO_SINK_H_
23 #define _GST_FAKE_VIDEO_SINK_H_
28 * GstFakeVideoSinkAllocationMetaFlags:
29 * @GST_ALLOCATION_FLAG_CROP_META: Expose the crop meta as supported
30 * @GST_ALLOCATION_FLAG_OVERLAY_COMPOSITION_META: Expose the overlay composition meta as supported
32 * Extra flags to configure the behaviour of the sink.
37 GST_ALLOCATION_FLAG_CROP_META = (1 << 0),
38 GST_ALLOCATION_FLAG_OVERLAY_COMPOSITION_META = (2 << 0)
39 } GstFakeVideoSinkAllocationMetaFlags;
41 #define GST_TYPE_FAKE_VIDEO_SINK_ALLOCATION_META_FLAGS (gst_fake_video_sink_allocation_meta_flags_get_type())
42 GType gst_fake_video_sink_allocation_meta_flags_get_type (void);
45 #define GST_TYPE_FAKE_VIDEO_SINK \
46 (gst_fake_video_sink_get_type())
47 #define GST_FAKE_VIDEO_SINK(obj) \
48 (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_FAKE_VIDEO_SINK, GstFakeVideoSink))
49 #define GST_FAKE_VIDEO_SINK_CLASS(klass) \
50 (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_FAKE_VIDEO_SINK, GstFakeVideoSinkClass))
51 #define GST_FAKE_VIDEO_SINK_GET_CLASS(obj) \
52 (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_FAKE_VIDEO_SINK, GstFakeVideoSinkClass))
53 #define GST_IS_FAKE_VIDEO_SINK(obj) \
54 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_FAKE_VIDEO_SINK))
55 #define GST_IS_FAKE_VIDEO_SINK_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_FAKE_VIDEO_SINK))
60 typedef struct _GstFakeVideoSink GstFakeVideoSink;
61 typedef struct _GstFakeVideoSinkClass GstFakeVideoSinkClass;
63 struct _GstFakeVideoSink
67 GstFakeVideoSinkAllocationMetaFlags allocation_meta_flags;
71 struct _GstFakeVideoSinkClass
76 void (*handoff) (GstElement *element, GstBuffer *buf, GstPad *pad);
77 void (*preroll_handoff) (GstElement *element, GstBuffer *buf, GstPad *pad);
80 GType gst_fake_video_sink_get_type (void);