VideoFormat

Namespace for VideoFormat enum

Members

Static functions

fromFourcc
gstvideo.types.VideoFormat fromFourcc(uint fourcc)

Converts a FOURCC value into the corresponding #GstVideoFormat. If the FOURCC cannot be represented by #GstVideoFormat, #GST_VIDEO_FORMAT_UNKNOWN is returned.

fromMasks
gstvideo.types.VideoFormat fromMasks(int depth, int bpp, int endianness, uint redMask, uint greenMask, uint blueMask, uint alphaMask)

Find the #GstVideoFormat for the given parameters.

fromString
gstvideo.types.VideoFormat fromString(string format)

Convert the format string to its #GstVideoFormat.

getInfo
gstvideo.video_format_info.VideoFormatInfo getInfo(gstvideo.types.VideoFormat format)

Get the #GstVideoFormatInfo for format

getPalette
const(void)* getPalette(gstvideo.types.VideoFormat format, size_t size)

Get the default palette of format. This the palette used in the pack function for paletted formats.

toFourcc
uint toFourcc(gstvideo.types.VideoFormat format)

Converts a #GstVideoFormat value into the corresponding FOURCC. Only a few YUV formats have corresponding FOURCC values. If format has no corresponding FOURCC value, 0 is returned.

toString_
string toString_(gstvideo.types.VideoFormat format)

Returns a string containing a descriptive name for the #GstVideoFormat if there is one, or NULL otherwise.