upload tizen1.0 source
[framework/multimedia/gst-plugins-good0.10.git] / gst / videomixer / videomixer2pad.h
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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, 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 "gstcollectpads2.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   gint width, height;
58   gint fps_n;
59   gint fps_d;
60
61   /* properties */
62   gint xpos, ypos;
63   guint zorder;
64   gdouble alpha;
65
66   GstVideoMixer2Collect *mixcol;
67 };
68
69 struct _GstVideoMixer2PadClass
70 {
71   GstPadClass parent_class;
72 };
73
74 GType gst_videomixer2_pad_get_type (void);
75
76 G_END_DECLS
77 #endif /* __GST_VIDEO_MIXER2_PAD_H__ */