Enum ImagePixelFormat
Specifies the pixel formats supported by the LMKit media pipeline for image data. Format names encode total bits per pixel and the exact in-memory channel order.
public enum ImagePixelFormat
Fields
GRAY8 = 0
8 bits per pixel grayscale. In-memory layout (per pixel): [Y]
- Range: 0 = black, 255 = white
- No color or alpha channels
- Also known as R8 / Gray8
RGB24 = 1
24 bits per pixel true color (no alpha). In-memory layout (per pixel): [R][G][B] (8 bits each)
- Bytes per pixel: 3
- No alpha channel present
- Also known as R8G8B8 / RGB24
ARGB32 = 2
32 bits per pixel color with alpha. In-memory layout (per pixel): [A][R][G][B] (8 bits each)
- Bytes per pixel: 4
- Alpha range: 0 = fully transparent, 255 = fully opaque
- Alpha is NOT premultiplied
- Also known as A8R8G8B8 / ARGB32