![]() | ![]() | ![]() | GStreamer 0.8 Core API Reference (0.8.0) | ![]() |
---|
GstUtils — Utility functions
#include <gst/gst.h> void gst_util_set_object_arg (GObject *object, const gchar *name, const gchar *value); void gst_util_set_value_from_string (GValue *value, const gchar *value_str); void gst_util_dump_mem (guchar *mem, guint size); void gst_print_element_args (GString *buf, gint indent, GstElement *element); void gst_print_pad_caps (GString *buf, gint indent, GstPad *pad);
Some convenience functions
void gst_util_set_object_arg (GObject *object, const gchar *name, const gchar *value);
Convertes the string value to the type of the objects argument and sets the argument with it.
object : | the object to set the argument of |
name : | the name of the argument to set |
value : | the string value to set |
void gst_util_set_value_from_string (GValue *value, const gchar *value_str);
Converts the string to the type of the value and sets the value with it.
value : | the value to set |
value_str : | the string to get the value from |
void gst_util_dump_mem (guchar *mem, guint size);
Dumps the memory block into a hex representation. Useful for debugging.
mem : | a pointer to the memory to dump |
size : | the size of the memory block to dump |
void gst_print_element_args (GString *buf, gint indent, GstElement *element);
Print the element argument in a human readable format in the given GString.
buf : | the buffer to print the args in |
indent : | initial indentation |
element : | the element to print the args of |
void gst_print_pad_caps (GString *buf, gint indent, GstPad *pad);
Write the pad capabilities in a human readable format into the given GString.
buf : | the buffer to print the caps in |
indent : | initial indentation |
pad : | the pad to print the caps from |
<< GstURIHandler | GstXML >> |