40844209f9713bf5288ca8db6504c2faf7a7c219
[platform/upstream/gst-plugins-good.git] / gst / smpte / gstsmpte.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20
21 #ifndef __GST_SMPTE_H__
22 #define __GST_SMPTE_H__
23
24 #include <gst/gst.h>
25 #include <gstmask.h>
26
27 #define GST_TYPE_SMPTE \
28   (gst_smpte_get_type())
29 #define GST_SMPTE(obj) \
30   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SMPTE,GstSMPTE))
31 #define GST_SMPTE_CLASS(klass) \
32   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SMPTE,GstSMPTE))
33 #define GST_IS_SMPTE(obj) \
34   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SMPTE))
35 #define GST_IS_SMPTE_CLASS(obj) \
36   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SMPTE))
37
38 typedef struct _GstSMPTE GstSMPTE;
39 typedef struct _GstSMPTEClass GstSMPTEClass;
40
41 struct _GstSMPTE {
42   GstElement     element;
43
44   gint           format;
45   gint           width;
46   gint           height;
47   gdouble        fps;
48
49   gint           duration;
50   gint           position;
51
52   GstPad        *srcpad,
53                 *sinkpad1,
54                 *sinkpad2;
55
56   gint           type;
57   gint           border;
58   gint           depth;
59   GstMask       *mask;
60 };
61
62 struct _GstSMPTEClass {
63   GstElementClass parent_class;
64 };
65
66 #endif /* __GST_SMPTE_H__ */