Skip to main content

convert_buffer

Function convert_buffer 

Source
pub fn convert_buffer(
    src: &[u8],
    width: u32,
    rows: u32,
    from: PixelDescriptor,
    to: PixelDescriptor,
) -> Result<Vec<u8>, At<ConvertError>>
Expand description

Convert a raw byte buffer from one format to another.

Assumes packed (stride = width * bpp) layout.