Skip to main content

unpack_code_planes_into

Function unpack_code_planes_into 

Source
pub fn unpack_code_planes_into(
    components: &[CodePlane<'_>],
    range: SignalRange,
    source_origin: (usize, usize),
    destination: &mut PixelViewMut<'_>,
) -> Result<ExactDepth, At<CodesError>>
Expand description

Unpack and widen borrowed native component CodePlanes into a canonical strided PixelViewMut region starting at source_origin = (x, y) in each source plane.

components are in destination channel order (Gray; Gray, Alpha; R, G, B; or R, G, B, A); alpha is always full scale. Every check precedes the first write, row padding is untouched, and execution allocates nothing.

Returns the ExactDepth established by this exact widening.