pub fn encode_clcl(bgra: &[u8], w: i32, h: i32) -> Vec<u8> ⓘExpand description
Encode BGRA pixels to CLCL nibble-chroma planar format.
Output layout (2 Bpp):
Y plane: w × h bytes (full 8-bit luma)
Cb plane: (w × h) / 2 bytes (packed nibbles, odd pixel high nibble)
Cr plane: (w × h) / 2 bytes (packed nibbles, odd pixel high nibble)
Each chroma nibble is (value >> 4) — the top 4 bits.