## GstUtils GstUtils |

## Functions

#define | GST_CALL_PARENT()
#define | GST_CALL_PARENT_WITH_DEFAULT()
#define | GST_READ_UINT8()
#define | GST_READ_UINT16_LE()
#define | GST_READ_UINT16_BE()
#define | GST_READ_UINT24_LE()
#define | GST_READ_UINT24_BE()
#define | GST_READ_UINT32_LE()
#define | GST_READ_UINT32_BE()
#define | GST_READ_UINT64_LE()
#define | GST_READ_UINT64_BE()
gfloat | GST_READ_FLOAT_LE ()
gfloat | GST_READ_FLOAT_BE ()
gdouble | GST_READ_DOUBLE_LE ()
gdouble | GST_READ_DOUBLE_BE ()
#define | GST_WRITE_UINT8()
#define | GST_WRITE_UINT16_LE()
#define | GST_WRITE_UINT16_BE()
#define | GST_WRITE_UINT24_LE()
#define | GST_WRITE_UINT24_BE()
#define | GST_WRITE_UINT32_LE()
#define | GST_WRITE_UINT32_BE()
#define | GST_WRITE_UINT64_LE()
#define | GST_WRITE_UINT64_BE()
void | GST_WRITE_FLOAT_LE ()
void | GST_WRITE_FLOAT_BE ()
void | GST_WRITE_DOUBLE_LE ()
void | GST_WRITE_DOUBLE_BE ()
#define | GST_ROUND_UP_2()
#define | GST_ROUND_UP_4()
#define | GST_ROUND_UP_8()
#define | GST_ROUND_UP_16()
#define | GST_ROUND_UP_32()
#define | GST_ROUND_UP_64()
#define | GST_ROUND_UP_128()
#define | GST_ROUND_UP_N()
#define | GST_ROUND_DOWN_2()
#define | GST_ROUND_DOWN_4()
#define | GST_ROUND_DOWN_8()
#define | GST_ROUND_DOWN_16()
#define | GST_ROUND_DOWN_32()
#define | GST_ROUND_DOWN_64()
#define | GST_ROUND_DOWN_128()
#define | GST_ROUND_DOWN_N()
#define | GDOUBLE_FROM_BE()
#define | GDOUBLE_FROM_LE()
gdouble | GDOUBLE_SWAP_LE_BE ()
#define | GDOUBLE_TO_BE()
#define | GDOUBLE_TO_LE()
#define | GFLOAT_FROM_BE()
#define | GFLOAT_FROM_LE()
gfloat | GFLOAT_SWAP_LE_BE ()
#define | GFLOAT_TO_BE()
#define | GFLOAT_TO_LE()
#define | gst_guint64_to_gdouble()
#define | gst_gdouble_to_guint64()
void | gst_util_dump_mem ()
guint64 | gst_util_uint64_scale ()
guint64 | gst_util_uint64_scale_round ()
guint64 | gst_util_uint64_scale_ceil ()
guint64 | gst_util_uint64_scale_int ()
guint64 | gst_util_uint64_scale_int_round ()
guint64 | gst_util_uint64_scale_int_ceil ()
gint | gst_util_greatest_common_divisor ()
gint64 | gst_util_greatest_common_divisor_int64 ()
void | gst_util_fraction_to_double ()
void | gst_util_double_to_fraction ()
gboolean | gst_util_fraction_multiply ()
gboolean | gst_util_fraction_add ()
gint | gst_util_fraction_compare ()
guint32 | gst_util_seqnum_next ()
gint32 | gst_util_seqnum_compare ()
guint | gst_util_group_id_next ()
void | gst_util_set_object_arg ()
void | gst_util_set_value_from_string ()
GstClockTime | gst_util_get_timestamp ()
gpointer | gst_util_array_binary_search ()

## Types and Values

enum | GstSearchMode

## Includes

    #include <gst/gst.h>

## Description

## Functions

### GST_CALL_PARENT()

    #define             GST_CALL_PARENT(parent_class_cast, name, args)

### GST_CALL_PARENT_WITH_DEFAULT()

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

### GST_READ_UINT8()

    #define GST_READ_UINT8(data)            (_GST_GET (data, 0,  8,  0))

### GST_READ_UINT16_LE()

    #  define GST_READ_UINT16_LE(data)      _GST_FAST_READ_SWAP (16, data)

### GST_READ_UINT16_BE()

    #  define GST_READ_UINT16_BE(data)      _GST_FAST_READ (16, data)

### GST_READ_UINT24_LE()

    #define GST_READ_UINT24_LE(data) __gst_slow_read24_le((const guint8 *)(data))

### GST_READ_UINT24_BE()

    #define GST_READ_UINT24_BE(data) __gst_slow_read24_be((const guint8 *)(data))

### GST_READ_UINT32_LE()

    #  define GST_READ_UINT32_LE(data)      _GST_FAST_READ_SWAP (32, data)

### GST_READ_UINT32_BE()

    #  define GST_READ_UINT32_BE(data)      _GST_FAST_READ (32, data)

### GST_READ_UINT64_LE()

    #  define GST_READ_UINT64_LE(data)      _GST_FAST_READ_SWAP (64, data)

### GST_READ_UINT64_BE()

    #  define GST_READ_UINT64_BE(data)      _GST_FAST_READ (64, data)

### GST_READ_FLOAT_LE ()

    gfloat
    GST_READ_FLOAT_LE (const guint8 *data);

### GST_READ_FLOAT_BE ()

    gfloat
    GST_READ_FLOAT_BE (const guint8 *data);

### GST_READ_DOUBLE_LE ()

    gdouble
    GST_READ_DOUBLE_LE (const guint8 *data);

### GST_READ_DOUBLE_BE ()

    gdouble
    GST_READ_DOUBLE_BE (const guint8 *data);

### GST_WRITE_UINT8()

    #define             GST_WRITE_UINT8(data, num)

### GST_WRITE_UINT16_LE()

    #define             GST_WRITE_UINT16_LE(data, num)

### GST_WRITE_UINT16_BE()

    #define             GST_WRITE_UINT16_BE(data, num)

### GST_WRITE_UINT24_LE()

    #define             GST_WRITE_UINT24_LE(data, num)

### GST_WRITE_UINT24_BE()

    #define             GST_WRITE_UINT24_BE(data, num)

### GST_WRITE_UINT32_LE()

    #define             GST_WRITE_UINT32_LE(data, num)

### GST_WRITE_UINT32_BE()

    #define             GST_WRITE_UINT32_BE(data, num)

### GST_WRITE_UINT64_LE()

    #define             GST_WRITE_UINT64_LE(data, num)

### GST_WRITE_UINT64_BE()

    #define             GST_WRITE_UINT64_BE(data, num)

### GST_WRITE_FLOAT_LE ()

    void
    GST_WRITE_FLOAT_LE (guint8 *data,
                        gfloat num);

### GST_WRITE_FLOAT_BE ()

    void
    GST_WRITE_FLOAT_BE (guint8 *data,
                        gfloat num);

### GST_WRITE_DOUBLE_LE ()

    void
    GST_WRITE_DOUBLE_LE (guint8 *data,
                         gdouble num);

### GST_WRITE_DOUBLE_BE ()

    void
    GST_WRITE_DOUBLE_BE (guint8 *data,
                         gdouble num);

### GST_ROUND_UP_2()

    #define GST_ROUND_UP_2(num)  (((num)+1)&~1)

### GST_ROUND_UP_4()

    #define GST_ROUND_UP_4(num)  (((num)+3)&~3)

### GST_ROUND_UP_8()

    #define GST_ROUND_UP_8(num)  (((num)+7)&~7)

### GST_ROUND_UP_16()

    #define GST_ROUND_UP_16(num) (((num)+15)&~15)

### GST_ROUND_UP_32()

    #define GST_ROUND_UP_32(num) (((num)+31)&~31)

### GST_ROUND_UP_64()

    #define GST_ROUND_UP_64(num) (((num)+63)&~63)

### GST_ROUND_UP_128()

    #define GST_ROUND_UP_128(num) (((num)+127)&~127)

### GST_ROUND_UP_N()

    #define GST_ROUND_UP_N(num,align) ((((num) + ((align) - 1)) & ~((align) - 1)))

### GST_ROUND_DOWN_2()

    #define GST_ROUND_DOWN_2(num)  ((num)&(~1))

### GST_ROUND_DOWN_4()

    #define GST_ROUND_DOWN_4(num)  ((num)&(~3))

### GST_ROUND_DOWN_8()

    #define GST_ROUND_DOWN_8(num)  ((num)&(~7))

### GST_ROUND_DOWN_16()

    #define GST_ROUND_DOWN_16(num) ((num)&(~15))

### GST_ROUND_DOWN_32()

    #define GST_ROUND_DOWN_32(num) ((num)&(~31))

### GST_ROUND_DOWN_64()

    #define GST_ROUND_DOWN_64(num) ((num)&(~63))

### GST_ROUND_DOWN_128()

    #define GST_ROUND_DOWN_128(num) ((num)&(~127))

### GST_ROUND_DOWN_N()

    #define GST_ROUND_DOWN_N(num,align) (((num) & ~((align) - 1)))

### GDOUBLE_FROM_BE()

    #define GDOUBLE_FROM_BE(val) (GDOUBLE_TO_BE (val))

### GDOUBLE_FROM_LE()

    #define GDOUBLE_FROM_LE(val) (GDOUBLE_TO_LE (val))

### GDOUBLE_SWAP_LE_BE ()

    gdouble
    GDOUBLE_SWAP_LE_BE (gdouble in);

### GDOUBLE_TO_BE()

    #define GDOUBLE_TO_BE(val)   (GDOUBLE_SWAP_LE_BE (val))

### GDOUBLE_TO_LE()

    #define GDOUBLE_TO_LE(val)   ((gdouble) (val))

### GFLOAT_FROM_BE()

    #define GFLOAT_FROM_BE(val)  (GFLOAT_TO_BE (val))

### GFLOAT_FROM_LE()

    #define GFLOAT_FROM_LE(val)  (GFLOAT_TO_LE (val))

### GFLOAT_SWAP_LE_BE ()

    gfloat
    GFLOAT_SWAP_LE_BE (gfloat in);

### GFLOAT_TO_BE()

    #define GFLOAT_TO_BE(val)    (GFLOAT_SWAP_LE_BE (val))

### GFLOAT_TO_LE()

    #define GFLOAT_TO_LE(val)    ((gfloat) (val))

### gst_guint64_to_gdouble()

    #define         gst_guint64_to_gdouble(value)   gst_util_guint64_to_gdouble(value)

### gst_gdouble_to_guint64()

    #define         gst_gdouble_to_guint64(value)   gst_util_gdouble_to_guint64(value)

### gst_util_dump_mem ()

    void
    gst_util_dump_mem (const guchar *mem,
                       guint size);

### gst_util_uint64_scale ()

    guint64
    gst_util_uint64_scale (guint64 val,
                           guint64 num,
                           guint64 denom);

### gst_util_uint64_scale_round ()

    guint64
    gst_util_uint64_scale_round (guint64 val,
                                 guint64 num,
                                 guint64 denom);

### gst_util_uint64_scale_ceil ()

    guint64
    gst_util_uint64_scale_ceil (guint64 val,
                                guint64 num,
                                guint64 denom);

### gst_util_uint64_scale_int ()

    guint64
    gst_util_uint64_scale_int (guint64 val,
                               gint num,
                               gint denom);

### gst_util_uint64_scale_int_round ()

    guint64
    gst_util_uint64_scale_int_round (guint64 val,
                                     gint num,
                                     gint denom);

### gst_util_uint64_scale_int_ceil ()

    guint64
    gst_util_uint64_scale_int_ceil (guint64 val,
                                    gint num,
                                    gint denom);

### gst_util_greatest_common_divisor ()

    gint
    gst_util_greatest_common_divisor (gint a,
                                      gint b);

### gst_util_greatest_common_divisor_int64 ()

    gint64
    gst_util_greatest_common_divisor_int64
                                   (gint64 a,
                                    gint64 b);

### gst_util_fraction_to_double ()

    void
    gst_util_fraction_to_double (gint src_n,
                                 gint src_d,
                                 gdouble *dest);

### gst_util_double_to_fraction ()

    void
    gst_util_double_to_fraction (gdouble src,
                                 gint *dest_n,
                                 gint *dest_d);

### gst_util_fraction_multiply ()

    gboolean
    gst_util_fraction_multiply (gint a_n,
                                gint a_d,
                                gint b_n,
                                gint b_d,
                                gint *res_n,
                                gint *res_d);

### gst_util_fraction_add ()

    gboolean
    gst_util_fraction_add (gint a_n,
                           gint a_d,
                           gint b_n,
                           gint b_d,
                           gint *res_n,
                           gint *res_d);

### gst_util_fraction_compare ()

    gint
    gst_util_fraction_compare (gint a_n,
                               gint a_d,
                               gint b_n,
                               gint b_d);

### gst_util_seqnum_next ()

    guint32
    gst_util_seqnum_next (void);

### gst_util_seqnum_compare ()

    gint32
    gst_util_seqnum_compare (guint32 s1,
                             guint32 s2);

### gst_util_group_id_next ()

    guint
    gst_util_group_id_next (void);

### gst_util_set_object_arg ()

    void
    gst_util_set_object_arg (GObject *object,
                             const gchar *name,
                             const gchar *value);

### gst_util_set_value_from_string ()

    void
    gst_util_set_value_from_string (GValue *value,
                                    const gchar *value_str);

### gst_util_get_timestamp ()

    GstClockTime
    gst_util_get_timestamp (void);

### gst_util_array_binary_search ()

    gpointer
    gst_util_array_binary_search (gpointer array,
                                  guint num_elements,
                                  gsize element_size,
                                  GCompareDataFunc search_func,
                                  GstSearchMode mode,
                                  gconstpointer search_data,
                                  gpointer user_data);

## Types and Values

### enum GstSearchMode

#### Members

GST_SEARCH_MODE_EXACT |  |
GST_SEARCH_MODE_BEFORE |  |
GST_SEARCH_MODE_AFTER |  |