added GST_STR_FOURCC, which takes strings like "YUY2" instead of 'Y','U','Y','2'. better, I think <g>

Original commit message from CVS:
added GST_STR_FOURCC, which takes strings like "YUY2" instead of 'Y','U','Y','2'.  better, I think <g>
This commit is contained in:
Erik Walthinsen 2001-04-22 01:32:44 +00:00
parent 285cd4c15a
commit 4368fad117

View file

@ -51,6 +51,7 @@ typedef enum {
} GstPropsId; } GstPropsId;
#define GST_MAKE_FOURCC(a,b,c,d) ((a)|(b)<<8|(c)<<16|(d)<<24) #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_LIST(a...) GST_PROPS_LIST_ID,##a,NULL
#define GST_PROPS_INT(a) GST_PROPS_INT_ID,(a) #define GST_PROPS_INT(a) GST_PROPS_INT_ID,(a)