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.

SRGB

SRGBA

SBGRA

GRAY8

GRAY16

SRGB48

SRGBA64

VEC32F1

VEC32F2

name

value

Methods

__eq__

__ne__

GRAY16 Instance of mp.ImageFormat
GRAY8 Instance of mp.ImageFormat
SBGRA Instance of mp.ImageFormat
SRGB Instance of mp.ImageFormat
SRGB48 Instance of mp.ImageFormat
SRGBA Instance of mp.ImageFormat
SRGBA64 Instance of mp.ImageFormat
VEC32F1 Instance of mp.ImageFormat
VEC32F2 Instance of mp.ImageFormat