Function ispc_downsampler::downsample
source · [−]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.