2003-11-11 19:14:14 +00:00
|
|
|
/* GStreamer
|
2004-03-12 18:25:07 +00:00
|
|
|
* Copyright (C) 2003 David A. Schleef <ds@schleef.org>
|
2003-11-11 19:14:14 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2003-12-22 01:39:35 +00:00
|
|
|
#ifndef __GST_CAPS_H__
|
|
|
|
#define __GST_CAPS_H__
|
2003-11-11 19:14:14 +00:00
|
|
|
|
|
|
|
#include <gst/gstconfig.h>
|
|
|
|
#include <gst/gststructure.h>
|
2005-11-21 19:58:23 +00:00
|
|
|
#include <gst/glib-compat.h>
|
2003-11-11 19:14:14 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
gst/gstcaps.c: Patch from Tim-Philipp Müller to fix GST_CAPS() and GST_IS_CAPS(). (bug #141304)
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_copy), (gst_caps_free),
(gst_caps_append), (gst_caps_append_structure),
(gst_caps_get_size), (gst_caps_get_structure), (gst_caps_copy_1),
(gst_caps_set_simple), (gst_caps_set_simple_valist),
(gst_caps_is_any), (gst_caps_is_empty), (gst_caps_is_chained),
(gst_caps_is_fixed), (gst_caps_is_always_compatible),
(gst_caps_intersect), (gst_caps_normalize),
(gst_caps_transform_to_string): Patch from Tim-Philipp Müller
to fix GST_CAPS() and GST_IS_CAPS(). (bug #141304)
* gst/gstcaps.h: use GST_IS_CAPS().
2004-04-28 20:19:46 +00:00
|
|
|
#define GST_TYPE_CAPS (gst_caps_get_type())
|
2004-09-26 17:35:08 +00:00
|
|
|
#define GST_CAPS(object) ((GstCaps*)object)
|
gst/gstcaps.c: Patch from Tim-Philipp Müller to fix GST_CAPS() and GST_IS_CAPS(). (bug #141304)
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_copy), (gst_caps_free),
(gst_caps_append), (gst_caps_append_structure),
(gst_caps_get_size), (gst_caps_get_structure), (gst_caps_copy_1),
(gst_caps_set_simple), (gst_caps_set_simple_valist),
(gst_caps_is_any), (gst_caps_is_empty), (gst_caps_is_chained),
(gst_caps_is_fixed), (gst_caps_is_always_compatible),
(gst_caps_intersect), (gst_caps_normalize),
(gst_caps_transform_to_string): Patch from Tim-Philipp Müller
to fix GST_CAPS() and GST_IS_CAPS(). (bug #141304)
* gst/gstcaps.h: use GST_IS_CAPS().
2004-04-28 20:19:46 +00:00
|
|
|
#define GST_IS_CAPS(object) ((object) && (GST_CAPS(object)->type == GST_TYPE_CAPS))
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2005-12-20 11:12:53 +00:00
|
|
|
#define GST_TYPE_STATIC_CAPS (gst_static_caps_get_type())
|
|
|
|
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
2005-11-20 13:28:11 +00:00
|
|
|
* GstCapsFlags:
|
2011-08-09 20:48:53 +00:00
|
|
|
* @GST_CAPS_FLAGS_NONE: no extra flags (Since 0.10.36)
|
2005-11-20 13:28:11 +00:00
|
|
|
* @GST_CAPS_FLAGS_ANY: Caps has no specific content, but can contain
|
|
|
|
* anything.
|
2005-08-27 10:57:00 +00:00
|
|
|
*
|
2005-11-20 13:28:11 +00:00
|
|
|
* Extra flags for a caps.
|
2005-08-27 10:57:00 +00:00
|
|
|
*/
|
2005-11-20 13:28:11 +00:00
|
|
|
typedef enum {
|
2011-08-09 20:48:53 +00:00
|
|
|
GST_CAPS_FLAGS_NONE = 0,
|
2005-11-20 13:28:11 +00:00
|
|
|
GST_CAPS_FLAGS_ANY = (1 << 0)
|
|
|
|
} GstCapsFlags;
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2011-02-25 11:50:12 +00:00
|
|
|
/**
|
|
|
|
* GstCapsIntersectMode:
|
|
|
|
* @GST_CAPS_INTERSECT_ZIG_ZAG : Zig-zags over both caps.
|
|
|
|
* @GST_CAPS_INTERSECT_FIRST : Keeps the first caps order.
|
|
|
|
*
|
|
|
|
* Modes of caps intersection
|
2011-05-02 12:52:58 +00:00
|
|
|
*
|
|
|
|
* @GST_CAPS_INTERSECT_ZIG_ZAG tries to preserve overall order of both caps
|
2011-02-25 11:50:12 +00:00
|
|
|
* by iterating on the caps' structures as the following matrix shows:
|
2011-05-02 12:52:58 +00:00
|
|
|
* |[
|
2011-02-25 11:50:12 +00:00
|
|
|
* caps1
|
|
|
|
* +-------------
|
|
|
|
* | 1 2 4 7
|
|
|
|
* caps2 | 3 5 8 10
|
|
|
|
* | 6 9 11 12
|
2011-05-02 12:52:58 +00:00
|
|
|
* ]|
|
2011-02-25 11:50:12 +00:00
|
|
|
* Used when there is no explicit precedence of one caps over the other. e.g.
|
|
|
|
* tee's sink pad getcaps function, it will probe its src pad peers' for their
|
|
|
|
* caps and intersect them with this mode.
|
|
|
|
*
|
2011-05-02 12:52:58 +00:00
|
|
|
* @GST_CAPS_INTERSECT_FIRST is useful when an element wants to preserve
|
2011-02-25 11:50:12 +00:00
|
|
|
* another element's caps priority order when intersecting with its own caps.
|
|
|
|
* Example: If caps1 is [A, B, C] and caps2 is [E, B, D, A], the result
|
|
|
|
* would be [A, B], maintaining the first caps priority on the intersection.
|
|
|
|
*
|
|
|
|
* Since: 0.10.33
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_CAPS_INTERSECT_ZIG_ZAG = 0,
|
|
|
|
GST_CAPS_INTERSECT_FIRST = 1
|
|
|
|
} GstCapsIntersectMode;
|
|
|
|
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
|
|
|
* GST_CAPS_ANY:
|
|
|
|
*
|
|
|
|
* Means that the element/pad can output 'anything'. Useful for elements
|
|
|
|
* that output unknown media, such as filesrc.
|
|
|
|
*/
|
2004-03-12 18:25:07 +00:00
|
|
|
#define GST_CAPS_ANY gst_caps_new_any()
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
|
|
|
* GST_CAPS_NONE:
|
|
|
|
*
|
|
|
|
* The opposite of %GST_CAPS_ANY: it means that the pad/element outputs an
|
|
|
|
* undefined media type that can not be detected.
|
|
|
|
*/
|
2004-03-12 18:25:07 +00:00
|
|
|
#define GST_CAPS_NONE gst_caps_new_empty()
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
|
|
|
* GST_STATIC_CAPS_ANY:
|
|
|
|
*
|
2005-09-11 12:57:36 +00:00
|
|
|
* Creates a new #GstCaps static caps that matches anything.
|
|
|
|
* This can be used in pad templates.
|
2005-08-27 10:57:00 +00:00
|
|
|
*/
|
2004-03-12 18:25:07 +00:00
|
|
|
#define GST_STATIC_CAPS_ANY GST_STATIC_CAPS("ANY")
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
|
|
|
* GST_STATIC_CAPS_NONE:
|
|
|
|
*
|
2005-09-11 12:57:36 +00:00
|
|
|
* Creates a new #GstCaps static caps that matches nothing.
|
|
|
|
* This can be used in pad templates.
|
2005-08-27 10:57:00 +00:00
|
|
|
*/
|
2004-03-12 18:25:07 +00:00
|
|
|
#define GST_STATIC_CAPS_NONE GST_STATIC_CAPS("NONE")
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
|
|
|
* GST_CAPS_IS_SIMPLE:
|
|
|
|
* @caps: the #GstCaps instance to check
|
|
|
|
*
|
2005-09-11 12:57:36 +00:00
|
|
|
* Convenience macro that checks if the number of structures in the given caps
|
2005-08-27 10:57:00 +00:00
|
|
|
* is exactly one.
|
|
|
|
*/
|
2004-03-12 18:25:07 +00:00
|
|
|
#define GST_CAPS_IS_SIMPLE(caps) (gst_caps_get_size(caps) == 1)
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2004-03-12 18:25:07 +00:00
|
|
|
#ifndef GST_DISABLE_DEPRECATED
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
|
|
|
* GST_DEBUG_CAPS:
|
2005-09-11 12:57:36 +00:00
|
|
|
* @string: a string that should be prepended to the caps data.
|
2005-08-27 10:57:00 +00:00
|
|
|
* @caps: the #GstCaps instance to print
|
|
|
|
*
|
2005-09-11 12:57:36 +00:00
|
|
|
* Convenience macro for printing out the contents of caps with GST_DEBUG().
|
2005-08-27 10:57:00 +00:00
|
|
|
*
|
|
|
|
* Deprecated: do not use anymore
|
|
|
|
*/
|
2004-03-12 18:25:07 +00:00
|
|
|
#define GST_DEBUG_CAPS(string, caps) \
|
|
|
|
GST_DEBUG ( string "%s: " GST_PTR_FORMAT, caps)
|
2006-08-11 15:24:03 +00:00
|
|
|
|
|
|
|
#endif /* GST_DISABLE_DEPRECATED */
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2005-08-27 10:57:00 +00:00
|
|
|
/**
|
|
|
|
* GST_STATIC_CAPS:
|
2005-09-11 12:57:36 +00:00
|
|
|
* @string: the string describing the caps
|
2005-08-27 10:57:00 +00:00
|
|
|
*
|
2005-09-11 12:57:36 +00:00
|
|
|
* Creates a new #GstCaps static caps from an input string.
|
|
|
|
* This can be used in pad templates.
|
2005-08-27 10:57:00 +00:00
|
|
|
*/
|
2004-03-12 18:25:07 +00:00
|
|
|
#define GST_STATIC_CAPS(string) \
|
|
|
|
{ \
|
2006-09-20 16:17:26 +00:00
|
|
|
/* caps */ { 0, 0, (GstCapsFlags) 0, NULL, GST_PADDING_INIT }, \
|
2004-03-12 18:25:07 +00:00
|
|
|
/* string */ string, \
|
2006-09-20 16:17:26 +00:00
|
|
|
GST_PADDING_INIT \
|
2004-03-12 18:25:07 +00:00
|
|
|
}
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2003-12-22 01:39:35 +00:00
|
|
|
typedef struct _GstCaps GstCaps;
|
|
|
|
typedef struct _GstStaticCaps GstStaticCaps;
|
2003-11-11 19:14:14 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/* refcount */
|
2005-11-04 20:12:01 +00:00
|
|
|
/**
|
|
|
|
* GST_CAPS_REFCOUNT:
|
|
|
|
* @caps: a #GstCaps
|
|
|
|
*
|
|
|
|
* Get access to the reference count field of the caps
|
|
|
|
*/
|
2005-03-07 18:27:42 +00:00
|
|
|
#define GST_CAPS_REFCOUNT(caps) ((GST_CAPS(caps))->refcount)
|
2005-11-04 20:12:01 +00:00
|
|
|
/**
|
|
|
|
* GST_CAPS_REFCOUNT_VALUE:
|
|
|
|
* @caps: a #GstCaps
|
|
|
|
*
|
|
|
|
* Get the reference count value of the caps.
|
|
|
|
*/
|
2005-04-24 22:49:45 +00:00
|
|
|
#define GST_CAPS_REFCOUNT_VALUE(caps) (g_atomic_int_get (&(GST_CAPS(caps))->refcount))
|
2005-03-07 18:27:42 +00:00
|
|
|
|
2005-11-09 12:01:46 +00:00
|
|
|
/**
|
|
|
|
* GstCaps:
|
|
|
|
* @type: GType of the caps
|
|
|
|
* @refcount: the atomic refcount value
|
2005-11-20 13:28:11 +00:00
|
|
|
* @flags: extra flags for the caps, read only.
|
2005-11-09 12:01:46 +00:00
|
|
|
*
|
|
|
|
* Object describing media types.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstCaps {
|
2003-11-11 19:14:14 +00:00
|
|
|
GType type;
|
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/*< public >*/ /* with COW */
|
|
|
|
/* refcounting */
|
2005-04-24 22:49:45 +00:00
|
|
|
gint refcount;
|
2005-03-07 18:27:42 +00:00
|
|
|
|
2005-11-20 13:28:11 +00:00
|
|
|
/*< public >*/ /* read only */
|
|
|
|
GstCapsFlags flags;
|
|
|
|
|
|
|
|
/*< private >*/
|
2003-11-11 19:14:14 +00:00
|
|
|
GPtrArray *structs;
|
2004-03-15 22:42:34 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/*< private >*/
|
2004-09-26 17:35:08 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2003-11-11 19:14:14 +00:00
|
|
|
};
|
|
|
|
|
2005-11-09 12:01:46 +00:00
|
|
|
/**
|
|
|
|
* GstStaticCaps:
|
|
|
|
* @caps: the cached #GstCaps
|
|
|
|
* @string: a string describing a caps
|
|
|
|
*
|
|
|
|
* Datastructure to initialize #GstCaps from a string description usually
|
|
|
|
* used in conjunction with GST_STATIC_CAPS() and gst_static_caps_get() to
|
|
|
|
* instantiate a #GstCaps.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstStaticCaps {
|
2005-03-07 18:27:42 +00:00
|
|
|
/*< public >*/
|
2003-12-22 01:39:35 +00:00
|
|
|
GstCaps caps;
|
2003-11-11 19:14:14 +00:00
|
|
|
const char *string;
|
2005-03-07 18:27:42 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
2004-09-26 17:35:08 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2003-11-11 19:14:14 +00:00
|
|
|
};
|
|
|
|
|
2006-08-21 14:54:31 +00:00
|
|
|
GType gst_caps_get_type (void);
|
2011-11-26 18:57:44 +00:00
|
|
|
GstCaps * gst_caps_new_empty (void) G_GNUC_MALLOC;
|
|
|
|
GstCaps * gst_caps_new_any (void) G_GNUC_MALLOC;
|
2006-08-21 14:54:31 +00:00
|
|
|
GstCaps * gst_caps_new_simple (const char *media_type,
|
2006-08-28 16:39:20 +00:00
|
|
|
const char *fieldname,
|
2011-11-26 18:57:44 +00:00
|
|
|
...) G_GNUC_MALLOC;
|
|
|
|
GstCaps * gst_caps_new_full (GstStructure *struct1, ...) G_GNUC_MALLOC;
|
2006-08-21 14:54:31 +00:00
|
|
|
GstCaps * gst_caps_new_full_valist (GstStructure *structure,
|
2011-11-26 18:57:44 +00:00
|
|
|
va_list var_args) G_GNUC_MALLOC;
|
2005-03-07 18:27:42 +00:00
|
|
|
|
|
|
|
/* reference counting */
|
2006-08-28 16:39:20 +00:00
|
|
|
GstCaps * gst_caps_ref (GstCaps *caps);
|
2011-11-26 18:57:44 +00:00
|
|
|
GstCaps * gst_caps_copy (const GstCaps *caps) G_GNUC_MALLOC;
|
2010-04-26 19:52:07 +00:00
|
|
|
GstCaps * gst_caps_make_writable (GstCaps *caps) G_GNUC_WARN_UNUSED_RESULT;
|
2006-08-28 16:39:20 +00:00
|
|
|
void gst_caps_unref (GstCaps *caps);
|
2005-03-07 18:27:42 +00:00
|
|
|
|
2006-08-28 16:39:20 +00:00
|
|
|
GType gst_static_caps_get_type (void);
|
2006-08-21 14:54:31 +00:00
|
|
|
GstCaps * gst_static_caps_get (GstStaticCaps *static_caps);
|
2003-11-11 19:14:14 +00:00
|
|
|
|
|
|
|
/* manipulation */
|
2006-08-21 14:54:31 +00:00
|
|
|
void gst_caps_append (GstCaps *caps1,
|
2006-08-28 16:39:20 +00:00
|
|
|
GstCaps *caps2);
|
2006-08-21 14:54:31 +00:00
|
|
|
void gst_caps_merge (GstCaps *caps1,
|
|
|
|
GstCaps *caps2);
|
|
|
|
void gst_caps_append_structure (GstCaps *caps,
|
2006-08-28 16:39:20 +00:00
|
|
|
GstStructure *structure);
|
|
|
|
void gst_caps_remove_structure (GstCaps *caps, guint idx);
|
|
|
|
void gst_caps_merge_structure (GstCaps *caps,
|
|
|
|
GstStructure *structure);
|
2006-08-21 14:54:31 +00:00
|
|
|
guint gst_caps_get_size (const GstCaps *caps);
|
|
|
|
GstStructure * gst_caps_get_structure (const GstCaps *caps,
|
2006-08-28 16:39:20 +00:00
|
|
|
guint index);
|
2010-06-14 09:39:40 +00:00
|
|
|
GstStructure * gst_caps_steal_structure (GstCaps *caps,
|
2011-11-26 18:57:44 +00:00
|
|
|
guint index) G_GNUC_WARN_UNUSED_RESULT;
|
|
|
|
GstCaps * gst_caps_copy_nth (const GstCaps *caps, guint nth) G_GNUC_MALLOC;
|
2006-08-28 16:39:20 +00:00
|
|
|
void gst_caps_truncate (GstCaps *caps);
|
2009-10-07 13:32:18 +00:00
|
|
|
void gst_caps_set_value (GstCaps *caps,
|
|
|
|
const char *field,
|
|
|
|
const GValue *value);
|
2006-08-21 14:54:31 +00:00
|
|
|
void gst_caps_set_simple (GstCaps *caps,
|
2008-03-24 10:33:41 +00:00
|
|
|
const char *field, ...) G_GNUC_NULL_TERMINATED;
|
2006-08-21 14:54:31 +00:00
|
|
|
void gst_caps_set_simple_valist (GstCaps *caps,
|
2008-03-24 10:33:41 +00:00
|
|
|
const char *field,
|
2006-08-28 16:39:20 +00:00
|
|
|
va_list varargs);
|
2003-11-11 19:14:14 +00:00
|
|
|
|
|
|
|
/* tests */
|
2006-08-21 14:54:31 +00:00
|
|
|
gboolean gst_caps_is_any (const GstCaps *caps);
|
|
|
|
gboolean gst_caps_is_empty (const GstCaps *caps);
|
|
|
|
gboolean gst_caps_is_fixed (const GstCaps *caps);
|
|
|
|
gboolean gst_caps_is_always_compatible (const GstCaps *caps1,
|
2006-08-28 16:39:20 +00:00
|
|
|
const GstCaps *caps2);
|
|
|
|
gboolean gst_caps_is_subset (const GstCaps *subset,
|
|
|
|
const GstCaps *superset);
|
2011-05-27 11:55:31 +00:00
|
|
|
gboolean gst_caps_is_subset_structure (const GstCaps *caps,
|
|
|
|
const GstStructure *structure);
|
2006-08-28 16:39:20 +00:00
|
|
|
gboolean gst_caps_is_equal (const GstCaps *caps1,
|
|
|
|
const GstCaps *caps2);
|
|
|
|
gboolean gst_caps_is_equal_fixed (const GstCaps *caps1,
|
|
|
|
const GstCaps *caps2);
|
2009-07-22 06:38:10 +00:00
|
|
|
gboolean gst_caps_can_intersect (const GstCaps * caps1,
|
|
|
|
const GstCaps * caps2);
|
2011-11-03 15:35:32 +00:00
|
|
|
gboolean gst_caps_is_strictly_equal (const GstCaps *caps1,
|
|
|
|
const GstCaps *caps2);
|
2005-08-24 16:09:50 +00:00
|
|
|
|
2003-11-11 19:14:14 +00:00
|
|
|
|
|
|
|
/* operations */
|
2006-08-21 14:54:31 +00:00
|
|
|
GstCaps * gst_caps_intersect (const GstCaps *caps1,
|
2011-11-26 18:57:44 +00:00
|
|
|
const GstCaps *caps2) G_GNUC_MALLOC;
|
2011-02-25 11:50:12 +00:00
|
|
|
GstCaps * gst_caps_intersect_full (const GstCaps *caps1,
|
|
|
|
const GstCaps *caps2,
|
2011-11-26 18:57:44 +00:00
|
|
|
GstCapsIntersectMode mode) G_GNUC_MALLOC;
|
2006-08-28 16:39:20 +00:00
|
|
|
GstCaps * gst_caps_subtract (const GstCaps *minuend,
|
2011-11-26 18:57:44 +00:00
|
|
|
const GstCaps *subtrahend) G_GNUC_MALLOC;
|
2006-08-21 14:54:31 +00:00
|
|
|
GstCaps * gst_caps_union (const GstCaps *caps1,
|
2011-11-26 18:57:44 +00:00
|
|
|
const GstCaps *caps2) G_GNUC_MALLOC;
|
|
|
|
GstCaps * gst_caps_normalize (const GstCaps *caps) G_GNUC_MALLOC;
|
2006-08-28 16:39:20 +00:00
|
|
|
gboolean gst_caps_do_simplify (GstCaps *caps);
|
2003-11-11 19:14:14 +00:00
|
|
|
|
2010-06-25 16:13:57 +00:00
|
|
|
#if !defined(GST_DISABLE_LOADSAVE) && !defined(GST_DISABLE_DEPRECATED)
|
2006-08-21 14:54:31 +00:00
|
|
|
xmlNodePtr gst_caps_save_thyself (const GstCaps *caps,
|
2006-08-28 16:39:20 +00:00
|
|
|
xmlNodePtr parent);
|
2006-08-21 14:54:31 +00:00
|
|
|
GstCaps * gst_caps_load_thyself (xmlNodePtr parent);
|
2003-11-11 19:14:14 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* utility */
|
2006-08-21 14:54:31 +00:00
|
|
|
void gst_caps_replace (GstCaps **caps,
|
2006-08-28 16:39:20 +00:00
|
|
|
GstCaps *newcaps);
|
2011-11-26 18:57:44 +00:00
|
|
|
gchar * gst_caps_to_string (const GstCaps *caps) G_GNUC_MALLOC;
|
|
|
|
GstCaps * gst_caps_from_string (const gchar *string) G_GNUC_MALLOC;
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2003-12-22 01:39:35 +00:00
|
|
|
#endif /* __GST_CAPS_H__ */
|