Function ispc_downsampler::downsample
source · pub fn downsample(
src: &Image<'_>,
target_width: u32,
target_height: u32
) -> Vec<u8>Expand description
Runs the ISPC kernel on the source image, sampling it down to the target_width and target_height. Returns the downsampled pixel data as a Vec<u8>.
Will panic if the target width or height are higher than that of the source image.