codecparser: mpeg4 type error
[profile/ivi/gst-plugins-bad.git] / gst / cdxaparse / gstcdxaparse.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *               <2002> Wim Tayans <wim.taymans@chello.be>
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_CDXA_PARSE_H__
22 #define __GST_CDXA_PARSE_H__
23
24 #include <gst/gst.h>
25
26 G_BEGIN_DECLS
27
28 #define GST_TYPE_CDXA_PARSE \
29   (gst_cdxa_parse_get_type())
30 #define GST_CDXA_PARSE(obj) \
31   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CDXA_PARSE,GstCDXAParse))
32 #define GST_CDXA_PARSE_CLASS(klass) \
33   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CDXA_PARSE,GstCDXAParseClass))
34 #define GST_IS_CDXA_PARSE(obj) \
35   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CDXA_PARSE))
36 #define GST_IS_CDXA_PARSE_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CDXA_PARSE))
38
39 typedef enum {
40   GST_CDXA_PARSE_START,
41   GST_CDXA_PARSE_FMT,
42   GST_CDXA_PARSE_OTHER,
43   GST_CDXA_PARSE_DATA,
44 } GstCDXAParseState;
45
46 typedef struct _GstCDXAParse GstCDXAParse;
47 typedef struct _GstCDXAParseClass GstCDXAParseClass;
48
49 struct _GstCDXAParse {
50   GstElement  element;
51
52   /* pads */
53   GstPad    *sinkpad;
54   GstPad    *srcpad;
55
56   /* CDXA decoding state */
57   GstCDXAParseState state;
58
59   gint64     offset;    /* current byte offset in file     */
60   gint64     datasize;  /* upstream size in bytes          */
61   gint64     datastart; /* byte offset of first frame sync */
62   gint64     bytes_skipped;
63   gint64     bytes_sent;
64 };
65
66 struct _GstCDXAParseClass {
67   GstElementClass parent_class;
68 };
69
70 GType           gst_cdxa_parse_get_type         (void);
71
72 G_END_DECLS
73
74 #endif /* __GST_CDXA_PARSE_H__ */
75