## GstUtils GstUtils — various utility functions |

## Synopsis

    #include <gst/gst.h>

    void        gst_util_set_value_from_string  (GValue *value,
                                                 const gchar *value_str);
    void        gst_util_set_object_arg         (GObject *object,
                                                 const gchar *name,
                                                 const gchar *value);
    void        gst_util_dump_mem               (const guchar *mem,
                                                 guint size);
    void        gst_print_pad_caps              (GString *buf,
                                                 gint indent,
                                                 GstPad *pad);
    void        gst_print_element_args          (GString *buf,
                                                 gint indent,
                                                 GstElement *element);
    #define     GST_BOILERPLATE_FULL            (type, type_as_function, parent_type, parent_type_macro, additional_initializations)
    #define     GST_BOILERPLATE                 (type,type_as_function,parent_type,parent_type_macro)
    #define     GST_CALL_PARENT                 (parent_class_cast, name, args)
    #define     GST_CALL_PARENT_WITH_DEFAULT    (parent_class_cast, name, args, def_return)
    #define     GST_READ_UINT8                  (data)
    #define     GST_READ_UINT16_LE              (data)
    #define     GST_READ_UINT16_BE              (data)
    #define     GST_READ_UINT32_LE              (data)
    #define     GST_READ_UINT32_BE              (data)
    #define     GST_READ_UINT64_LE              (data)
    #define     GST_READ_UINT64_BE              (data)
    #define     GST_WRITE_UINT8                 (data, num)
    #define     GST_WRITE_UINT16_LE             (data, num)
    #define     GST_WRITE_UINT16_BE             (data, num)
    #define     GST_WRITE_UINT32_LE             (data, num)
    #define     GST_WRITE_UINT32_BE             (data, num)
    #define     GST_WRITE_UINT64_LE             (data, num)
    #define     GST_WRITE_UINT64_BE             (data, num)

## Description

## Details

### 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.

`value` : | the value to set
`value_str` : | the string to get the value from

### 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.

`object` : | the object to set the argument of
`name` : | the name of the argument to set
`value` : | the string value to set

### gst_util_dump_mem ()

    void        gst_util_dump_mem               (const 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

### 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.

`buf` : | the buffer to print the caps in
`indent` : | initial indentation
`pad` : | the pad to print the caps from

### 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.

`buf` : | the buffer to print the args in
`indent` : | initial indentation
`element` : | the element to print the args of

### GST_BOILERPLATE_FULL()

    #define     GST_BOILERPLATE_FULL(type, type_as_function, parent_type, parent_type_macro, additional_initializations)

`type` : |
`type_as_function` : |
`parent_type` : |
`parent_type_macro` : |
`additional_initializations` : |

### GST_BOILERPLATE()

    #define     GST_BOILERPLATE(type,type_as_function,parent_type,parent_type_macro)

`type` : |
`type_as_function` : |
`parent_type` : |
`parent_type_macro` : |

### GST_CALL_PARENT()

    #define     GST_CALL_PARENT(parent_class_cast, name, args)

`parent_class_cast` : |
`name` : |
`args` : |

### GST_CALL_PARENT_WITH_DEFAULT()

    #define     GST_CALL_PARENT_WITH_DEFAULT(parent_class_cast, name, args, def_return)

`parent_class_cast` : |
`name` : |
`args` : |
`def_return` : |

### GST_READ_UINT8()

    #define     GST_READ_UINT8(data)

`data` : |

### GST_READ_UINT16_LE()

    #define     GST_READ_UINT16_LE(data)

`data` : |

### GST_READ_UINT16_BE()

    #define     GST_READ_UINT16_BE(data)

`data` : |

### GST_READ_UINT32_LE()

    #define     GST_READ_UINT32_LE(data)

`data` : |

### GST_READ_UINT32_BE()

    #define     GST_READ_UINT32_BE(data)

`data` : |

### GST_READ_UINT64_LE()

    #define     GST_READ_UINT64_LE(data)

`data` : |

### GST_READ_UINT64_BE()

    #define     GST_READ_UINT64_BE(data)

`data` : |

### GST_WRITE_UINT8()

    #define     GST_WRITE_UINT8(data, num)

`data` : |
`num` : |

### GST_WRITE_UINT16_LE()

    #define     GST_WRITE_UINT16_LE(data, num)

`data` : |
`num` : |

### GST_WRITE_UINT16_BE()

    #define     GST_WRITE_UINT16_BE(data, num)

`data` : |
`num` : |

### GST_WRITE_UINT32_LE()

    #define     GST_WRITE_UINT32_LE(data, num)

`data` : |
`num` : |

### GST_WRITE_UINT32_BE()

    #define     GST_WRITE_UINT32_BE(data, num)

`data` : |
`num` : |

### GST_WRITE_UINT64_LE()

    #define     GST_WRITE_UINT64_LE(data, num)

`data` : |
`num` : |

### GST_WRITE_UINT64_BE()

    #define     GST_WRITE_UINT64_BE(data, num)

`data` : |
`num` : |