summaryrefslogtreecommitdiffstats
path: root/gst/cdxaparse/gstvcdparse.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-04-11 13:08:24 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-04-11 13:08:24 +0000
commit2079938fc2dbc5672bd4505eb7d74cee61469d82 (patch)
treeeb9412016147519aabe84100560b2ed34dc5f607 /gst/cdxaparse/gstvcdparse.h
parent5788aba92cd13a82d993c0dfaa2a10a9d8ec677b (diff)
downloadgst-plugins-bad-2079938fc2dbc5672bd4505eb7d74cee61469d82.tar.gz
gst-plugins-bad-2079938fc2dbc5672bd4505eb7d74cee61469d82.tar.bz2
gst-plugins-bad-2079938fc2dbc5672bd4505eb7d74cee61469d82.zip
gst/cdxaparse/: Port VCD parser (formerly cdxastrip) from 0.8 to 0.10. Doesn't do anything the 0.8 version didn't do ...
Original commit message from CVS: * gst/cdxaparse/Makefile.am: * gst/cdxaparse/gstcdxaparse.c: * gst/cdxaparse/gstcdxastrip.c: * gst/cdxaparse/gstcdxastrip.h: * gst/cdxaparse/gstvcdparse.c: * gst/cdxaparse/gstvcdparse.h: Port VCD parser (formerly cdxastrip) from 0.8 to 0.10. Doesn't do anything the 0.8 version didn't do though.
Diffstat (limited to 'gst/cdxaparse/gstvcdparse.h')
-rw-r--r--gst/cdxaparse/gstvcdparse.h57
1 files changed, 27 insertions, 30 deletions
diff --git a/gst/cdxaparse/gstvcdparse.h b/gst/cdxaparse/gstvcdparse.h
index b53a5be7..e0583ad2 100644
--- a/gst/cdxaparse/gstvcdparse.h
+++ b/gst/cdxaparse/gstvcdparse.h
@@ -1,5 +1,6 @@
-/* GStreamer CDXA sync strippper
+/* GStreamer CDXA sync strippper / VCD parser
* Copyright (C) 2004 Ronald Bultje <rbultje@ronald.bitfreak.net>
+ * Copyright (C) 2008 Tim-Philipp Müller <tim centricular net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -17,51 +18,47 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef __GST_CDXASTRIP_H__
-#define __GST_CDXASTRIP_H__
+#ifndef __GST_VCD_PARSE_H__
+#define __GST_VCD_PARSE_H__
#include <gst/gst.h>
+#include <gst/base/gstadapter.h>
G_BEGIN_DECLS
-#define GST_TYPE_CDXASTRIP \
- (gst_cdxastrip_get_type())
-#define GST_CDXASTRIP(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CDXASTRIP,GstCDXAStrip))
-#define GST_CDXASTRIP_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CDXASTRIP,GstCDXAStripClass))
-#define GST_IS_CDXASTRIP(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CDXASTRIP))
-#define GST_IS_CDXASTRIP_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CDXASTRIP))
+#define GST_TYPE_VCD_PARSE \
+ (gst_vcd_parse_get_type())
+#define GST_VCD_PARSE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VCD_PARSE,GstVcdParse))
+#define GST_VCD_PARSE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VCD_PARSE,GstVcdParseClass))
+#define GST_IS_VCD_PARSE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VCD_PARSE))
+#define GST_IS_VCD_PARSE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VCD_PARSE))
#define GST_CDXA_SECTOR_SIZE 2352
#define GST_CDXA_DATA_SIZE 2324
#define GST_CDXA_HEADER_SIZE 24
-typedef struct _GstCDXAStrip GstCDXAStrip;
-typedef struct _GstCDXAStripClass GstCDXAStripClass;
+typedef struct _GstVcdParse GstVcdParse;
+typedef struct _GstVcdParseClass GstVcdParseClass;
-struct _GstCDXAStrip {
- GstElement parent;
+struct _GstVcdParse {
+ GstElement element;
- /* pads */
- GstPad *sinkpad, *srcpad;
- GstBuffer *cache;
+ GstPad *sinkpad;
+ GstPad *srcpad;
+ GstAdapter *adapter;
};
-struct _GstCDXAStripClass {
- GstElementClass parent_class;
+struct _GstVcdParseClass {
+ GstElementClass element_class;
};
-GType gst_cdxastrip_get_type (void);
-
-/*
- * Also useful for CDXAparse.
- */
-GstBuffer * gst_cdxastrip_strip (GstBuffer * buf);
-gint gst_cdxastrip_sync (GstBuffer * buf);
+GType gst_vcd_parse_get_type (void);
G_END_DECLS
-#endif /* __GST_CDXASTRIP_H__ */
+#endif /* __GST_VCD_PARSE_H__ */
+