Skip to main content

decode_alpha_plane

Function decode_alpha_plane 

Source
pub fn decode_alpha_plane(
    data: &[u8],
    width: usize,
    height: usize,
) -> Result<Vec<u8>, DecoderError>
Expand description

Decodes an ALPH payload to a single-channel alpha plane.

The returned buffer contains one alpha byte per pixel in row-major order.