pub fn deinterleave_reference(
pixels: &[u8],
num_pixels: usize,
num_components: u8,
bit_depth: u8,
signed: bool,
) -> Vec<Vec<f32>>Expand description
Adapter scalar pixel deinterleave/level-shift reference for CUDA stage parity.
Converts interleaved pixel bytes to per-component f32 planes with the
same level-shift logic as the native CPU encode path. The result is one
Vec<f32> per component, each of length num_pixels.