2000-12-30 16:13:17 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
2001-01-21 23:20:46 +00:00
|
|
|
GstInfo
|
2000-12-30 16:13:17 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
info/debugging/error handling
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
gstinfo.c contains a number of debuggins subsystems.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>The INFO subsystem is used to provide informative printouts to
|
|
|
|
application and plugin developers. These messages can be enabled and
|
|
|
|
disabled via a category system, which is a bitmask enabling you to turn
|
|
|
|
on and off any subset of categories.</para>
|
|
|
|
|
|
|
|
<para>The DEBUG subsystem is similar, but is intended for core developers
|
|
|
|
and those writing more complex pipelines or filters. It uses the same
|
|
|
|
category system, but must be enabled at configure time else it's not
|
|
|
|
compiled into the library. autogen.sh automatically enables the DEBUG
|
|
|
|
subsystem.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>The ERROR subsystem doesn't use categories, but will print out a
|
|
|
|
more verbose message, and attempt to print out a stack trace of the error
|
|
|
|
before aborting the application.
|
2000-12-30 16:13:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### FUNCTION gst_get_category_name ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
@category:
|
|
|
|
@Returns:
|
2000-12-30 16:13:17 +00:00
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### FUNCTION gst_info_get_categories ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
@Returns:
|
2000-12-30 16:13:17 +00:00
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### FUNCTION gst_info_set_categories ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
@categories:
|
2000-12-30 16:13:17 +00:00
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### FUNCTION gst_info_enable_category ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
@category:
|
2000-12-30 16:13:17 +00:00
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### FUNCTION gst_info_disable_category ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
@category:
|
2000-12-30 16:13:17 +00:00
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### FUNCTION gst_default_info_handler ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@category:
|
|
|
|
@file:
|
|
|
|
@function:
|
|
|
|
@line:
|
|
|
|
@debug_string:
|
|
|
|
@element:
|
|
|
|
@string:
|
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### MACRO GST_INFO_ENABLED ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
When defined, INFO printouts are compiled into the library.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_INFO ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Print out any information usable at run-time by application developers.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-04 22:16:06 +00:00
|
|
|
@cat: the GST_CAT_... category for the information
|
|
|
|
@format: printf-style format string
|
|
|
|
@args...: printf arguments
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_INFO_ELEMENT ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Print out information like #GST_INFO, but with an element pointer to clarify things.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-04 22:16:06 +00:00
|
|
|
@cat: the GST_CAT_... category for the information
|
|
|
|
@element: pointer to the #GstElement in question
|
|
|
|
@format: printf-style format string
|
|
|
|
@args...: printf arguments
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_debug_get_categories ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_debug_set_categories ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@categories:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_debug_enable_category ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@category:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_debug_disable_category ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@category:
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_SET_STRING ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Set the debug string for the current function, typically containing the arguments
|
|
|
|
to the current function, i.e. "('element')"
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-04 22:16:06 +00:00
|
|
|
@format: printf-style format string
|
|
|
|
@args...: printf arguments
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_ENTER ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Called at the beginning of a function, it simply prints out a DEBUG string of "entering"
|
|
|
|
in addition to the given string.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-04 22:16:06 +00:00
|
|
|
@format: printf-style format string
|
|
|
|
@args...: printf arguments
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_ENTER_STRING ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Combine #GST_DEBUG_ENTER and #GST_DEBUG_SET_STRING.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_LEAVE ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@format:
|
|
|
|
@args...:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_LEAVE_STRING ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_NOPREFIX ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cat:
|
|
|
|
@format:
|
|
|
|
@args...:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Print out debugging information.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-04 22:16:06 +00:00
|
|
|
@cat: the GST_CAT_... the debug falls within
|
|
|
|
@format: printf-style format string
|
|
|
|
@args...: printf arguments
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_ENABLE_CATEGORIES ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_FUNCPTR ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@ptr:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_PREFIX ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-05-03 20:06:18 +00:00
|
|
|
@cat:
|
2001-01-01 17:25:43 +00:00
|
|
|
@format:
|
|
|
|
@args...:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_ENABLED ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_FUNCPTR_NAME ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@ptr:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_DEBUG_PAD_NAME ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_ERROR ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Print out an error condition and abort the application.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-04 22:16:06 +00:00
|
|
|
@element: the #GstElement in question
|
|
|
|
@format: printf-style format string
|
|
|
|
@args...: printf arguments
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_ERROR_OBJECT ##### -->
|
|
|
|
<para>
|
2001-01-04 22:16:06 +00:00
|
|
|
Print out an error condition and abort the application.
|
2001-01-01 17:25:43 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-04 22:16:06 +00:00
|
|
|
@element: the #GstElement in question
|
|
|
|
@object: pointer to a 'contributing' object
|
|
|
|
@format: printf-style format string
|
|
|
|
@args...: printf arguments
|
2001-01-01 17:25:43 +00:00
|
|
|
|
|
|
|
|
2001-05-03 20:06:18 +00:00
|
|
|
<!-- ##### MACRO GST_DEBUG_CHAR_MODE ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### FUNCTION gst_default_error_handler ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2000-12-30 16:13:17 +00:00
|
|
|
@file:
|
|
|
|
@function:
|
|
|
|
@line:
|
|
|
|
@debug_string:
|
|
|
|
@element:
|
2001-01-01 17:25:43 +00:00
|
|
|
@object:
|
2000-12-30 16:13:17 +00:00
|
|
|
@string:
|
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### USER_FUNCTION GstInfoHandler ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
@category:
|
2000-12-30 16:13:17 +00:00
|
|
|
@file:
|
|
|
|
@function:
|
|
|
|
@line:
|
|
|
|
@debug_string:
|
|
|
|
@element:
|
|
|
|
@string:
|
|
|
|
|
|
|
|
|
2001-01-01 17:25:43 +00:00
|
|
|
<!-- ##### USER_FUNCTION GstErrorHandler ##### -->
|
2000-12-30 16:13:17 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@file:
|
|
|
|
@function:
|
|
|
|
@line:
|
|
|
|
@debug_string:
|
|
|
|
@element:
|
|
|
|
@object:
|
|
|
|
@string:
|
|
|
|
|
|
|
|
|