Unified getbits handling. I currently have an inline integer implementation.
authorWim Taymans <wim.taymans@gmail.com>
Sun, 16 Apr 2000 18:47:45 +0000 (18:47 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 16 Apr 2000 18:47:45 +0000 (18:47 +0000)
Original commit message from CVS:
Unified getbits handling. I currently have an inline integer implementation.

configure.in
docs/gst/gstreamer-decl.txt
docs/gst/tmpl/gstreamer-unused.sgml
libs/Makefile.am
test/mp3play.c

index b887039..217c776 100644 (file)
@@ -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
index 1ad134b..ce2f17a 100644 (file)
@@ -359,6 +359,64 @@ GstBuffer *buffer
 <RETURNS>void  </RETURNS>
 GstBuffer *buffer,GstMeta *meta
 </FUNCTION>
+<TYPEDEF>
+<NAME>GstClockTime</NAME>
+typedef guint64 GstClockTime;
+</TYPEDEF>
+<TYPEDEF>
+<NAME>GstClockTimeDiff</NAME>
+typedef gint64 GstClockTimeDiff;
+</TYPEDEF>
+<MACRO>
+<NAME>GST_CLOCK_DIFF</NAME>
+#define GST_CLOCK_DIFF(s, e) (GstClockTimeDiff)((s)-(e))
+</MACRO>
+<STRUCT>
+<NAME>GstClock</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GstClock</NAME>
+struct GstClock {
+  gchar *name;
+  GstClockTime start_time;
+  GstClockTime current_time;
+  GstClockTimeDiff adjust;
+  gboolean locking;
+  GList *sinkobjects;
+  GMutex *sinkmutex;
+  GMutex *lock;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>gst_clock_new</NAME>
+<RETURNS>GstClock  *</RETURNS>
+gchar *name
+</FUNCTION>
+<FUNCTION>
+<NAME>gst_clock_get_system</NAME>
+<RETURNS>GstClock  *</RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gst_clock_register</NAME>
+<RETURNS>void  </RETURNS>
+GstClock *clock, GstObject *obj
+</FUNCTION>
+<FUNCTION>
+<NAME>gst_clock_set</NAME>
+<RETURNS>void  </RETURNS>
+GstClock *clock, GstClockTime time
+</FUNCTION>
+<FUNCTION>
+<NAME>gst_clock_reset</NAME>
+<RETURNS>void  </RETURNS>
+GstClock *clock
+</FUNCTION>
+<FUNCTION>
+<NAME>gst_clock_wait</NAME>
+<RETURNS>void  </RETURNS>
+GstClock *clock, GstClockTime time, GstObject *obj
+</FUNCTION>
 <MACRO>
 <NAME>GST_TYPE_CONNECTION</NAME>
 #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;
index 3a53dc7..ad4dac8 100644 (file)
 
 @Returns: 
 
-<!-- ##### FUNCTION gst_object_get_type ##### -->
+<!-- ##### MACRO GST_SINESRC ##### -->
 <para>
 
 </para>
 
-@Returns
+@obj
 
-<!-- ##### MACRO GST_SINESRC ##### -->
+<!-- ##### FUNCTION gst_object_get_type ##### -->
 <para>
 
 </para>
 
-@obj
+@Returns
 
 <!-- ##### SECTION ./tmpl/plugin.sgml:Long_Description ##### -->
 <para>
 </para>
 
 
-<!-- ##### FUNCTION gst_audiosrc_get_type ##### -->
+<!-- ##### MACRO GST_QUEUE_CLASS ##### -->
 <para>
 
 </para>
 
-@Returns: 
+@klass: 
 
-<!-- ##### MACRO GST_QUEUE_CLASS ##### -->
+<!-- ##### FUNCTION gst_audiosrc_get_type ##### -->
 <para>
 
 </para>
 
-@klass: 
+@Returns: 
 
 <!-- ##### MACRO GST_IS_QUEUE ##### -->
 <para>
 </para>
 
 
-<!-- ##### STRUCT GstFakeSink ##### -->
+<!-- ##### MACRO GST_THREAD_CLASS ##### -->
 <para>
 
 </para>
 
+@klass: 
 
-<!-- ##### MACRO GST_THREAD_CLASS ##### -->
+<!-- ##### STRUCT GstFakeSink ##### -->
 <para>
 
 </para>
 
-@klass: 
 
 <!-- ##### MACRO GST_BIN_CLASS ##### -->
 <para>
@@ -660,14 +660,14 @@ The frequency.
 </para>
 
 
-<!-- ##### MACRO GST_ASYNCDISKSRC_CLASS ##### -->
+<!-- ##### MACRO GST_ESDSINK_CLASS ##### -->
 <para>
 
 </para>
 
 @klass: 
 
-<!-- ##### MACRO GST_ESDSINK_CLASS ##### -->
+<!-- ##### MACRO GST_ASYNCDISKSRC_CLASS ##### -->
 <para>
 
 </para>
@@ -1267,19 +1267,19 @@ plugin
 </para>
 
 
-<!-- ##### MACRO GST_META ##### -->
+<!-- ##### FUNCTION gst_audiosink_get_type ##### -->
 <para>
 
 </para>
 
-@meta
+@Returns
 
-<!-- ##### FUNCTION gst_audiosink_get_type ##### -->
+<!-- ##### MACRO GST_META ##### -->
 <para>
 
 </para>
 
-@Returns
+@meta
 
 <!-- ##### FUNCTION gst_httpsrc_get_type ##### -->
 <para>
@@ -1322,18 +1322,18 @@ plugin
 </para>
 
 
-<!-- ##### MACRO GST_IS_SINESRC_CLASS ##### -->
+<!-- ##### MACRO GST_TYPE_FILTER ##### -->
 <para>
 
 </para>
 
-@obj: 
 
-<!-- ##### MACRO GST_TYPE_FILTER ##### -->
+<!-- ##### MACRO GST_IS_SINESRC_CLASS ##### -->
 <para>
 
 </para>
 
+@obj: 
 
 <!-- ##### MACRO GST_IS_AUDIOSRC_CLASS ##### -->
 <para>
@@ -1412,6 +1412,10 @@ GstElement
 
 @obj: 
 
+<!-- ##### SECTION ./tmpl/plugin.sgml:Short_Description ##### -->
+
+
+
 <!-- ##### FUNCTION gst_audiosrc_push ##### -->
 <para>
 
@@ -1419,10 +1423,6 @@ GstElement
 
 @src: 
 
-<!-- ##### SECTION ./tmpl/plugin.sgml:Short_Description ##### -->
-
-
-
 <!-- ##### MACRO GST_HTTPSRC_CLASS ##### -->
 <para>
 
index 2d99236..2e0eff5 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS = riff colorspace
+SUBDIRS = riff colorspace getbits
 
-DIST_SUBDIRS = riff colorspace
+DIST_SUBDIRS = riff colorspace getbits
index 60d63ad..f0cabbc 100644 (file)
@@ -1,6 +1,5 @@
 #include <gst/gst.h>
 
-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);