GstProps

GstProps — Properties

Synopsis


#include <gst/gst.h>


#define     GST_MAKE_FOURCC                 (a,b,c,d)
#define     GST_STR_FOURCC                  (f)

Description

GstProps is used to attach certain properties to a pad. Properties are usually used in conjunction with GstCaps.

Details

GST_MAKE_FOURCC()

#define GST_MAKE_FOURCC(a,b,c,d)        (guint32)((a)|(b)<<8|(c)<<16|(d)<<24)

Create a FOURCC value that can easily be used to construct a fourcc property.

  ...
  "format", GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','U','Y','2')),
  ...

a :first fourcc byte
b :second fourcc byte
c :third fourcc byte
d :fourth fourcc byte

GST_STR_FOURCC()

#define GST_STR_FOURCC(f)               (guint32)(((f)[0])|((f)[1]<<8)|((f)[2]<<16)|((f)[3]<<24))

Create a FOURCC value from a string. example:

  ...
  "format", GST_PROPS_FOURCC (GST_STR_FOURCC ("YUY2")),
  ...

f :the string describing the fourcc value.

See Also

GstCaps