*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
#define __GST_UTILS_H__
#include <glib.h>
+#include <gst/gstconfig.h>
#include <gst/gstbin.h>
#include <gst/gstparse.h>
guint32 gst_util_seqnum_next (void);
gint32 gst_util_seqnum_compare (guint32 s1, guint32 s2);
-void gst_print_pad_caps (GString *buf, gint indent, GstPad *pad);
-void gst_print_element_args (GString *buf, gint indent, GstElement *element);
-
+guint gst_util_group_id_next (void);
/**
* GST_CALL_PARENT:
#define _GST_PUT(__data, __idx, __size, __shift, __num) \
(((guint8 *) (__data))[__idx] = (((guint##__size) (__num)) >> (__shift)) & 0xff)
+#ifndef __GTK_DOC_IGNORE__
+#if GST_HAVE_UNALIGNED_ACCESS
+static inline guint16 __gst_fast_read16(const guint8 *v) {
+ return *(const guint16*)(v);
+}
+static inline guint32 __gst_fast_read32(const guint8 *v) {
+ return *(const guint32*)(v);
+}
+static inline guint64 __gst_fast_read64(const guint8 *v) {
+ return *(const guint64*)(v);
+}
+static inline guint16 __gst_fast_read_swap16(const guint8 *v) {
+ return GUINT16_SWAP_LE_BE(*(const guint16*)(v));
+}
+static inline guint32 __gst_fast_read_swap32(const guint8 *v) {
+ return GUINT32_SWAP_LE_BE(*(const guint32*)(v));
+}
+static inline guint64 __gst_fast_read_swap64(const guint8 *v) {
+ return GUINT64_SWAP_LE_BE(*(const guint64*)(v));
+}
+# define _GST_FAST_READ(s, d) __gst_fast_read##s((const guint8 *)(d))
+# define _GST_FAST_READ_SWAP(s, d) __gst_fast_read_swap##s((const guint8 *)(d))
+#endif
+#endif
+
+
/**
* GST_READ_UINT64_BE:
* @data: memory location
*
* Read a 64 bit unsigned integer value in big endian format from the memory buffer.
*/
-#define GST_READ_UINT64_BE(data) (_GST_GET (data, 0, 64, 56) | \
- _GST_GET (data, 1, 64, 48) | \
- _GST_GET (data, 2, 64, 40) | \
- _GST_GET (data, 3, 64, 32) | \
- _GST_GET (data, 4, 64, 24) | \
- _GST_GET (data, 5, 64, 16) | \
- _GST_GET (data, 6, 64, 8) | \
- _GST_GET (data, 7, 64, 0))
/**
* GST_READ_UINT64_LE:
*
* Read a 64 bit unsigned integer value in little endian format from the memory buffer.
*/
-#define GST_READ_UINT64_LE(data) (_GST_GET (data, 7, 64, 56) | \
- _GST_GET (data, 6, 64, 48) | \
- _GST_GET (data, 5, 64, 40) | \
- _GST_GET (data, 4, 64, 32) | \
- _GST_GET (data, 3, 64, 24) | \
- _GST_GET (data, 2, 64, 16) | \
- _GST_GET (data, 1, 64, 8) | \
- _GST_GET (data, 0, 64, 0))
+#if GST_HAVE_UNALIGNED_ACCESS
+# if (G_BYTE_ORDER == G_BIG_ENDIAN)
+# define GST_READ_UINT64_BE(data) _GST_FAST_READ (64, data)
+# define GST_READ_UINT64_LE(data) _GST_FAST_READ_SWAP (64, data)
+# else
+# define GST_READ_UINT64_BE(data) _GST_FAST_READ_SWAP (64, data)
+# define GST_READ_UINT64_LE(data) _GST_FAST_READ (64, data)
+# endif
+#else
+#define _GST_READ_UINT64_BE(data) (_GST_GET (data, 0, 64, 56) | \
+ _GST_GET (data, 1, 64, 48) | \
+ _GST_GET (data, 2, 64, 40) | \
+ _GST_GET (data, 3, 64, 32) | \
+ _GST_GET (data, 4, 64, 24) | \
+ _GST_GET (data, 5, 64, 16) | \
+ _GST_GET (data, 6, 64, 8) | \
+ _GST_GET (data, 7, 64, 0))
+
+#define _GST_READ_UINT64_LE(data) (_GST_GET (data, 7, 64, 56) | \
+ _GST_GET (data, 6, 64, 48) | \
+ _GST_GET (data, 5, 64, 40) | \
+ _GST_GET (data, 4, 64, 32) | \
+ _GST_GET (data, 3, 64, 24) | \
+ _GST_GET (data, 2, 64, 16) | \
+ _GST_GET (data, 1, 64, 8) | \
+ _GST_GET (data, 0, 64, 0))
+
+#define GST_READ_UINT64_BE(data) __gst_slow_read64_be((const guint8 *)(data))
+static inline guint64 __gst_slow_read64_be (const guint8 * data) {
+ return _GST_READ_UINT64_BE (data);
+}
+#define GST_READ_UINT64_LE(data) __gst_slow_read64_le((const guint8 *)(data))
+static inline guint64 __gst_slow_read64_le (const guint8 * data) {
+ return _GST_READ_UINT64_LE (data);
+}
+#endif
/**
* GST_READ_UINT32_BE:
*
* Read a 32 bit unsigned integer value in big endian format from the memory buffer.
*/
-#define GST_READ_UINT32_BE(data) (_GST_GET (data, 0, 32, 24) | \
- _GST_GET (data, 1, 32, 16) | \
- _GST_GET (data, 2, 32, 8) | \
- _GST_GET (data, 3, 32, 0))
/**
* GST_READ_UINT32_LE:
*
* Read a 32 bit unsigned integer value in little endian format from the memory buffer.
*/
-#define GST_READ_UINT32_LE(data) (_GST_GET (data, 3, 32, 24) | \
- _GST_GET (data, 2, 32, 16) | \
- _GST_GET (data, 1, 32, 8) | \
- _GST_GET (data, 0, 32, 0))
+#if GST_HAVE_UNALIGNED_ACCESS
+# if (G_BYTE_ORDER == G_BIG_ENDIAN)
+# define GST_READ_UINT32_BE(data) _GST_FAST_READ (32, data)
+# define GST_READ_UINT32_LE(data) _GST_FAST_READ_SWAP (32, data)
+# else
+# define GST_READ_UINT32_BE(data) _GST_FAST_READ_SWAP (32, data)
+# define GST_READ_UINT32_LE(data) _GST_FAST_READ (32, data)
+# endif
+#else
+#define _GST_READ_UINT32_BE(data) (_GST_GET (data, 0, 32, 24) | \
+ _GST_GET (data, 1, 32, 16) | \
+ _GST_GET (data, 2, 32, 8) | \
+ _GST_GET (data, 3, 32, 0))
+
+#define _GST_READ_UINT32_LE(data) (_GST_GET (data, 3, 32, 24) | \
+ _GST_GET (data, 2, 32, 16) | \
+ _GST_GET (data, 1, 32, 8) | \
+ _GST_GET (data, 0, 32, 0))
+
+#define GST_READ_UINT32_BE(data) __gst_slow_read32_be((const guint8 *)(data))
+static inline guint32 __gst_slow_read32_be (const guint8 * data) {
+ return _GST_READ_UINT32_BE (data);
+}
+#define GST_READ_UINT32_LE(data) __gst_slow_read32_le((const guint8 *)(data))
+static inline guint32 __gst_slow_read32_le (const guint8 * data) {
+ return _GST_READ_UINT32_LE (data);
+}
+#endif
/**
* GST_READ_UINT24_BE:
* @data: memory location
*
* Read a 24 bit unsigned integer value in big endian format from the memory buffer.
- *
- * Since: 0.10.22
*/
-#define GST_READ_UINT24_BE(data) (_GST_GET (data, 0, 32, 16) | \
+#define _GST_READ_UINT24_BE(data) (_GST_GET (data, 0, 32, 16) | \
_GST_GET (data, 1, 32, 8) | \
_GST_GET (data, 2, 32, 0))
+#define GST_READ_UINT24_BE(data) __gst_slow_read24_be((const guint8 *)(data))
+static inline guint32 __gst_slow_read24_be (const guint8 * data) {
+ return _GST_READ_UINT24_BE (data);
+}
+
/**
* GST_READ_UINT24_LE:
* @data: memory location
*
* Read a 24 bit unsigned integer value in little endian format from the memory buffer.
- *
- * Since: 0.10.22
*/
-#define GST_READ_UINT24_LE(data) (_GST_GET (data, 2, 32, 16) | \
+#define _GST_READ_UINT24_LE(data) (_GST_GET (data, 2, 32, 16) | \
_GST_GET (data, 1, 32, 8) | \
_GST_GET (data, 0, 32, 0))
+#define GST_READ_UINT24_LE(data) __gst_slow_read24_le((const guint8 *)(data))
+static inline guint32 __gst_slow_read24_le (const guint8 * data) {
+ return _GST_READ_UINT24_LE (data);
+}
+
/**
* GST_READ_UINT16_BE:
* @data: memory location
*
* Read a 16 bit unsigned integer value in big endian format from the memory buffer.
*/
-#define GST_READ_UINT16_BE(data) (_GST_GET (data, 0, 16, 8) | \
- _GST_GET (data, 1, 16, 0))
-
/**
* GST_READ_UINT16_LE:
* @data: memory location
*
* Read a 16 bit unsigned integer value in little endian format from the memory buffer.
*/
-#define GST_READ_UINT16_LE(data) (_GST_GET (data, 1, 16, 8) | \
- _GST_GET (data, 0, 16, 0))
+#if GST_HAVE_UNALIGNED_ACCESS
+# if (G_BYTE_ORDER == G_BIG_ENDIAN)
+# define GST_READ_UINT16_BE(data) _GST_FAST_READ (16, data)
+# define GST_READ_UINT16_LE(data) _GST_FAST_READ_SWAP (16, data)
+# else
+# define GST_READ_UINT16_BE(data) _GST_FAST_READ_SWAP (16, data)
+# define GST_READ_UINT16_LE(data) _GST_FAST_READ (16, data)
+# endif
+#else
+#define _GST_READ_UINT16_BE(data) (_GST_GET (data, 0, 16, 8) | \
+ _GST_GET (data, 1, 16, 0))
+
+#define _GST_READ_UINT16_LE(data) (_GST_GET (data, 1, 16, 8) | \
+ _GST_GET (data, 0, 16, 0))
+
+#define GST_READ_UINT16_BE(data) __gst_slow_read16_be((const guint8 *)(data))
+static inline guint16 __gst_slow_read16_be (const guint8 * data) {
+ return _GST_READ_UINT16_BE (data);
+}
+#define GST_READ_UINT16_LE(data) __gst_slow_read16_le((const guint8 *)(data))
+static inline guint16 __gst_slow_read16_le (const guint8 * data) {
+ return _GST_READ_UINT16_LE (data);
+}
+#endif
/**
* GST_READ_UINT8:
* Store a 64 bit unsigned integer value in big endian format into the memory buffer.
*/
#define GST_WRITE_UINT64_BE(data, num) do { \
- _GST_PUT (data, 0, 64, 56, num); \
- _GST_PUT (data, 1, 64, 48, num); \
- _GST_PUT (data, 2, 64, 40, num); \
- _GST_PUT (data, 3, 64, 32, num); \
- _GST_PUT (data, 4, 64, 24, num); \
- _GST_PUT (data, 5, 64, 16, num); \
- _GST_PUT (data, 6, 64, 8, num); \
- _GST_PUT (data, 7, 64, 0, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 64, 56, num); \
+ _GST_PUT (__put_data, 1, 64, 48, num); \
+ _GST_PUT (__put_data, 2, 64, 40, num); \
+ _GST_PUT (__put_data, 3, 64, 32, num); \
+ _GST_PUT (__put_data, 4, 64, 24, num); \
+ _GST_PUT (__put_data, 5, 64, 16, num); \
+ _GST_PUT (__put_data, 6, 64, 8, num); \
+ _GST_PUT (__put_data, 7, 64, 0, num); \
} while (0)
/**
* Store a 64 bit unsigned integer value in little endian format into the memory buffer.
*/
#define GST_WRITE_UINT64_LE(data, num) do { \
- _GST_PUT (data, 0, 64, 0, num); \
- _GST_PUT (data, 1, 64, 8, num); \
- _GST_PUT (data, 2, 64, 16, num); \
- _GST_PUT (data, 3, 64, 24, num); \
- _GST_PUT (data, 4, 64, 32, num); \
- _GST_PUT (data, 5, 64, 40, num); \
- _GST_PUT (data, 6, 64, 48, num); \
- _GST_PUT (data, 7, 64, 56, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 64, 0, num); \
+ _GST_PUT (__put_data, 1, 64, 8, num); \
+ _GST_PUT (__put_data, 2, 64, 16, num); \
+ _GST_PUT (__put_data, 3, 64, 24, num); \
+ _GST_PUT (__put_data, 4, 64, 32, num); \
+ _GST_PUT (__put_data, 5, 64, 40, num); \
+ _GST_PUT (__put_data, 6, 64, 48, num); \
+ _GST_PUT (__put_data, 7, 64, 56, num); \
} while (0)
/**
* Store a 32 bit unsigned integer value in big endian format into the memory buffer.
*/
#define GST_WRITE_UINT32_BE(data, num) do { \
- _GST_PUT (data, 0, 32, 24, num); \
- _GST_PUT (data, 1, 32, 16, num); \
- _GST_PUT (data, 2, 32, 8, num); \
- _GST_PUT (data, 3, 32, 0, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 32, 24, num); \
+ _GST_PUT (__put_data, 1, 32, 16, num); \
+ _GST_PUT (__put_data, 2, 32, 8, num); \
+ _GST_PUT (__put_data, 3, 32, 0, num); \
} while (0)
/**
* Store a 32 bit unsigned integer value in little endian format into the memory buffer.
*/
#define GST_WRITE_UINT32_LE(data, num) do { \
- _GST_PUT (data, 0, 32, 0, num); \
- _GST_PUT (data, 1, 32, 8, num); \
- _GST_PUT (data, 2, 32, 16, num); \
- _GST_PUT (data, 3, 32, 24, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 32, 0, num); \
+ _GST_PUT (__put_data, 1, 32, 8, num); \
+ _GST_PUT (__put_data, 2, 32, 16, num); \
+ _GST_PUT (__put_data, 3, 32, 24, num); \
} while (0)
/**
* @num: value to store
*
* Store a 24 bit unsigned integer value in big endian format into the memory buffer.
- *
- * Since: 0.10.22
*/
#define GST_WRITE_UINT24_BE(data, num) do { \
- _GST_PUT (data, 0, 32, 16, num); \
- _GST_PUT (data, 1, 32, 8, num); \
- _GST_PUT (data, 2, 32, 0, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 32, 16, num); \
+ _GST_PUT (__put_data, 1, 32, 8, num); \
+ _GST_PUT (__put_data, 2, 32, 0, num); \
} while (0)
/**
* @num: value to store
*
* Store a 24 bit unsigned integer value in little endian format into the memory buffer.
- *
- * Since: 0.10.22
*/
#define GST_WRITE_UINT24_LE(data, num) do { \
- _GST_PUT (data, 0, 32, 0, num); \
- _GST_PUT (data, 1, 32, 8, num); \
- _GST_PUT (data, 2, 32, 16, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 32, 0, num); \
+ _GST_PUT (__put_data, 1, 32, 8, num); \
+ _GST_PUT (__put_data, 2, 32, 16, num); \
} while (0)
/**
* Store a 16 bit unsigned integer value in big endian format into the memory buffer.
*/
#define GST_WRITE_UINT16_BE(data, num) do { \
- _GST_PUT (data, 0, 16, 8, num); \
- _GST_PUT (data, 1, 16, 0, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 16, 8, num); \
+ _GST_PUT (__put_data, 1, 16, 0, num); \
} while (0)
/**
* Store a 16 bit unsigned integer value in little endian format into the memory buffer.
*/
#define GST_WRITE_UINT16_LE(data, num) do { \
- _GST_PUT (data, 0, 16, 0, num); \
- _GST_PUT (data, 1, 16, 8, num); \
+ gpointer __put_data = data; \
+ _GST_PUT (__put_data, 0, 16, 0, num); \
+ _GST_PUT (__put_data, 1, 16, 8, num); \
} while (0)
/**
* Swap byte order of a 32-bit floating point value (float).
*
* Returns: @in byte-swapped.
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC gfloat GFLOAT_SWAP_LE_BE (gfloat in);
* Swap byte order of a 64-bit floating point value (double).
*
* Returns: @in byte-swapped.
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC gdouble GDOUBLE_SWAP_LE_BE (gdouble in);
*
* Convert 64-bit floating point value (double) from native byte order into
* little endian byte order.
- *
- * Since: 0.10.22
- *
*/
/**
* GDOUBLE_TO_BE:
*
* Convert 64-bit floating point value (double) from native byte order into
* big endian byte order.
- *
- * Since: 0.10.22
- *
*/
/**
* GDOUBLE_FROM_LE:
*
* Convert 64-bit floating point value (double) from little endian byte order
* into native byte order.
- *
- * Since: 0.10.22
- *
*/
/**
* GDOUBLE_FROM_BE:
*
* Convert 64-bit floating point value (double) from big endian byte order
* into native byte order.
- *
- * Since: 0.10.22
- *
*/
/**
*
* Convert 32-bit floating point value (float) from native byte order into
* little endian byte order.
- *
- * Since: 0.10.22
- *
*/
/**
* GFLOAT_TO_BE:
*
* Convert 32-bit floating point value (float) from native byte order into
* big endian byte order.
- *
- * Since: 0.10.22
- *
*/
/**
* GFLOAT_FROM_LE:
*
* Convert 32-bit floating point value (float) from little endian byte order
* into native byte order.
- *
- * Since: 0.10.22
- *
*/
/**
* GFLOAT_FROM_BE:
*
* Convert 32-bit floating point value (float) from big endian byte order
* into native byte order.
- *
- * Since: 0.10.22
- *
*/
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
* Read a 32 bit float value in little endian format from the memory buffer.
*
* Returns: The floating point value read from @data
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC gfloat GST_READ_FLOAT_LE (const guint8 *data);
* Read a 32 bit float value in big endian format from the memory buffer.
*
* Returns: The floating point value read from @data
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC gfloat GST_READ_FLOAT_BE (const guint8 *data);
* Read a 64 bit double value in little endian format from the memory buffer.
*
* Returns: The double-precision floating point value read from @data
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC gdouble GST_READ_DOUBLE_LE (const guint8 *data);
* Read a 64 bit double value in big endian format from the memory buffer.
*
* Returns: The double-precision floating point value read from @data
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC gdouble GST_READ_DOUBLE_BE (const guint8 *data);
* @num: value to store
*
* Store a 32 bit float value in little endian format into the memory buffer.
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC void GST_WRITE_FLOAT_LE (guint8 *data, gfloat num);
* @num: value to store
*
* Store a 32 bit float value in big endian format into the memory buffer.
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC void GST_WRITE_FLOAT_BE (guint8 *data, gfloat num);
* @num: value to store
*
* Store a 64 bit double value in little endian format into the memory buffer.
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC void GST_WRITE_DOUBLE_LE (guint8 *data, gdouble num);
* @num: value to store
*
* Store a 64 bit double value in big endian format into the memory buffer.
- *
- * Since: 0.10.22
- *
*/
#ifdef _FOOL_GTK_DOC_
G_INLINE_FUNC void GST_WRITE_DOUBLE_BE (guint8 *data, gdouble num);
* Rounds an integer value up to the next multiple of 64.
*/
#define GST_ROUND_UP_64(num) (((num)+63)&~63)
+/**
+ * GST_ROUND_UP_128:
+ * @num: integer value to round up
+ *
+ * Rounds an integer value up to the next multiple of 128.
+ * Since: 1.4
+ */
+#define GST_ROUND_UP_128(num) (((num)+127)&~127)
+/**
+ * GST_ROUND_UP_N:
+ * @num: integrer value to round up
+ * @align: a power of two to round up to
+ *
+ * Rounds an integer value up to the next multiple of @align. @align MUST be a
+ * power of two.
+ */
+#define GST_ROUND_UP_N(num,align) ((((num) + ((align) - 1)) & ~((align) - 1)))
+
/**
* GST_ROUND_DOWN_2:
* @num: integer value to round down
*
* Rounds an integer value down to the next multiple of 2.
- *
- * Since: 0.10.12
*/
#define GST_ROUND_DOWN_2(num) ((num)&(~1))
/**
* @num: integer value to round down
*
* Rounds an integer value down to the next multiple of 4.
- *
- * Since: 0.10.12
*/
#define GST_ROUND_DOWN_4(num) ((num)&(~3))
/**
* @num: integer value to round down
*
* Rounds an integer value down to the next multiple of 8.
- *
- * Since: 0.10.12
*/
#define GST_ROUND_DOWN_8(num) ((num)&(~7))
/**
* @num: integer value to round down
*
* Rounds an integer value down to the next multiple of 16.
- *
- * Since: 0.10.12
*/
#define GST_ROUND_DOWN_16(num) ((num)&(~15))
/**
* @num: integer value to round down
*
* Rounds an integer value down to the next multiple of 32.
- *
- * Since: 0.10.12
*/
#define GST_ROUND_DOWN_32(num) ((num)&(~31))
/**
* @num: integer value to round down
*
* Rounds an integer value down to the next multiple of 64.
- *
- * Since: 0.10.12
*/
#define GST_ROUND_DOWN_64(num) ((num)&(~63))
+/**
+ * GST_ROUND_DOWN_128:
+ * @num: integer value to round down
+ *
+ * Rounds an integer value down to the next multiple of 128.
+ * Since: 1.4
+ */
+#define GST_ROUND_DOWN_128(num) ((num)&(~127))
+/**
+ * GST_ROUND_DOWN_N:
+ * @num: integrer value to round down
+ * @align: a power of two to round down to
+ *
+ * Rounds an integer value down to the next multiple of @align. @align MUST be a
+ * power of two.
+ */
+#define GST_ROUND_DOWN_N(num,align) (((num) & ~((align) - 1)))
+
void gst_object_default_error (GstObject * source,
const GError * error,
/* element functions */
void gst_element_create_all_pads (GstElement *element);
GstPad* gst_element_get_compatible_pad (GstElement *element, GstPad *pad,
- const GstCaps *caps);
+ GstCaps *caps);
GstPadTemplate* gst_element_get_compatible_pad_template (GstElement *element, GstPadTemplate *compattempl);
GstCaps * gst_pad_peer_query_caps (GstPad * pad, GstCaps *filter);
gboolean gst_pad_peer_query_accept_caps (GstPad * pad, GstCaps *caps);
+gchar * gst_pad_create_stream_id (GstPad * pad, GstElement * parent, const gchar *stream_id) G_GNUC_MALLOC;
+gchar * gst_pad_create_stream_id_printf (GstPad * pad, GstElement * parent, const gchar *stream_id, ...) G_GNUC_PRINTF (3, 4) G_GNUC_MALLOC;
+gchar * gst_pad_create_stream_id_printf_valist (GstPad * pad, GstElement * parent, const gchar *stream_id, va_list var_args) G_GNUC_PRINTF (3, 0) G_GNUC_MALLOC;
+
+gchar * gst_pad_get_stream_id (GstPad * pad);
+
/* bin functions */
void gst_bin_add_many (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
void gst_bin_remove_many (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
GstPad * gst_bin_find_unlinked_pad (GstBin *bin, GstPadDirection direction);
-/* buffer functions */
-GstBuffer * gst_buffer_merge (GstBuffer * buf1, GstBuffer * buf2);
-GstBuffer * gst_buffer_join (GstBuffer * buf1, GstBuffer * buf2);
+gboolean gst_bin_sync_children_states (GstBin *bin);
/* parse utility functions */
GstElement * gst_parse_bin_from_description (const gchar * bin_description,
* @GST_SEARCH_MODE_AFTER : Search for an exact match or the element just after.
*
* The different search modes.
- *
- * Since: 0.10.23
*/
typedef enum {
GST_SEARCH_MODE_EXACT = 0,