codecparser: mpeg4 type error
[profile/ivi/gst-plugins-bad.git] / gst / sdi / gstsdidemux.h
1 /* GStreamer
2  * Copyright (C) 2010 REAL_NAME <EMAIL_ADDRESS>
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 #ifndef _GST_SDI_DEMUX_H_
21 #define _GST_SDI_DEMUX_H_
22
23 #include <gst/gst.h>
24 #include <gst/gst.h>
25
26 G_BEGIN_DECLS
27
28 #define GST_TYPE_SDI_DEMUX   (gst_sdi_demux_get_type())
29 #define GST_SDI_DEMUX(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SDI_DEMUX,GstSdiDemux))
30 #define GST_SDI_DEMUX_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SDI_DEMUX,GstSdiDemuxClass))
31 #define GST_IS_SDI_DEMUX(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SDI_DEMUX))
32 #define GST_IS_SDI_DEMUX_CLASS(obj)   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SDI_DEMUX))
33
34 typedef struct _GstSdiDemux GstSdiDemux;
35 typedef struct _GstSdiDemuxClass GstSdiDemuxClass;
36 typedef struct _GstSdiFormat GstSdiFormat;
37
38 struct _GstSdiDemux
39 {
40   GstElement base_sdidemux;
41   GstPad *sinkpad;
42   GstPad *srcpad;
43
44   GstBuffer *output_buffer;
45   int line;
46   int offset;
47
48   gboolean have_hsync;
49   gboolean have_vsync;
50   guchar stored_line[2160]; /* 864/2*5 */
51
52   int frame_number;
53   guint32 last_sync;
54   GstSdiFormat *format;
55 };
56
57 struct _GstSdiFormat
58 {
59   int lines;
60   int active_lines;
61   int width;
62   int start0;
63   int start1;
64   int tff;
65 };
66
67 struct _GstSdiDemuxClass
68 {
69   GstElementClass base_sdidemux_class;
70 };
71
72 GType gst_sdi_demux_get_type (void);
73
74 G_END_DECLS
75
76 #endif