From a3443b51d5c96c311f9f2e12d135fa19d179878f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 16 Apr 2000 18:47:45 +0000 Subject: [PATCH] Unified getbits handling. I currently have an inline integer implementation. Original commit message from CVS: Unified getbits handling. I currently have an inline integer implementation. --- configure.in | 1 + docs/gst/gstreamer-decl.txt | 63 ++++++++++++++++++++++- docs/gst/tmpl/gstreamer-unused.sgml | 78 ++++++++++++++--------------- libs/Makefile.am | 4 +- test/mp3play.c | 6 +-- 5 files changed, 106 insertions(+), 46 deletions(-) diff --git a/configure.in b/configure.in index b887039521..217c77616d 100644 --- a/configure.in +++ b/configure.in @@ -301,6 +301,7 @@ gst/xml/Makefile libs/Makefile libs/riff/Makefile libs/colorspace/Makefile +libs/getbits/Makefile plugins/Makefile plugins/au/Makefile plugins/wav/Makefile diff --git a/docs/gst/gstreamer-decl.txt b/docs/gst/gstreamer-decl.txt index 1ad134b115..ce2f17a172 100644 --- a/docs/gst/gstreamer-decl.txt +++ b/docs/gst/gstreamer-decl.txt @@ -359,6 +359,64 @@ GstBuffer *buffer void GstBuffer *buffer,GstMeta *meta + +GstClockTime +typedef guint64 GstClockTime; + + +GstClockTimeDiff +typedef gint64 GstClockTimeDiff; + + +GST_CLOCK_DIFF +#define GST_CLOCK_DIFF(s, e) (GstClockTimeDiff)((s)-(e)) + + +GstClock + + +GstClock +struct GstClock { + gchar *name; + GstClockTime start_time; + GstClockTime current_time; + GstClockTimeDiff adjust; + gboolean locking; + GList *sinkobjects; + GMutex *sinkmutex; + GMutex *lock; +}; + + +gst_clock_new +GstClock * +gchar *name + + +gst_clock_get_system +GstClock * +void + + +gst_clock_register +void +GstClock *clock, GstObject *obj + + +gst_clock_set +void +GstClock *clock, GstClockTime time + + +gst_clock_reset +void +GstClock *clock + + +gst_clock_wait +void +GstClock *clock, GstClockTime time, GstObject *obj + GST_TYPE_CONNECTION #define GST_TYPE_CONNECTION \ @@ -1876,8 +1934,11 @@ struct GstAudioSink { GstPad *sinkpad; + GstClockTime clocktime; + GstClock *clock; /* soundcard state */ int fd; + int caps; /* the capabilities */ gint format; gint channels; gint frequency; @@ -2630,7 +2691,7 @@ struct MetaVideoRaw { /* formatting information */ gint format; - GdkVisual *visual; + GdkVisual *visual; // dimensions of the video buffer gint width; gint height; diff --git a/docs/gst/tmpl/gstreamer-unused.sgml b/docs/gst/tmpl/gstreamer-unused.sgml index 3a53dc78ab..ad4dac80b6 100644 --- a/docs/gst/tmpl/gstreamer-unused.sgml +++ b/docs/gst/tmpl/gstreamer-unused.sgml @@ -167,13 +167,6 @@ @Returns: - - - - - -@Returns: - @@ -181,19 +174,19 @@ @obj: - - - - - - - + @Returns: + + + + + + @@ -201,6 +194,13 @@ @klass: + + + + + +@Returns: + @@ -339,12 +339,6 @@ - - - - - - @@ -352,6 +346,12 @@ @klass: + + + + + + @@ -660,14 +660,14 @@ The frequency. - + @klass: - + @@ -1267,13 +1267,6 @@ plugin - - - - - -@meta: - @@ -1281,6 +1274,13 @@ plugin @Returns: + + + + + +@meta: + @@ -1322,6 +1322,12 @@ plugin + + + + + + @@ -1329,12 +1335,6 @@ plugin @obj: - - - - - - @@ -1412,6 +1412,10 @@ GstElement @obj: + + + + @@ -1419,10 +1423,6 @@ GstElement @src: - - - - diff --git a/libs/Makefile.am b/libs/Makefile.am index 2d992366d3..2e0eff56cd 100644 --- a/libs/Makefile.am +++ b/libs/Makefile.am @@ -1,3 +1,3 @@ -SUBDIRS = riff colorspace +SUBDIRS = riff colorspace getbits -DIST_SUBDIRS = riff colorspace +DIST_SUBDIRS = riff colorspace getbits diff --git a/test/mp3play.c b/test/mp3play.c index 60d63add25..f0cabbcd0f 100644 --- a/test/mp3play.c +++ b/test/mp3play.c @@ -1,6 +1,5 @@ #include -extern gboolean _gst_plugin_spew; void eof(GstSrc *src) { g_print("have eof, quitting\n"); @@ -15,10 +14,9 @@ int main(int argc,char *argv[]) { g_print("have %d args\n",argc); - _gst_plugin_spew = TRUE; gst_init(&argc,&argv); -// gst_plugin_load("mp3parse"); - gst_plugin_load_all(); + gst_plugin_load("mp3parse"); + gst_plugin_load("mpg123"); pipeline = gst_pipeline_new("pipeline"); g_return_if_fail(pipeline != NULL);