gst-indent run on core

Original commit message from CVS:
gst-indent run on core
parent b8edc59e
2004-03-13 Thomas Vander Stichele <thomas at apestaart dot org>
* *.c, *.h: commit of gst-indent run on core
2004-03-13 Thomas Vander Stichele <thomas at apestaart dot org> 2004-03-13 Thomas Vander Stichele <thomas at apestaart dot org>
* tools/gst-indent: * tools/gst-indent:
......
...@@ -27,48 +27,48 @@ ...@@ -27,48 +27,48 @@
#include <gst/gst.h> #include <gst/gst.h>
#include <config.h> #include <config.h>
static BonoboObject* gstreamer_factory (BonoboGenericFactory *factory, static BonoboObject *
gpointer user_data) gstreamer_factory (BonoboGenericFactory * factory, gpointer user_data)
{ {
return BONOBO_OBJECT (bonobo_media_gstreamer_new ()); return BONOBO_OBJECT (bonobo_media_gstreamer_new ());
} }
static void init_bonobo (int argc, char **argv) static void
init_bonobo (int argc, char **argv)
{ {
CORBA_ORB orb; CORBA_ORB orb;
gnome_init_with_popt_table ("bonobo-media-gstreamer", VERSION, gnome_init_with_popt_table ("bonobo-media-gstreamer", VERSION,
argc, argv, argc, argv, oaf_popt_options, 0, NULL);
oaf_popt_options, 0, NULL);
orb = oaf_init (argc, argv); orb = oaf_init (argc, argv);
if (bonobo_init (orb, NULL, NULL) == FALSE) if (bonobo_init (orb, NULL, NULL) == FALSE)
g_error ("Could not initialize Bonobo"); g_error ("Could not initialize Bonobo");
} }
static void last_unref_cb (BonoboObject *bonobo_object, static void
BonoboGenericFactory *factory) last_unref_cb (BonoboObject * bonobo_object, BonoboGenericFactory * factory)
{ {
bonobo_object_unref (BONOBO_OBJECT (factory)); bonobo_object_unref (BONOBO_OBJECT (factory));
gtk_main_quit (); gtk_main_quit ();
} }
int main (int argc, char **argv) int
main (int argc, char **argv)
{ {
BonoboGenericFactory *factory; BonoboGenericFactory *factory;
gst_init (&argc, &argv); gst_init (&argc, &argv);
init_bonobo (argc, argv); init_bonobo (argc, argv);
factory = bonobo_generic_factory_new ( factory = bonobo_generic_factory_new ("OAFIID:Bonobo_Media_GStreamer_Factory",
"OAFIID:Bonobo_Media_GStreamer_Factory", gstreamer_factory, NULL);
gstreamer_factory, NULL);
gtk_signal_connect (GTK_OBJECT (bonobo_context_running_get ()), "last_unref", gtk_signal_connect (GTK_OBJECT (bonobo_context_running_get ()), "last_unref",
GTK_SIGNAL_FUNC (last_unref_cb), factory); GTK_SIGNAL_FUNC (last_unref_cb), factory);
bonobo_main (); bonobo_main ();
return 0; return 0;
} }
...@@ -174,12 +174,6 @@ pipeline</ulink> and Microsoft's DirectShow for some background. ...@@ -174,12 +174,6 @@ pipeline</ulink> and Microsoft's DirectShow for some background.
@use_threads: @use_threads:
<!-- ##### VARIABLE g_log_domain_gstreamer ##### -->
<para>
The variable that holds the GStreamer log domain
</para>
<!-- ##### MACRO GST_VERSION_MAJOR ##### --> <!-- ##### MACRO GST_VERSION_MAJOR ##### -->
<para> <para>
The major version of GStreamer at compile time The major version of GStreamer at compile time
......
...@@ -72,6 +72,34 @@ The GstBin object ...@@ -72,6 +72,34 @@ The GstBin object
</para> </para>
<!-- ##### SIGNAL GstBin::element-added ##### -->
<para>
</para>
@gstbin: the object which received the signal.
@arg1: the element that was added to the bin
<!-- ##### SIGNAL GstBin::element-removed ##### -->
<para>
</para>
@gstbin: the object which received the signal.
@arg1: the element that was removed from the bin
<!-- ##### SIGNAL GstBin::iterate ##### -->
<para>
This signal is emitted when a bin iterates, either automatically or
due to a #gst_bin_iterate() call. The return value is used to
determine if the object method handler processed any data.
In most normal cases, a user-provided signal handler should return
FALSE.
</para>
@gstbin: the object which received the signal.
@Returns: TRUE if the state of the bin was advanced.
<!-- ##### USER_FUNCTION GstBinPrePostIterateFunction ##### --> <!-- ##### USER_FUNCTION GstBinPrePostIterateFunction ##### -->
<para> <para>
The signature of the callback for the post and pre iterate function as set with The signature of the callback for the post and pre iterate function as set with
...@@ -224,31 +252,3 @@ gst_bin_set_pre_iterate_function() and gst_bin_set_post_iterate_function(). ...@@ -224,31 +252,3 @@ gst_bin_set_pre_iterate_function() and gst_bin_set_post_iterate_function().
@clock: @clock:
<!-- ##### SIGNAL GstBin::element-added ##### -->
<para>
</para>
@gstbin: the object which received the signal.
@arg1: the element that was added to the bin
<!-- ##### SIGNAL GstBin::element-removed ##### -->
<para>
</para>
@gstbin: the object which received the signal.
@arg1: the element that was removed from the bin
<!-- ##### SIGNAL GstBin::iterate ##### -->
<para>
This signal is emitted when a bin iterates, either automatically or
due to a #gst_bin_iterate() call. The return value is used to
determine if the object method handler processed any data.
In most normal cases, a user-provided signal handler should return
FALSE.
</para>
@gstbin: the object which received the signal.
@Returns: TRUE if the state of the bin was advanced.
...@@ -235,6 +235,21 @@ Get the clock flags ...@@ -235,6 +235,21 @@ Get the clock flags
</para> </para>
<!-- ##### ARG GstClock:event-diff ##### -->
<para>
</para>
<!-- ##### ARG GstClock:max-diff ##### -->
<para>
Maximum allowed diff for clock sync requests against the real time.
</para>
<!-- ##### ARG GstClock:stats ##### -->
<para>
Boolean property to activate stat generation on the clock.
</para>
<!-- ##### FUNCTION gst_clock_set_speed ##### --> <!-- ##### FUNCTION gst_clock_set_speed ##### -->
<para> <para>
...@@ -402,18 +417,3 @@ Get the clock flags ...@@ -402,18 +417,3 @@ Get the clock flags
@id: @id:
<!-- ##### ARG GstClock:event-diff ##### -->
<para>
</para>
<!-- ##### ARG GstClock:max-diff ##### -->
<para>
Maximum allowed diff for clock sync requests against the real time.
</para>
<!-- ##### ARG GstClock:stats ##### -->
<para>
Boolean property to activate stat generation on the clock.
</para>
...@@ -20,16 +20,6 @@ You'll get a bitmask of flags with gst_cpu_get_flags(). ...@@ -20,16 +20,6 @@ You'll get a bitmask of flags with gst_cpu_get_flags().
</para> </para>
<!-- ##### ENUM GstCPUFlags ##### -->
<para>
Flags that represent cpu capabilities
</para>
@GST_CPU_FLAG_MMX: The cpu is mmx enabled
@GST_CPU_FLAG_SSE: The cpu is sse enabled
@GST_CPU_FLAG_MMXEXT: The cpu has extended mmx instructions
@GST_CPU_FLAG_3DNOW: The cpu is 3DNOW enabled
<!-- ##### FUNCTION gst_cpu_get_flags ##### --> <!-- ##### FUNCTION gst_cpu_get_flags ##### -->
<para> <para>
Request a set of bits specifiying the features of the CPU. Request a set of bits specifiying the features of the CPU.
......
...@@ -71,6 +71,59 @@ The element object ...@@ -71,6 +71,59 @@ The element object
</para> </para>
<!-- ##### SIGNAL GstElement::eos ##### -->
<para>
Signal emited when the element goes to PAUSED due to an end-of-stream
condition.
</para>
@gstelement: the object which received the signal.
<!-- ##### SIGNAL GstElement::error ##### -->
<para>
This signal is emitted when an element has encountered an error that caused
it to fail performing its function.
</para>
@gstelement: the object which received the signal.
@arg1: the original #GstElement that generated the error.
@arg2: a #GError containing the translated error message.
@arg3: a debug string providing additional untranslated debug information, or NULL.
<!-- ##### SIGNAL GstElement::found-tag ##### -->
<para>
</para>
@gstelement: the object which received the signal.
@arg1:
@arg2:
<!-- ##### SIGNAL GstElement::new-pad ##### -->
<para>
Is triggered whenever a new pad is added to an element.
</para>
@gstelement: the object which received the signal.
@arg1: the new pad that was added
<!-- ##### SIGNAL GstElement::pad-removed ##### -->
<para>
Is triggered whenever a pad has been removed from the element.
</para>
@gstelement: the object which received the signal.
@arg1: The pad that was removed.
<!-- ##### SIGNAL GstElement::state-change ##### -->
<para>
Is triggered whenever the state of an element changes.
</para>
@gstelement: the object which received the signal.
@arg1: the new state of the object
@arg2:
<!-- ##### MACRO gst_element_get_name ##### --> <!-- ##### MACRO gst_element_get_name ##### -->
<para> <para>
Gets the name of the element. Gets the name of the element.
...@@ -966,56 +1019,3 @@ Helper macro to create query type functions ...@@ -966,56 +1019,3 @@ Helper macro to create query type functions
@...: list of query types. @...: list of query types.
<!-- ##### SIGNAL GstElement::eos ##### -->
<para>
Signal emited when the element goes to PAUSED due to an end-of-stream
condition.
</para>
@gstelement: the object which received the signal.
<!-- ##### SIGNAL GstElement::error ##### -->
<para>
This signal is emitted when an element has encountered an error that caused
it to fail performing its function.
</para>
@gstelement: the object which received the signal.
@arg1: the original #GstElement that generated the error.
@arg2: a #GError containing the translated error message.
@arg3: a debug string providing additional untranslated debug information, or NULL.
<!-- ##### SIGNAL GstElement::found-tag ##### -->
<para>
</para>
@gstelement: the object which received the signal.
@arg1:
@arg2:
<!-- ##### SIGNAL GstElement::new-pad ##### -->
<para>
Is triggered whenever a new pad is added to an element.
</para>
@gstelement: the object which received the signal.
@arg1: the new pad that was added
<!-- ##### SIGNAL GstElement::pad-removed ##### -->
<para>
Is triggered whenever a pad has been removed from the element.
</para>
@gstelement: the object which received the signal.
@arg1: The pad that was removed.
<!-- ##### SIGNAL GstElement::state-change ##### -->
<para>
Is triggered whenever the state of an element changes.
</para>
@gstelement: the object which received the signal.
@arg1: the new state of the object
@arg2:
...@@ -15,18 +15,6 @@ formats can be used to perform seeking or conversions/query operations. ...@@ -15,18 +15,6 @@ formats can be used to perform seeking or conversions/query operations.
#GstPad, #GstElement #GstPad, #GstElement
</para> </para>
<!-- ##### ENUM GstFormat ##### -->
<para>
Standard predefined formats
</para>
@GST_FORMAT_UNDEFINED: undefined format
@GST_FORMAT_DEFAULT: the default format of the pad/element
@GST_FORMAT_BYTES: bytes
@GST_FORMAT_TIME: time in nanoseconds
@GST_FORMAT_BUFFERS: buffers
@GST_FORMAT_PERCENT: percentage of stream
<!-- ##### MACRO GST_FORMAT_PERCENT_MAX ##### --> <!-- ##### MACRO GST_FORMAT_PERCENT_MAX ##### -->
<para> <para>
The PERCENT format is between 0 and this value The PERCENT format is between 0 and this value
......
...@@ -209,6 +209,19 @@ The GstIndex object ...@@ -209,6 +209,19 @@ The GstIndex object
</para> </para>
<!-- ##### SIGNAL GstIndex::entry-added ##### -->
<para>
Is emited when a new entry is added to the index.
</para>
@gstindex: the object which received the signal.
@arg1: The entry added to the index.
<!-- ##### ARG GstIndex:resolver ##### -->
<para>
</para>
<!-- ##### FUNCTION gst_index_new ##### --> <!-- ##### FUNCTION gst_index_new ##### -->
<para> <para>
...@@ -401,16 +414,3 @@ The GstIndex object ...@@ -401,16 +414,3 @@ The GstIndex object
@id: @id:
<!-- ##### SIGNAL GstIndex::entry-added ##### -->
<para>
Is emited when a new entry is added to the index.
</para>
@gstindex: the object which received the signal.
@arg1: The entry added to the index.
<!-- ##### ARG GstIndex:resolver ##### -->
<para>
</para>
...@@ -21,12 +21,6 @@ The GstMemChunk is used to allocate critical resources for #GstBuffer and ...@@ -21,12 +21,6 @@ The GstMemChunk is used to allocate critical resources for #GstBuffer and
#GstAtomic, #GstBuffer, #GstEvent, #GstData #GstAtomic, #GstBuffer, #GstEvent, #GstData
</para> </para>
<!-- ##### STRUCT GstMemChunk ##### -->
<para>
The memchunk structure
</para>
<!-- ##### FUNCTION gst_mem_chunk_new ##### --> <!-- ##### FUNCTION gst_mem_chunk_new ##### -->
<para> <para>
......
...@@ -40,6 +40,47 @@ The GstObject ...@@ -40,6 +40,47 @@ The GstObject
</para> </para>