Skip to main content

decode

Function decode 

Source
pub fn decode(
    input: &[u8],
    predictor: Option<i32>,
    columns: Option<i32>,
    colors: Option<i32>,
    bits_per_component: Option<i32>,
) -> Result<Vec<u8>, DecodeError>
Expand description

Decode Flate (zlib) compressed data, optionally applying predictor processing.

Parameters:

  • predictor: Predictor type (1=none, 2=TIFF, 10-15=PNG). Defaults to 1.
  • columns: Number of columns per row. Defaults to 1.
  • colors: Number of color components per sample. Defaults to 1.
  • bits_per_component: Bits per color component. Defaults to 8.