mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
1e4ad29e52
Original commit message from CVS: * docs/gst/gstreamer-docs.sgml: I got tired of the reference manual being such complete crap, that I decided to do major hacking of it. This checkin replaces any fine tuning that may have been done previously, with the benefit of actually being complete for much of the API that was changed since 0.6. Further fine tuning will occur shortly. (bug #134721) * docs/gst/gstreamer-sections.txt: * docs/gst/tmpl/GstBin.sgml: * docs/gst/tmpl/GstBuffer.sgml: * docs/gst/tmpl/GstCaps.sgml: * docs/gst/tmpl/GstClock.sgml: * docs/gst/tmpl/GstCompat.sgml: * docs/gst/tmpl/GstData.sgml: * docs/gst/tmpl/GstElement.sgml: * docs/gst/tmpl/GstEvent.sgml: * docs/gst/tmpl/GstIndex.sgml: * docs/gst/tmpl/GstStructure.sgml: * docs/gst/tmpl/GstTag.sgml: * docs/gst/tmpl/cothreads.sgml: * docs/gst/tmpl/cothreads_compat.sgml: * docs/gst/tmpl/gettext.sgml: * docs/gst/tmpl/grammar.tab.sgml: * docs/gst/tmpl/gst-i18n-app.sgml: * docs/gst/tmpl/gst-i18n-lib.sgml: * docs/gst/tmpl/gst.sgml: * docs/gst/tmpl/gst_private.sgml: * docs/gst/tmpl/gstaggregator.sgml: * docs/gst/tmpl/gstarch.sgml: * docs/gst/tmpl/gstatomic.sgml: * docs/gst/tmpl/gstatomic_impl.sgml: * docs/gst/tmpl/gstbin.sgml: * docs/gst/tmpl/gstbuffer.sgml: * docs/gst/tmpl/gstbufferstore.sgml: * docs/gst/tmpl/gstcaps.sgml: * docs/gst/tmpl/gstclock.sgml: * docs/gst/tmpl/gstcompat.sgml: * docs/gst/tmpl/gstconfig.sgml: * docs/gst/tmpl/gstcpu.sgml: * docs/gst/tmpl/gstdata.sgml: * docs/gst/tmpl/gstdata_private.sgml: * docs/gst/tmpl/gstelement.sgml: * docs/gst/tmpl/gstenumtypes.sgml: * docs/gst/tmpl/gsterror.sgml: * docs/gst/tmpl/gstevent.sgml: * docs/gst/tmpl/gstfakesink.sgml: * docs/gst/tmpl/gstfakesrc.sgml: * docs/gst/tmpl/gstfilesink.sgml: * docs/gst/tmpl/gstfilter.sgml: * docs/gst/tmpl/gstindex.sgml: * docs/gst/tmpl/gstinfo.sgml: * docs/gst/tmpl/gstinterface.sgml: * docs/gst/tmpl/gstlog.sgml: * docs/gst/tmpl/gstmacros.sgml: * docs/gst/tmpl/gstmarshal.sgml: * docs/gst/tmpl/gstmd5sink.sgml: * docs/gst/tmpl/gstmultifilesrc.sgml: * docs/gst/tmpl/gstobject.sgml: * docs/gst/tmpl/gstpad.sgml: * docs/gst/tmpl/gstparse.sgml: * docs/gst/tmpl/gstpipeline.sgml: * docs/gst/tmpl/gstplugin.sgml: * docs/gst/tmpl/gstpluginfeature.sgml: * docs/gst/tmpl/gstqueue.sgml: * docs/gst/tmpl/gstreamer-unused.sgml: * docs/gst/tmpl/gstregistry.sgml: * docs/gst/tmpl/gstregistrypool.sgml: * docs/gst/tmpl/gstscheduler.sgml: * docs/gst/tmpl/gstsearchfuncs.sgml: * docs/gst/tmpl/gstshaper.sgml: * docs/gst/tmpl/gstspider.sgml: * docs/gst/tmpl/gstspideridentity.sgml: * docs/gst/tmpl/gststructure.sgml: * docs/gst/tmpl/gstsystemclock.sgml: * docs/gst/tmpl/gsttag.sgml: * docs/gst/tmpl/gsttaginterface.sgml: * docs/gst/tmpl/gsttee.sgml: * docs/gst/tmpl/gstthread.sgml: * docs/gst/tmpl/gsttrace.sgml: * docs/gst/tmpl/gsttrashstack.sgml: * docs/gst/tmpl/gsttypefind.sgml: * docs/gst/tmpl/gsttypes.sgml: * docs/gst/tmpl/gsturi.sgml: * docs/gst/tmpl/gsturitype.sgml: * docs/gst/tmpl/gstutils.sgml: * docs/gst/tmpl/gstvalue.sgml: * docs/gst/tmpl/gstversion.sgml: * docs/gst/tmpl/gstxml.sgml: * docs/gst/tmpl/gstxmlregistry.sgml: * docs/gst/tmpl/gthread-cothreads.sgml: * docs/gst/tmpl/types.sgml:
342 lines
5.5 KiB
Text
342 lines
5.5 KiB
Text
<!-- ##### SECTION Title ##### -->
|
|
GstObject
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Base class for the GStreamer object hierarchy
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
GstObject provides a root for the object hierarchy tree filed in by the
|
|
GST library. It is currently a thin wrapper on top of
|
|
<classname>GObject</classname>. It is an abstract class that is not
|
|
very usable on its own.
|
|
</para>
|
|
|
|
<para>
|
|
GstObject gives us basic refcounting, parenting functionality and locking.
|
|
</para>
|
|
<para>
|
|
gst_object_set_name() and gst_object_get_name() are used to set/get the name of the
|
|
object.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### MACRO GST_OBJECT_CLASS ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@klass:
|
|
|
|
|
|
<!-- ##### MACRO xmlNodePtr ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ENUM GstObjectFlags ##### -->
|
|
<para>
|
|
Flags for an object
|
|
</para>
|
|
|
|
@GST_DESTROYED: The object is flagged for destruction
|
|
@GST_FLOATING: The object is created but has no parent yet to manage it
|
|
@GST_OBJECT_FLAG_LAST: subclasses can add additional flags starting from this flag
|
|
|
|
<!-- ##### MACRO GST_FLAGS ##### -->
|
|
<para>
|
|
This macro returns the entire set of flags for the object.
|
|
</para>
|
|
|
|
@obj: Object to return flags for.
|
|
|
|
|
|
<!-- ##### MACRO GST_FLAG_IS_SET ##### -->
|
|
<para>
|
|
This macro checks to see if the given flag is set.
|
|
</para>
|
|
|
|
@obj: GstSrc to check for flag in.
|
|
@flag: Flag to check for, must be a single bit in guint32.
|
|
|
|
|
|
<!-- ##### MACRO GST_FLAG_SET ##### -->
|
|
<para>
|
|
This macro sets the given bits.
|
|
</para>
|
|
|
|
@obj: Object to set flag in.
|
|
@flag: Flag to set, can by any number of bits in guint32.
|
|
|
|
|
|
<!-- ##### MACRO GST_FLAG_UNSET ##### -->
|
|
<para>
|
|
This macro usets the given bits.
|
|
</para>
|
|
|
|
@obj: Object to unset flag in.
|
|
@flag: Flag to set, must be a single bit in guint32.
|
|
|
|
|
|
<!-- ##### MACRO GST_OBJECT_NAME ##### -->
|
|
<para>
|
|
Get the name of this object
|
|
</para>
|
|
|
|
@obj: Object to get the name of.
|
|
|
|
|
|
<!-- ##### MACRO GST_OBJECT_PARENT ##### -->
|
|
<para>
|
|
Get the parent of this object
|
|
</para>
|
|
|
|
@obj: Object to get the parent of.
|
|
|
|
|
|
<!-- ##### MACRO GST_OBJECT_DESTROYED ##### -->
|
|
<para>
|
|
Check if the object has been destroyed.
|
|
</para>
|
|
|
|
@obj: The Object to check
|
|
|
|
|
|
<!-- ##### MACRO GST_OBJECT_FLOATING ##### -->
|
|
<para>
|
|
Check if the object is floating.
|
|
</para>
|
|
|
|
@obj: The Object to check
|
|
|
|
|
|
<!-- ##### MACRO GST_LOCK ##### -->
|
|
<para>
|
|
This macro will obtain a lock on the object, making serialization
|
|
possible.
|
|
</para>
|
|
|
|
@obj: Object to lock.
|
|
|
|
|
|
<!-- ##### MACRO GST_TRYLOCK ##### -->
|
|
<para>
|
|
This macro will try to obtain a lock on the object, but will return with
|
|
FALSE if it can't get it immediately.
|
|
</para>
|
|
|
|
@obj: Object to try to get a lock on.
|
|
|
|
|
|
<!-- ##### MACRO GST_UNLOCK ##### -->
|
|
<para>
|
|
This macro releases a lock on the object.
|
|
</para>
|
|
|
|
@obj: Object to unlock.
|
|
|
|
|
|
<!-- ##### MACRO GST_GET_LOCK ##### -->
|
|
<para>
|
|
Acquire a reference to the mutex of this object.
|
|
</para>
|
|
|
|
@obj: Object to get the mutex of.
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_set_name ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@name:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_get_name ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_set_parent ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@parent:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_get_parent ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_unparent ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_default_deep_notify ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@orig:
|
|
@pspec:
|
|
@excluded_props:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_check_uniqueness ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@list:
|
|
@name:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_save_thyself ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@parent:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_restore_thyself ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@self:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_ref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object: the object
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_unref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object: the object
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_sink ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object: the object
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_replace ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@oldobj:
|
|
@newobj:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_object_get_path_string ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_class_signal_connect ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@klass:
|
|
@name:
|
|
@func:
|
|
@func_data:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_class_signal_emit_by_name ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@object:
|
|
@name:
|
|
@self:
|
|
|
|
|
|
<!-- ##### SIGNAL GstObject::deep-notify ##### -->
|
|
<para>
|
|
The deep notify signal is used to be notified of property changes.
|
|
it is typically attached to the toplevel bin to receive notifications
|
|
from all the elements contained in that bin.
|
|
</para>
|
|
|
|
@gstobject: the object which received the signal.
|
|
@arg1: the object that originated the signal
|
|
@arg2: the property that changed
|
|
|
|
<!-- ##### SIGNAL GstObject::object-saved ##### -->
|
|
<para>
|
|
Is trigered whenever a new object is saved to XML. You can connect to
|
|
this signal to insert custom XML tags into the core XML.
|
|
</para>
|
|
|
|
@gstobject: the object which received the signal.
|
|
@arg1: the xmlNodePtr of the parent node
|
|
|
|
<!-- ##### SIGNAL GstObject::parent-set ##### -->
|
|
<para>
|
|
Is emitted when the parent of an object is set.
|
|
</para>
|
|
|
|
@gstobject: the object which received the signal.
|
|
@arg1: the new parent
|
|
|
|
<!-- ##### SIGNAL GstObject::parent-unset ##### -->
|
|
<para>
|
|
Is emitted when the parent of an object is unset.
|
|
</para>
|
|
|
|
@gstobject: the object which received the signal.
|
|
@arg1: the old parent
|
|
|
|
<!-- ##### ARG GstObject:name ##### -->
|
|
<para>
|
|
The name of the object
|
|
</para>
|
|
|