from_masks


Description:

public static Format from_masks (int depth, int bpp, int endianness, uint red_mask, uint green_mask, uint blue_mask, uint alpha_mask)

Find the Format 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, LITTLE_ENDIAN or BIG_ENDIAN

red_mask

the red mask

green_mask

the green mask

blue_mask

the blue mask

alpha_mask

the alpha mask, or 0 if no alpha mask

Returns:

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