1 /* 2 * GStreamer 3 * Copyright (C) 2017 Collabora Inc. 4 * Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> 5 * 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. 10 * 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. 15 * 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. 20 */ 21 22 #ifndef _GST_FAKE_VIDEO_SINK_H_ 23 #define _GST_FAKE_VIDEO_SINK_H_ 24 25 #include <gst/gst.h> 26 27 /** 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 31 * 32 * Extra flags to configure the behaviour of the sink. 33 * 34 * Since: 1.18 35 */ 36 typedef enum { 37 GST_ALLOCATION_FLAG_CROP_META = (1 << 0), 38 GST_ALLOCATION_FLAG_OVERLAY_COMPOSITION_META = (2 << 0) 39 } GstFakeVideoSinkAllocationMetaFlags; 40 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); 43 44 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)) 57 58 G_BEGIN_DECLS 59 60 typedef struct _GstFakeVideoSink GstFakeVideoSink; 61 typedef struct _GstFakeVideoSinkClass GstFakeVideoSinkClass; 62 63 struct _GstFakeVideoSink 64 { 65 GstBin parent; 66 GstElement *child; 67 GstFakeVideoSinkAllocationMetaFlags allocation_meta_flags; 68 }; 69 70 struct _GstFakeVideoSinkClass 71 { 72 GstBinClass parent; 73 }; 74 75 GType gst_fake_video_sink_get_type (void); 76 77 G_END_DECLS 78 79 #endif 80