normalize_array

Function normalize_array 

Source
pub fn normalize_array(
    in_buffer: Vec<u8>,
    format: usize,
    planar_configuration: usize,
    samples_per_pixel: usize,
    bits_per_sample: usize,
    tile_width: usize,
    tile_height: usize,
) -> Vec<u8> 
Expand description

Normalize the array

§Parameters

  • in_buffer: the input buffer
  • format: the data format
  • planar_configuration: the planar configuration
  • samples_per_pixel: the number of samples per pixel
  • bits_per_sample: the bits per sample
  • tile_width: the tile width
  • tile_height: the tile height

§Returns

The normalized array