2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3 * <2002> Wim Tayans <wim.taymans@chello.be>
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.
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.
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.
21 #ifndef __GST_CDXA_PARSE_H__
22 #define __GST_CDXA_PARSE_H__
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))
46 typedef struct _GstCDXAParse GstCDXAParse;
47 typedef struct _GstCDXAParseClass GstCDXAParseClass;
49 struct _GstCDXAParse {
56 /* CDXA decoding state */
57 GstCDXAParseState state;
59 gint64 offset; /* current byte offset in file */
60 gint64 datasize; /* upstream size in bytes */
61 gint64 datastart; /* byte offset of first frame sync */
66 struct _GstCDXAParseClass {
67 GstElementClass parent_class;
70 GType gst_cdxa_parse_get_type (void);
74 #endif /* __GST_CDXA_PARSE_H__ */