1 /* Generic video mixer plugin 2 * Copyright (C) 2008 Wim Taymans <wim@fluendo.com> 3 * Copyright (C) 2010 Sebastian Dröge <sebastian.droege@collabora.co.uk> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21 #ifndef __GST_VIDEO_MIXER2_PAD_H__ 22 #define __GST_VIDEO_MIXER2_PAD_H__ 23 24 #include <gst/gst.h> 25 #include <gst/video/video.h> 26 27 #include <gst/base/gstcollectpads.h> 28 29 G_BEGIN_DECLS 30 31 #define GST_TYPE_VIDEO_MIXER2_PAD (gst_videomixer2_pad_get_type()) 32 #define GST_VIDEO_MIXER2_PAD(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_MIXER2_PAD, GstVideoMixer2Pad)) 34 #define GST_VIDEO_MIXER2_PAD_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_MIXER_PAD, GstVideoMixer2PadClass)) 36 #define GST_IS_VIDEO_MIXER2_PAD(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_MIXER2_PAD)) 38 #define GST_IS_VIDEO_MIXER2_PAD_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_MIXER2_PAD)) 40 41 typedef struct _GstVideoMixer2Pad GstVideoMixer2Pad; 42 typedef struct _GstVideoMixer2PadClass GstVideoMixer2PadClass; 43 typedef struct _GstVideoMixer2Collect GstVideoMixer2Collect; 44 45 /** 46 * GstVideoMixer2Pad: 47 * 48 * The opaque #GstVideoMixer2Pad structure. 49 */ 50 struct _GstVideoMixer2Pad 51 { 52 GstPad parent; 53 54 /* < private > */ 55 56 /* caps */ 57 GstVideoInfo info; 58 59 /* properties */ 60 gint xpos, ypos; 61 guint zorder; 62 gdouble alpha; 63 64 GstVideoMixer2Collect *mixcol; 65 66 /* caps used for conversion if needed */ 67 GstVideoInfo conversion_info; 68 69 /* Converter, if NULL no conversion is done */ 70 GstVideoConverter *convert; 71 72 gboolean need_conversion_update; 73 }; 74 75 struct _GstVideoMixer2PadClass 76 { 77 GstPadClass parent_class; 78 }; 79 80 GType gst_videomixer2_pad_get_type (void); 81 82 G_END_DECLS 83 #endif /* __GST_VIDEO_MIXER2_PAD_H__ */ 84