pub fn letterbox_rgb8(
src: ImageView<'_>,
out_w: u32,
out_h: u32,
out: &mut [u8],
) -> Result<(f32, u32, u32), VisionError>Expand description
Letterbox RGB into square/out buffer with grey pad (114). Returns scale and pad (x,y) as u32 pixels.