mp.ImageFormat

An enum describing supported raw image formats.

SRGB: sRGB, interleaved: one byte for R, then one byte for G, then one byte for B for each pixel.

SRGBA: sRGBA, interleaved: one byte for R, one byte for G, one byte for B, one byte for alpha or unused.

SBGRA: sBGRA, interleaved: one byte for B, one byte for G, one byte for R, one byte for alpha or unused.

GRAY8: Grayscale, one byte per pixel.

GRAY16: Grayscale, one uint16 per pixel.

SRGB48: sRGB, interleaved, each component is a uint16.

SRGBA64: sRGBA, interleaved, each component is a uint16.

VEC32F1: One float per pixel.

VEC32F2: Two floats per pixel.

GRAY16 <ImageFormat.GRAY16: 4>
GRAY8 <ImageFormat.GRAY8: 3>
SRGB <ImageFormat.SRGB: 1>
SRGB48 <ImageFormat.SRGB48: 7>
SRGBA <ImageFormat.SRGBA: 2>
SRGBA64 <ImageFormat.SRGBA64: 8>
UNKNOWN <ImageFormat.UNKNOWN: 0>
VEC32F1 <ImageFormat.VEC32F1: 9>
VEC32F2 <ImageFormat.VEC32F2: 12>
VEC32F4 <ImageFormat.VEC32F4: 13>