summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2001-03-30 23:56:07 +0000
committerWim Taymans <wim.taymans@gmail.com>2001-03-30 23:56:07 +0000
commit04813b163b710de73e64ab0cf4aa3a9422a17c89 (patch)
treebef9b05b5a61cf4f66106d91cb690f33d9ed234f /gst
parent54347a618b83bd08ec5291846d7cdec685b3dfcc (diff)
Simplified the FOURCC API to the caps, add a GST_MAKE_FOURCC macro to create a fourcc.
Original commit message from CVS: Simplified the FOURCC API to the caps, add a GST_MAKE_FOURCC macro to create a fourcc. Adjusted the plugins to use the new FOURCC API
Diffstat (limited to 'gst')
-rw-r--r--gst/gstprops.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/gstprops.h b/gst/gstprops.h
index 0c0ec6bb3..c647dcae4 100644
--- a/gst/gstprops.h
+++ b/gst/gstprops.h
@@ -60,11 +60,12 @@ typedef enum {
#define GST_PROPS_STRING_ID GINT_TO_POINTER(GST_PROPS_STRING_ID_NUM)
#define GST_PROPS_LAST_ID GINT_TO_POINTER(GST_PROPS_LAST_ID_NUM)
+#define GST_MAKE_FOURCC(a,b,c,d) ((a)|(b)<<8|(c)<<16|(d)<<24)
+
#define GST_PROPS_LIST(a...) GST_PROPS_LIST_ID,##a,NULL
#define GST_PROPS_INT(a) GST_PROPS_INT_ID,(GINT_TO_POINTER(a))
#define GST_PROPS_INT_RANGE(a,b) GST_PROPS_INT_RANGE_ID,(GINT_TO_POINTER(a)),(GINT_TO_POINTER(b))
-#define GST_PROPS_FOURCC(a,b,c,d) GST_PROPS_FOURCC_ID,(GINT_TO_POINTER((a)|(b)<<8|(c)<<16|(d)<<24))
-#define GST_PROPS_FOURCC_INT(a) GST_PROPS_FOURCC_ID,(GINT_TO_POINTER(a))
+#define GST_PROPS_FOURCC(a) GST_PROPS_FOURCC_ID,(GINT_TO_POINTER(a))
#define GST_PROPS_BOOLEAN(a) GST_PROPS_BOOL_ID,(GINT_TO_POINTER(a))
#define GST_PROPS_STRING(a) GST_PROPS_STRING_ID,(a)