codecparser: mpeg4 type error
[profile/ivi/gst-plugins-bad.git] / gst / cdxaparse / gstvcdparse.h
1 /* GStreamer CDXA sync strippper / VCD parser
2  * Copyright (C) 2004 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  * Copyright (C) 2008 Tim-Philipp Müller <tim centricular net>
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_VCD_PARSE_H__
22 #define __GST_VCD_PARSE_H__
23
24 #include <gst/gst.h>
25 #include <gst/base/gstadapter.h>
26
27 G_BEGIN_DECLS
28
29 #define GST_TYPE_VCD_PARSE \
30   (gst_vcd_parse_get_type())
31 #define GST_VCD_PARSE(obj) \
32   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VCD_PARSE,GstVcdParse))
33 #define GST_VCD_PARSE_CLASS(klass) \
34   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VCD_PARSE,GstVcdParseClass))
35 #define GST_IS_VCD_PARSE(obj) \
36   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VCD_PARSE))
37 #define GST_IS_VCD_PARSE_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VCD_PARSE))
39
40 #define GST_CDXA_SECTOR_SIZE    2352
41 #define GST_CDXA_DATA_SIZE      2324
42 #define GST_CDXA_HEADER_SIZE    24
43
44 typedef struct _GstVcdParse GstVcdParse;
45 typedef struct _GstVcdParseClass GstVcdParseClass;
46
47 struct _GstVcdParse {
48   GstElement element;
49
50   GstPad     *sinkpad;
51   GstPad     *srcpad;
52   GstAdapter *adapter;
53 };
54
55 struct _GstVcdParseClass {
56   GstElementClass element_class;
57 };
58
59 GType           gst_vcd_parse_get_type  (void);
60
61 G_END_DECLS
62
63 #endif /* __GST_VCD_PARSE_H__ */
64