Expand description
CL (per-pixel nibble chroma) decoder — also called “chunky” or “per-pixel” chroma.
§Payload layout (planar)
[Y0, Y1, ..., Y(N-1), CbCr0, CbCr1, ..., CbCr(N-1)]- Y — 1 byte per pixel (full 8-bit luma).
CbCr— 1 byte per pixel, packed nibbles: high nibble = Cr, low nibble = Cb. Each chroma nibble is 4-bit (0–15) and upscaled to 8-bit by<< 4.
In total: 2 bytes per pixel × N pixels.
Example for 2 pixels:
Byte 0: Y0
Byte 1: Y1
Byte 2: (Cr0 << 4) | Cb0
Byte 3: (Cr1 << 4) | Cb1Output is BGRA 8-bit per channel (via BT.601 YUV→RGB conversion).
Functions§
- decode
- Decode a CL (per-pixel nibble chroma) frame to BGRA8 output.