GstUtils
Name
GstUtils -- Utility functions
Synopsis
#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);
gint gst_util_get_int_arg (GObject *object,
const gchar *argname);
gboolean gst_util_get_bool_arg (GObject *object,
const gchar *argname);
glong gst_util_get_long_arg (GObject *object,
const gchar *argname);
gfloat gst_util_get_float_arg (GObject *object,
const gchar *argname);
gdouble gst_util_get_double_arg (GObject *object,
const gchar *argname);
const gchar* gst_util_get_string_arg (GObject *object,
const gchar *argname);
gpointer gst_util_get_pointer_arg (GObject *object,
const gchar *argname);
gint64 gst_util_get_int64_arg (GObject *object,
const gchar *argname);
void gst_util_dump_mem (guchar *mem,
guint size);
gboolean gst_util_has_arg (GObject *object,
const gchar *argname,
GType arg_type);
void gst_print_element_args (GString *buf,
gint indent,
GstElement *element);
void gst_print_pad_caps (GString *buf,
gint indent,
GstPad *pad);
|
Description
Some convenience functions
Details
gst_util_set_object_arg ()
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.
gst_util_set_value_from_string ()
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.
gst_util_get_int_arg ()
gint gst_util_get_int_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as an integer.
gst_util_get_bool_arg ()
gboolean gst_util_get_bool_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as a boolean.
gst_util_get_long_arg ()
glong gst_util_get_long_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as a long.
gst_util_get_float_arg ()
gfloat gst_util_get_float_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as a float.
gst_util_get_double_arg ()
gdouble gst_util_get_double_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as a double.
gst_util_get_string_arg ()
const gchar* gst_util_get_string_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as a string.
gst_util_get_pointer_arg ()
gpointer gst_util_get_pointer_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as a pointer.
gst_util_get_int64_arg ()
gint64 gst_util_get_int64_arg (GObject *object,
const gchar *argname); |
Retrieves a property of an object as an int64.
gst_util_dump_mem ()
void gst_util_dump_mem (guchar *mem,
guint size); |
Dumps the memory block into a hex representation. Useful for debugging.
gst_util_has_arg ()
gboolean gst_util_has_arg (GObject *object,
const gchar *argname,
GType arg_type); |
Determines whether this object has a property of name
argname and of type arg_type
gst_print_element_args ()
void gst_print_element_args (GString *buf,
gint indent,
GstElement *element); |
Print the element argument in a human readable format in the given
GString.
gst_print_pad_caps ()
void gst_print_pad_caps (GString *buf,
gint indent,
GstPad *pad); |
Write the pad capabilities in a human readable format into
the given GString.