VideoFormat.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.

Parameters

depththe amount of bits used for a pixel
bppthe amount of bits used to store a pixel. This value is bigger than depth
endiannessthe endianness of the masks, #G_LITTLE_ENDIAN or #G_BIG_ENDIAN
redMaskthe red mask
greenMaskthe green mask
blueMaskthe blue mask
alphaMaskthe alpha mask, or 0 if no alpha mask

Returns

a #GstVideoFormat or GST_VIDEO_FORMAT_UNKNOWN when the parameters to

not specify a known format.