apply_predictor

Function apply_predictor 

Source
pub fn apply_predictor(
    block: Vec<u8>,
    predictor: i16,
    width: usize,
    height: usize,
    bits_per_sample: Vec<u16>,
    planar_configuration: i16,
) -> Vec<u8> 
Expand description

Apply the specified predictor to a block

§Parameters

  • block: the block to modify
  • predictor: the predictor
  • width: the block width
  • height: the block height
  • bits_per_sample: the number of bits per sample
  • planar_configuration: the planar configuration

§Returns

The modified block