VideoFormat.fromMasks

Find the #GstVideoFormat for the given parameters.

struct VideoFormat
static
fromMasks
(
int depth
,
int bpp
,,
uint redMask
,,,)

Parameters

depth int

the amount of bits used for a pixel

bpp int

the amount of bits used to store a pixel. This value is bigger than depth

endianness int

the endianness of the masks, #G_LITTLE_ENDIAN or #G_BIG_ENDIAN

redMask uint

the red mask

greenMask uint

the green mask

blueMask uint

the blue mask

alphaMask uint

the alpha mask, or 0 if no alpha mask

Return Value

Type: gstvideo.types.VideoFormat

a #GstVideoFormat or GST_VIDEO_FORMAT_UNKNOWN when the parameters to not specify a known format.