diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-02-10 17:41:18 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-02-10 17:41:18 +0000 |
commit | 1ca7ef34c29c044f65901d3a7c14a2e5389b252f (patch) | |
tree | 96459dccbd264d70662e76a6eba2e55d7d5a9d01 /gst/cdxaparse/gstcdxaparse.h | |
parent | f6c865ba05181e8f1448886f5fa5e93ab6996e37 (diff) | |
download | gst-plugins-bad-1ca7ef34c29c044f65901d3a7c14a2e5389b252f.tar.gz gst-plugins-bad-1ca7ef34c29c044f65901d3a7c14a2e5389b252f.tar.bz2 gst-plugins-bad-1ca7ef34c29c044f65901d3a7c14a2e5389b252f.zip |
Port cdxaparse, makes VCD playback work.
Original commit message from CVS:
* configure.ac:
* gst/cdxaparse/Makefile.am:
* gst/cdxaparse/gstcdxaparse.c:
* gst/cdxaparse/gstcdxaparse.h:
Port cdxaparse, makes VCD playback work.
Diffstat (limited to 'gst/cdxaparse/gstcdxaparse.h')
-rw-r--r-- | gst/cdxaparse/gstcdxaparse.h | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/gst/cdxaparse/gstcdxaparse.h b/gst/cdxaparse/gstcdxaparse.h index afe4111c..1f063d8e 100644 --- a/gst/cdxaparse/gstcdxaparse.h +++ b/gst/cdxaparse/gstcdxaparse.h @@ -18,57 +18,58 @@ * Boston, MA 02111-1307, USA. */ -#ifndef __GST_CDXAPARSE_H__ -#define __GST_CDXAPARSE_H__ +#ifndef __GST_CDXA_PARSE_H__ +#define __GST_CDXA_PARSE_H__ #include <gst/gst.h> -#include "gst/riff/riff-ids.h" -#include "gst/riff/riff-read.h" G_BEGIN_DECLS -#define GST_TYPE_CDXAPARSE \ - (gst_cdxaparse_get_type()) -#define GST_CDXAPARSE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CDXAPARSE,GstCDXAParse)) -#define GST_CDXAPARSE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CDXAPARSE,GstCDXAParse)) -#define GST_IS_CDXAPARSE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CDXAPARSE)) -#define GST_IS_CDXAPARSE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CDXAPARSE)) +#define GST_TYPE_CDXA_PARSE \ + (gst_cdxa_parse_get_type()) +#define GST_CDXA_PARSE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CDXA_PARSE,GstCDXAParse)) +#define GST_CDXA_PARSE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CDXA_PARSE,GstCDXAParse)) +#define GST_IS_CDXA_PARSE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CDXA_PARSE)) +#define GST_IS_CDXA_PARSE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CDXA_PARSE)) typedef enum { - GST_CDXAPARSE_START, - GST_CDXAPARSE_FMT, - GST_CDXAPARSE_OTHER, - GST_CDXAPARSE_DATA, + GST_CDXA_PARSE_START, + GST_CDXA_PARSE_FMT, + GST_CDXA_PARSE_OTHER, + GST_CDXA_PARSE_DATA, } GstCDXAParseState; typedef struct _GstCDXAParse GstCDXAParse; typedef struct _GstCDXAParseClass GstCDXAParseClass; struct _GstCDXAParse { - GstRiffRead parent; + GstElement element; /* pads */ - GstPad *sinkpad,*srcpad; + GstPad *sinkpad; + GstPad *srcpad; /* CDXA decoding state */ GstCDXAParseState state; - guint64 dataleft, datasize, datastart; - - gboolean seek_pending; - guint64 seek_offset; + gint64 offset; /* current byte offset in file */ + gint64 datasize; /* upstream size in bytes */ + gint64 datastart; /* byte offset of first frame sync */ + gint64 bytes_skipped; + gint64 bytes_sent; }; struct _GstCDXAParseClass { GstElementClass parent_class; }; -GType gst_cdxaparse_get_type (void); +GType gst_cdxa_parse_get_type (void); G_END_DECLS -#endif /* __GST_CDXAPARSE_H__ */ +#endif /* __GST_CDXA_PARSE_H__ */ + |