OpenGL debugging

OpenGL debugging — helper routines for dealing with OpenGL debugging

Synopsis

gchar *             (*GstGLAsyncDebugLogGetMessage)     (gpointer user_data);
struct              GstGLAsyncDebug;
GstGLAsyncDebug *   gst_gl_async_debug_new              (void);
void                gst_gl_async_debug_free             (GstGLAsyncDebug *ad);
void                gst_gl_async_debug_init             (GstGLAsyncDebug *ad);
void                gst_gl_async_debug_unset            (GstGLAsyncDebug *ad);
void                gst_gl_async_debug_freeze           (GstGLAsyncDebug *ad);
void                gst_gl_async_debug_thaw             (GstGLAsyncDebug *ad);
void                gst_gl_async_debug_output_log_msg   (GstGLAsyncDebug *ad);
void                gst_gl_async_debug_store_log_msg    (GstGLAsyncDebug *ad,
                                                         GstDebugCategory *cat,
                                                         GstDebugLevel level,
                                                         const gchar *file,
                                                         const gchar *function,
                                                         gint line,
                                                         GObject *object,
                                                         const gchar *format,
                                                         ...);
void                gst_gl_async_debug_store_log_msg_valist
                                                        (GstGLAsyncDebug *ad,
                                                         GstDebugCategory *cat,
                                                         GstDebugLevel level,
                                                         const gchar *file,
                                                         const gchar *function,
                                                         gint line,
                                                         GObject *object,
                                                         const gchar *format,
                                                         va_list varargs);
#define             GST_GL_ASYNC_CAT_LEVEL_LOG_valist   (ad,
                                                         cat,
                                                         level,
                                                         object,
                                                         format,
                                                         varargs)
#define             GST_GL_ASYNC_CAT_LEVEL_LOG          (ad,
                                                         cat,
                                                         level,
                                                         object,
                                                         format,
                                                         ...)
void                gst_gl_insert_debug_marker          (GstGLContext *context,
                                                         const gchar *format,
                                                         ...);

Description

Details

GstGLAsyncDebugLogGetMessage ()

gchar *             (*GstGLAsyncDebugLogGetMessage)     (gpointer user_data);

struct GstGLAsyncDebug

struct GstGLAsyncDebug {
};

GstGLAsyncDebug an opaque structure and should only be accessed through the provided API.


gst_gl_async_debug_new ()

GstGLAsyncDebug *   gst_gl_async_debug_new              (void);

Free with gst_gl_async_debug_free()

ad :

a GstGLAsyncDebug

Returns :

a new GstGLAsyncDebug

Since 1.8


gst_gl_async_debug_free ()

void                gst_gl_async_debug_free             (GstGLAsyncDebug *ad);

Frees ad

ad :

a GstGLAsyncDebug

Since 1.8


gst_gl_async_debug_init ()

void                gst_gl_async_debug_init             (GstGLAsyncDebug *ad);

Initialize ad. Intended for use with GstGLAsyncDebug's that are embedded in other structs.

ad :

a GstGLAsyncDebug

Since 1.8


gst_gl_async_debug_unset ()

void                gst_gl_async_debug_unset            (GstGLAsyncDebug *ad);

Unset any dynamically allocated data. Intended for use with GstGLAsyncDebug's that are embedded in other structs.

ad :

a GstGLAsyncDebug

gst_gl_async_debug_freeze ()

void                gst_gl_async_debug_freeze           (GstGLAsyncDebug *ad);

freeze the debug output. While frozen, any call to gst_gl_async_debug_output_log_msg() will not output any messages but subsequent calls to gst_gl_async_debug_store_log_msg() will overwrite previous messages.

ad :

a GstGLAsyncDebug

Since 1.8


gst_gl_async_debug_thaw ()

void                gst_gl_async_debug_thaw             (GstGLAsyncDebug *ad);

unfreeze the debug output. See gst_gl_async_debug_freeze() for what freezing means

ad :

a GstGLAsyncDebug

Since 1.8


gst_gl_async_debug_output_log_msg ()

void                gst_gl_async_debug_output_log_msg   (GstGLAsyncDebug *ad);

Outputs a previously stored debug message.

ad :

the GstGLAsyncDebug to store the message in

gst_gl_async_debug_store_log_msg ()

void                gst_gl_async_debug_store_log_msg    (GstGLAsyncDebug *ad,
                                                         GstDebugCategory *cat,
                                                         GstDebugLevel level,
                                                         const gchar *file,
                                                         const gchar *function,
                                                         gint line,
                                                         GObject *object,
                                                         const gchar *format,
                                                         ...);

Stores a debug message for later output by gst_gl_async_debug_output_log_msg()

ad :

the GstGLAsyncDebug to store the message in

cat :

the GstDebugCategory to output the message in

level :

the GstLevel

file :

the file where the debug message originates from

function :

the function where the debug message originates from

line :

the line in file where the debug message originates from

object :

a GObject to associate with the debug message. [allow-none]

format :

a printf style format string

... :

the list of arguments for format

Since 1.8


gst_gl_async_debug_store_log_msg_valist ()

void                gst_gl_async_debug_store_log_msg_valist
                                                        (GstGLAsyncDebug *ad,
                                                         GstDebugCategory *cat,
                                                         GstDebugLevel level,
                                                         const gchar *file,
                                                         const gchar *function,
                                                         gint line,
                                                         GObject *object,
                                                         const gchar *format,
                                                         va_list varargs);

Stores a debug message for later output by gst_gl_async_debug_output_log_msg()

ad :

the GstGLAsyncDebug to store the message in

cat :

the GstDebugCategory to output the message in

level :

the GstLevel

file :

the file where the debug message originates from

function :

the function where the debug message originates from

line :

the line in file where the debug message originates from

object :

a GObject to associate with the debug message. [allow-none]

format :

a printf style format string

varargs :

the list of arguments for format

Since 1.8


GST_GL_ASYNC_CAT_LEVEL_LOG_valist()

#define             GST_GL_ASYNC_CAT_LEVEL_LOG_valist(ad,cat,level,object,format,varargs)

Stores a debug message in ad for later output

ad :

the GstGLAsyncDebug to store the message in

cat :

the GstDebugCategory to output the message in

level :

the GstLevel

object :

a GObject to associate with the debug message. [allow-none]

format :

a printf style format string

varargs :

the list of arguments for format

GST_GL_ASYNC_CAT_LEVEL_LOG()

#define             GST_GL_ASYNC_CAT_LEVEL_LOG(ad,cat,level,object,format,...)

Stores a debug message in ad for later output

ad :

the GstGLAsyncDebug to store the message in

cat :

the GstDebugCategory to output the message in

level :

the GstLevel

object :

a GObject to associate with the debug message. [allow-none]

format :

a printf style format string

... :

the list of arguments for format

gst_gl_insert_debug_marker ()

void                gst_gl_insert_debug_marker          (GstGLContext *context,
                                                         const gchar *format,
                                                         ...);

Inserts a marker into a GL debug stream. Requires the 'gldebugmarker' debug category to be at least GST_LEVEL_FIXME.

context :

a GstGLContext

format :

a printf-style format string

... :

arguments form format

Since 1.8

See Also

GstGLContext