2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 * 2000 Wim Taymans <wtay@chello.be>
4 * 2002 Thomas Vander Stichele <thomas@apestaart.org>
6 * gstutils.h: Header for various utility functions
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
25 #ifndef __GST_UTILS_H__
26 #define __GST_UTILS_H__
29 #include <gst/gstbin.h>
30 #include <gst/gstparse.h>
34 void gst_util_set_value_from_string (GValue *value, const gchar *value_str);
35 void gst_util_set_object_arg (GObject *object, const gchar *name, const gchar *value);
36 void gst_util_dump_mem (const guchar *mem, guint size);
38 guint64 gst_util_gdouble_to_guint64 (gdouble value) G_GNUC_CONST;
39 gdouble gst_util_guint64_to_gdouble (guint64 value) G_GNUC_CONST;
42 * gst_guint64_to_gdouble:
43 * @value: the #guint64 value to convert
45 * Convert @value to a gdouble.
47 * Returns: @value converted to a #gdouble.
51 * gst_gdouble_to_guint64:
52 * @value: the #gdouble value to convert
54 * Convert @value to a guint64.
56 * Returns: @value converted to a #guint64.
59 #define gst_gdouble_to_guint64(value) gst_util_gdouble_to_guint64(value)
60 #define gst_guint64_to_gdouble(value) gst_util_guint64_to_gdouble(value)
62 #define gst_gdouble_to_guint64(value) ((guint64) (value))
63 #define gst_guint64_to_gdouble(value) ((gdouble) (value))
66 guint64 gst_util_uint64_scale (guint64 val, guint64 num, guint64 denom);
67 guint64 gst_util_uint64_scale_round (guint64 val, guint64 num, guint64 denom);
68 guint64 gst_util_uint64_scale_ceil (guint64 val, guint64 num, guint64 denom);
70 guint64 gst_util_uint64_scale_int (guint64 val, gint num, gint denom);
71 guint64 gst_util_uint64_scale_int_round (guint64 val, gint num, gint denom);
72 guint64 gst_util_uint64_scale_int_ceil (guint64 val, gint num, gint denom);
74 guint32 gst_util_seqnum_next (void);
75 gint32 gst_util_seqnum_compare (guint32 s1, guint32 s2);
77 void gst_print_pad_caps (GString *buf, gint indent, GstPad *pad);
78 void gst_print_element_args (GString *buf, gint indent, GstElement *element);
81 GType gst_type_register_static_full (GType parent_type,
82 const gchar *type_name,
84 GBaseInitFunc base_init,
85 GBaseFinalizeFunc base_finalize,
86 GClassInitFunc class_init,
87 GClassFinalizeFunc class_finalize,
88 gconstpointer class_data,
91 GInstanceInitFunc instance_init,
92 const GTypeValueTable *value_table,
97 * @parent_class_cast: the name of the class cast macro for the parent type
98 * @name: name of the function to call
99 * @args: arguments enclosed in '( )'
101 * Just call the parent handler. This assumes that there is a variable
102 * named parent_class that points to the (duh!) parent class. Note that
103 * this macro is not to be used with things that return something, use
104 * the _WITH_DEFAULT version for that
106 #define GST_CALL_PARENT(parent_class_cast, name, args) \
107 ((parent_class_cast(parent_class)->name != NULL) ? \
108 parent_class_cast(parent_class)->name args : (void) 0)
111 * GST_CALL_PARENT_WITH_DEFAULT:
112 * @parent_class_cast: the name of the class cast macro for the parent type
113 * @name: name of the function to call
114 * @args: arguments enclosed in '( )'
115 * @def_return: default result
117 * Same as GST_CALL_PARENT(), but in case there is no implementation, it
118 * evaluates to @def_return.
120 #define GST_CALL_PARENT_WITH_DEFAULT(parent_class_cast, name, args, def_return)\
121 ((parent_class_cast(parent_class)->name != NULL) ? \
122 parent_class_cast(parent_class)->name args : def_return)
124 /* Define PUT and GET functions for unaligned memory */
125 #define _GST_GET(__data, __idx, __size, __shift) \
126 (((guint##__size) (((const guint8 *) (__data))[__idx])) << (__shift))
128 #define _GST_PUT(__data, __idx, __size, __shift, __num) \
129 (((guint8 *) (__data))[__idx] = (((guint##__size) (__num)) >> (__shift)) & 0xff)
132 * GST_READ_UINT64_BE:
133 * @data: memory location
135 * Read a 64 bit unsigned integer value in big endian format from the memory buffer.
137 #define GST_READ_UINT64_BE(data) (_GST_GET (data, 0, 64, 56) | \
138 _GST_GET (data, 1, 64, 48) | \
139 _GST_GET (data, 2, 64, 40) | \
140 _GST_GET (data, 3, 64, 32) | \
141 _GST_GET (data, 4, 64, 24) | \
142 _GST_GET (data, 5, 64, 16) | \
143 _GST_GET (data, 6, 64, 8) | \
144 _GST_GET (data, 7, 64, 0))
147 * GST_READ_UINT64_LE:
148 * @data: memory location
150 * Read a 64 bit unsigned integer value in little endian format from the memory buffer.
152 #define GST_READ_UINT64_LE(data) (_GST_GET (data, 7, 64, 56) | \
153 _GST_GET (data, 6, 64, 48) | \
154 _GST_GET (data, 5, 64, 40) | \
155 _GST_GET (data, 4, 64, 32) | \
156 _GST_GET (data, 3, 64, 24) | \
157 _GST_GET (data, 2, 64, 16) | \
158 _GST_GET (data, 1, 64, 8) | \
159 _GST_GET (data, 0, 64, 0))
162 * GST_READ_UINT32_BE:
163 * @data: memory location
165 * Read a 32 bit unsigned integer value in big endian format from the memory buffer.
167 #define GST_READ_UINT32_BE(data) (_GST_GET (data, 0, 32, 24) | \
168 _GST_GET (data, 1, 32, 16) | \
169 _GST_GET (data, 2, 32, 8) | \
170 _GST_GET (data, 3, 32, 0))
173 * GST_READ_UINT32_LE:
174 * @data: memory location
176 * Read a 32 bit unsigned integer value in little endian format from the memory buffer.
178 #define GST_READ_UINT32_LE(data) (_GST_GET (data, 3, 32, 24) | \
179 _GST_GET (data, 2, 32, 16) | \
180 _GST_GET (data, 1, 32, 8) | \
181 _GST_GET (data, 0, 32, 0))
184 * GST_READ_UINT24_BE:
185 * @data: memory location
187 * Read a 24 bit unsigned integer value in big endian format from the memory buffer.
191 #define GST_READ_UINT24_BE(data) (_GST_GET (data, 0, 32, 16) | \
192 _GST_GET (data, 1, 32, 8) | \
193 _GST_GET (data, 2, 32, 0))
196 * GST_READ_UINT24_LE:
197 * @data: memory location
199 * Read a 24 bit unsigned integer value in little endian format from the memory buffer.
203 #define GST_READ_UINT24_LE(data) (_GST_GET (data, 2, 32, 16) | \
204 _GST_GET (data, 1, 32, 8) | \
205 _GST_GET (data, 0, 32, 0))
208 * GST_READ_UINT16_BE:
209 * @data: memory location
211 * Read a 16 bit unsigned integer value in big endian format from the memory buffer.
213 #define GST_READ_UINT16_BE(data) (_GST_GET (data, 0, 16, 8) | \
214 _GST_GET (data, 1, 16, 0))
217 * GST_READ_UINT16_LE:
218 * @data: memory location
220 * Read a 16 bit unsigned integer value in little endian format from the memory buffer.
222 #define GST_READ_UINT16_LE(data) (_GST_GET (data, 1, 16, 8) | \
223 _GST_GET (data, 0, 16, 0))
227 * @data: memory location
229 * Read an 8 bit unsigned integer value from the memory buffer.
231 #define GST_READ_UINT8(data) (_GST_GET (data, 0, 8, 0))
234 * GST_WRITE_UINT64_BE:
235 * @data: memory location
236 * @num: value to store
238 * Store a 64 bit unsigned integer value in big endian format into the memory buffer.
240 #define GST_WRITE_UINT64_BE(data, num) do { \
241 _GST_PUT (data, 0, 64, 56, num); \
242 _GST_PUT (data, 1, 64, 48, num); \
243 _GST_PUT (data, 2, 64, 40, num); \
244 _GST_PUT (data, 3, 64, 32, num); \
245 _GST_PUT (data, 4, 64, 24, num); \
246 _GST_PUT (data, 5, 64, 16, num); \
247 _GST_PUT (data, 6, 64, 8, num); \
248 _GST_PUT (data, 7, 64, 0, num); \
252 * GST_WRITE_UINT64_LE:
253 * @data: memory location
254 * @num: value to store
256 * Store a 64 bit unsigned integer value in little endian format into the memory buffer.
258 #define GST_WRITE_UINT64_LE(data, num) do { \
259 _GST_PUT (data, 0, 64, 0, num); \
260 _GST_PUT (data, 1, 64, 8, num); \
261 _GST_PUT (data, 2, 64, 16, num); \
262 _GST_PUT (data, 3, 64, 24, num); \
263 _GST_PUT (data, 4, 64, 32, num); \
264 _GST_PUT (data, 5, 64, 40, num); \
265 _GST_PUT (data, 6, 64, 48, num); \
266 _GST_PUT (data, 7, 64, 56, num); \
270 * GST_WRITE_UINT32_BE:
271 * @data: memory location
272 * @num: value to store
274 * Store a 32 bit unsigned integer value in big endian format into the memory buffer.
276 #define GST_WRITE_UINT32_BE(data, num) do { \
277 _GST_PUT (data, 0, 32, 24, num); \
278 _GST_PUT (data, 1, 32, 16, num); \
279 _GST_PUT (data, 2, 32, 8, num); \
280 _GST_PUT (data, 3, 32, 0, num); \
284 * GST_WRITE_UINT32_LE:
285 * @data: memory location
286 * @num: value to store
288 * Store a 32 bit unsigned integer value in little endian format into the memory buffer.
290 #define GST_WRITE_UINT32_LE(data, num) do { \
291 _GST_PUT (data, 0, 32, 0, num); \
292 _GST_PUT (data, 1, 32, 8, num); \
293 _GST_PUT (data, 2, 32, 16, num); \
294 _GST_PUT (data, 3, 32, 24, num); \
298 * GST_WRITE_UINT24_BE:
299 * @data: memory location
300 * @num: value to store
302 * Store a 24 bit unsigned integer value in big endian format into the memory buffer.
306 #define GST_WRITE_UINT24_BE(data, num) do { \
307 _GST_PUT (data, 0, 32, 16, num); \
308 _GST_PUT (data, 1, 32, 8, num); \
309 _GST_PUT (data, 2, 32, 0, num); \
313 * GST_WRITE_UINT24_LE:
314 * @data: memory location
315 * @num: value to store
317 * Store a 24 bit unsigned integer value in little endian format into the memory buffer.
321 #define GST_WRITE_UINT24_LE(data, num) do { \
322 _GST_PUT (data, 0, 32, 0, num); \
323 _GST_PUT (data, 1, 32, 8, num); \
324 _GST_PUT (data, 2, 32, 16, num); \
328 * GST_WRITE_UINT16_BE:
329 * @data: memory location
330 * @num: value to store
332 * Store a 16 bit unsigned integer value in big endian format into the memory buffer.
334 #define GST_WRITE_UINT16_BE(data, num) do { \
335 _GST_PUT (data, 0, 16, 8, num); \
336 _GST_PUT (data, 1, 16, 0, num); \
340 * GST_WRITE_UINT16_LE:
341 * @data: memory location
342 * @num: value to store
344 * Store a 16 bit unsigned integer value in little endian format into the memory buffer.
346 #define GST_WRITE_UINT16_LE(data, num) do { \
347 _GST_PUT (data, 0, 16, 0, num); \
348 _GST_PUT (data, 1, 16, 8, num); \
353 * @data: memory location
354 * @num: value to store
356 * Store an 8 bit unsigned integer value into the memory buffer.
358 #define GST_WRITE_UINT8(data, num) do { \
359 _GST_PUT (data, 0, 8, 0, num); \
364 * @data: memory location
366 * Read a 32 bit float value in little endian format from the memory buffer.
368 * Returns: The floating point value read from @data
373 #ifdef _FOOL_GTK_DOC_
374 G_INLINE_FUNC gfloat GST_READ_FLOAT_LE (const guint8 *data);
378 GST_READ_FLOAT_LE(const guint8 *data)
386 u.i = GST_READ_UINT32_LE (data);
392 * @data: memory location
394 * Read a 32 bit float value in big endian format from the memory buffer.
396 * Returns: The floating point value read from @data
401 #ifdef _FOOL_GTK_DOC_
402 G_INLINE_FUNC gfloat GST_READ_FLOAT_BE (const guint8 *data);
406 GST_READ_FLOAT_BE(const guint8 *data)
414 u.i = GST_READ_UINT32_BE (data);
419 * GST_READ_DOUBLE_LE:
420 * @data: memory location
422 * Read a 64 bit double value in little endian format from the memory buffer.
424 * Returns: The double-precision floating point value read from @data
429 #ifdef _FOOL_GTK_DOC_
430 G_INLINE_FUNC gdouble GST_READ_DOUBLE_LE (const guint8 *data);
433 inline static gdouble
434 GST_READ_DOUBLE_LE(const guint8 *data)
442 u.i = GST_READ_UINT64_LE (data);
447 * GST_READ_DOUBLE_BE:
448 * @data: memory location
450 * Read a 64 bit double value in big endian format from the memory buffer.
452 * Returns: The double-precision floating point value read from @data
457 #ifdef _FOOL_GTK_DOC_
458 G_INLINE_FUNC gdouble GST_READ_DOUBLE_BE (const guint8 *data);
461 inline static gdouble
462 GST_READ_DOUBLE_BE(const guint8 *data)
470 u.i = GST_READ_UINT64_BE (data);
475 * GST_WRITE_FLOAT_LE:
476 * @data: memory location
477 * @num: value to store
479 * Store a 32 bit float value in little endian format into the memory buffer.
484 #ifdef _FOOL_GTK_DOC_
485 G_INLINE_FUNC void GST_WRITE_FLOAT_LE (guint8 *data, gfloat num);
489 GST_WRITE_FLOAT_LE(guint8 *data, gfloat num)
498 GST_WRITE_UINT32_LE (data, u.i);
502 * GST_WRITE_FLOAT_BE:
503 * @data: memory location
504 * @num: value to store
506 * Store a 32 bit float value in big endian format into the memory buffer.
511 #ifdef _FOOL_GTK_DOC_
512 G_INLINE_FUNC void GST_WRITE_FLOAT_BE (guint8 *data, gfloat num);
516 GST_WRITE_FLOAT_BE(guint8 *data, gfloat num)
525 GST_WRITE_UINT32_BE (data, u.i);
529 * GST_WRITE_DOUBLE_LE:
530 * @data: memory location
531 * @num: value to store
533 * Store a 64 bit double value in little endian format into the memory buffer.
538 #ifdef _FOOL_GTK_DOC_
539 G_INLINE_FUNC void GST_WRITE_DOUBLE_LE (guint8 *data, gdouble num);
543 GST_WRITE_DOUBLE_LE(guint8 *data, gdouble num)
552 GST_WRITE_UINT64_LE (data, u.i);
556 * GST_WRITE_DOUBLE_BE:
557 * @data: memory location
558 * @num: value to store
560 * Store a 64 bit double value in big endian format into the memory buffer.
565 #ifdef _FOOL_GTK_DOC_
566 G_INLINE_FUNC void GST_WRITE_DOUBLE_BE (guint8 *data, gdouble num);
570 GST_WRITE_DOUBLE_BE(guint8 *data, gdouble num)
579 GST_WRITE_UINT64_BE (data, u.i);
582 /* Miscellaneous utility macros */
586 * @num: integer value to round up
588 * Rounds an integer value up to the next multiple of 2.
590 #define GST_ROUND_UP_2(num) (((num)+1)&~1)
593 * @num: integer value to round up
595 * Rounds an integer value up to the next multiple of 4.
597 #define GST_ROUND_UP_4(num) (((num)+3)&~3)
600 * @num: integer value to round up
602 * Rounds an integer value up to the next multiple of 8.
604 #define GST_ROUND_UP_8(num) (((num)+7)&~7)
607 * @num: integer value to round up
609 * Rounds an integer value up to the next multiple of 16.
611 #define GST_ROUND_UP_16(num) (((num)+15)&~15)
614 * @num: integer value to round up
616 * Rounds an integer value up to the next multiple of 32.
618 #define GST_ROUND_UP_32(num) (((num)+31)&~31)
621 * @num: integer value to round up
623 * Rounds an integer value up to the next multiple of 64.
625 #define GST_ROUND_UP_64(num) (((num)+63)&~63)
629 * @num: integer value to round down
631 * Rounds an integer value down to the next multiple of 2.
635 #define GST_ROUND_DOWN_2(num) ((num)&(~1))
638 * @num: integer value to round down
640 * Rounds an integer value down to the next multiple of 4.
644 #define GST_ROUND_DOWN_4(num) ((num)&(~3))
647 * @num: integer value to round down
649 * Rounds an integer value down to the next multiple of 8.
653 #define GST_ROUND_DOWN_8(num) ((num)&(~7))
656 * @num: integer value to round down
658 * Rounds an integer value down to the next multiple of 16.
662 #define GST_ROUND_DOWN_16(num) ((num)&(~15))
665 * @num: integer value to round down
667 * Rounds an integer value down to the next multiple of 32.
671 #define GST_ROUND_DOWN_32(num) ((num)&(~31))
674 * @num: integer value to round down
676 * Rounds an integer value down to the next multiple of 64.
680 #define GST_ROUND_DOWN_64(num) ((num)&(~63))
682 void gst_object_default_error (GstObject * source,
683 const GError * error,
684 const gchar * debug);
686 /* element functions */
687 void gst_element_create_all_pads (GstElement *element);
688 GstPad* gst_element_get_compatible_pad (GstElement *element, GstPad *pad,
689 const GstCaps *caps);
691 GstPadTemplate* gst_element_get_compatible_pad_template (GstElement *element, GstPadTemplate *compattempl);
693 G_CONST_RETURN gchar* gst_element_state_get_name (GstState state);
694 G_CONST_RETURN gchar * gst_element_state_change_return_get_name (GstStateChangeReturn state_ret);
696 gboolean gst_element_link (GstElement *src, GstElement *dest);
697 gboolean gst_element_link_many (GstElement *element_1,
698 GstElement *element_2, ...) G_GNUC_NULL_TERMINATED;
699 gboolean gst_element_link_filtered (GstElement * src,
702 void gst_element_unlink (GstElement *src, GstElement *dest);
703 void gst_element_unlink_many (GstElement *element_1,
704 GstElement *element_2, ...) G_GNUC_NULL_TERMINATED;
706 gboolean gst_element_link_pads (GstElement *src, const gchar *srcpadname,
707 GstElement *dest, const gchar *destpadname);
708 gboolean gst_element_link_pads_full (GstElement *src, const gchar *srcpadname,
709 GstElement *dest, const gchar *destpadname,
710 GstPadLinkCheck flags);
711 void gst_element_unlink_pads (GstElement *src, const gchar *srcpadname,
712 GstElement *dest, const gchar *destpadname);
714 gboolean gst_element_link_pads_filtered (GstElement * src, const gchar * srcpadname,
715 GstElement * dest, const gchar * destpadname,
718 gboolean gst_element_seek_simple (GstElement *element,
720 GstSeekFlags seek_flags,
723 /* util elementfactory functions */
724 gboolean gst_element_factory_can_sink_all_caps (GstElementFactory *factory, const GstCaps *caps);
725 gboolean gst_element_factory_can_src_all_caps (GstElementFactory *factory, const GstCaps *caps);
726 gboolean gst_element_factory_can_sink_any_caps (GstElementFactory *factory, const GstCaps *caps);
727 gboolean gst_element_factory_can_src_any_caps (GstElementFactory *factory, const GstCaps *caps);
729 /* util query functions */
730 gboolean gst_element_query_position (GstElement *element, GstFormat *format,
732 gboolean gst_element_query_duration (GstElement *element, GstFormat *format,
734 gboolean gst_element_query_convert (GstElement *element, GstFormat src_format, gint64 src_val,
735 GstFormat *dest_format, gint64 *dest_val);
737 /* element class functions */
738 void gst_element_class_install_std_props (GstElementClass * klass,
739 const gchar * first_name, ...) G_GNUC_NULL_TERMINATED;
742 void gst_pad_use_fixed_caps (GstPad *pad);
743 GstCaps* gst_pad_proxy_getcaps (GstPad * pad, GstCaps * filter);
745 GstElement* gst_pad_get_parent_element (GstPad *pad);
747 /* util query functions */
748 gboolean gst_pad_query_position (GstPad *pad, GstFormat *format,
750 gboolean gst_pad_query_duration (GstPad *pad, GstFormat *format,
752 gboolean gst_pad_query_convert (GstPad *pad, GstFormat src_format, gint64 src_val,
753 GstFormat *dest_format, gint64 *dest_val);
755 gboolean gst_pad_query_peer_position (GstPad *pad, GstFormat *format,
757 gboolean gst_pad_query_peer_duration (GstPad *pad, GstFormat *format,
759 gboolean gst_pad_query_peer_convert (GstPad *pad, GstFormat src_format, gint64 src_val,
760 GstFormat *dest_format, gint64 *dest_val);
763 void gst_bin_add_many (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
764 void gst_bin_remove_many (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
765 GstPad * gst_bin_find_unlinked_pad (GstBin *bin, GstPadDirection direction);
767 /* buffer functions */
768 GstBuffer * gst_buffer_merge (GstBuffer * buf1, GstBuffer * buf2);
769 GstBuffer * gst_buffer_join (GstBuffer * buf1, GstBuffer * buf2);
771 /* tag emission utility functions */
772 void gst_element_found_tags_for_pad (GstElement * element,
775 void gst_element_found_tags (GstElement * element,
778 /* parse utility functions */
779 GstElement * gst_parse_bin_from_description (const gchar * bin_description,
780 gboolean ghost_unlinked_pads,
783 GstElement * gst_parse_bin_from_description_full (const gchar * bin_description,
784 gboolean ghost_unlinked_pads,
785 GstParseContext * context,
789 GstClockTime gst_util_get_timestamp (void);
793 * @GST_SEARCH_MODE_EXACT : Only search for exact matches.
794 * @GST_SEARCH_MODE_BEFORE: Search for an exact match or the element just before.
795 * @GST_SEARCH_MODE_AFTER : Search for an exact match or the element just after.
797 * The different search modes.
802 GST_SEARCH_MODE_EXACT = 0,
803 GST_SEARCH_MODE_BEFORE,
804 GST_SEARCH_MODE_AFTER
807 gpointer gst_util_array_binary_search (gpointer array, guint num_elements,
808 gsize element_size, GCompareDataFunc search_func,
809 GstSearchMode mode, gconstpointer search_data,
812 gint gst_util_greatest_common_divisor (gint a, gint b);
813 void gst_util_fraction_to_double (gint src_n, gint src_d, gdouble *dest);
814 void gst_util_double_to_fraction (gdouble src, gint *dest_n, gint *dest_d);
815 gboolean gst_util_fraction_multiply (gint a_n, gint a_d, gint b_n, gint b_d, gint *res_n, gint *res_d);
816 gboolean gst_util_fraction_add (gint a_n, gint a_d, gint b_n, gint b_d, gint *res_n, gint *res_d);
817 gint gst_util_fraction_compare (gint a_n, gint a_d, gint b_n, gint b_d);
820 /* sink message event
822 * FIXME: This should be in gstevent.h but can't because
823 * it needs GstMessage and this would introduce circular
824 * header includes. And forward declarations of typedefs
825 * are unfortunately not possible. The implementation of
826 * these functions is in gstevent.c.
828 GstEvent* gst_event_new_sink_message (GstMessage *msg);
829 void gst_event_parse_sink_message (GstEvent *event, GstMessage **msg);
834 #endif /* __GST_UTILS_H__ */