added GST_STR_FOURCC, which takes strings like "YUY2" instead of 'Y','U','Y','2'...
authorErik Walthinsen <omega@temple-baptist.org>
Sun, 22 Apr 2001 01:32:44 +0000 (01:32 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Sun, 22 Apr 2001 01:32:44 +0000 (01:32 +0000)
Original commit message from CVS:
added GST_STR_FOURCC, which takes strings like "YUY2" instead of 'Y','U','Y','2'.  better, I think <g>

gst/gstprops.h

index a67acf8aea85439250da528de9ff2cac17c71973..07cab144bc241d8cb97ceb8d3771715defdf3bda 100644 (file)
@@ -51,6 +51,7 @@ typedef enum {
 } GstPropsId;
 
 #define GST_MAKE_FOURCC(a,b,c,d)       ((a)|(b)<<8|(c)<<16|(d)<<24)
+#define GST_STR_FOURCC(f)              (((f)[0])|((f)[1]<<8)|((f)[2]<<16)|((f)[3]<<24))
 
 #define GST_PROPS_LIST(a...)           GST_PROPS_LIST_ID,##a,NULL
 #define GST_PROPS_INT(a)               GST_PROPS_INT_ID,(a)