not specify a known format.
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
depth | the amount of bits used for a pixel |
bpp | the amount of bits used to store a pixel. This value is bigger than depth |
endianness | the endianness of the masks, #G_LITTLE_ENDIAN or #G_BIG_ENDIAN |
redMask | the red mask |
greenMask | the green mask |
blueMask | the blue mask |
alphaMask | the alpha mask, or 0 if no alpha mask |
Returns
a #GstVideoFormat or GST_VIDEO_FORMAT_UNKNOWN when the parameters to