Skip to main content

encode_cl

Function encode_cl 

Source
pub fn encode_cl(bgra: &[u8], w: i32, h: i32) -> Vec<u8> 
Expand description

Encode BGRA pixels to CL per-pixel nibble chroma format.

Output layout (2 Bpp): Y plane: w × h bytes (full 8-bit luma) CbCr plane: w × h bytes (Cr in high nibble, Cb in low nibble)