Skip to main content

full_depth

Function full_depth 

Source
pub fn full_depth(
    format: PixelFormat,
    width: u32,
    height: u32,
    row_stride: Option<usize>,
    src: &[u8],
) -> Result<Pixels, ConvertError>
Expand description

The frame without losing depth: monochrome as grey, everything else as RGB, 16-bit when the camera’s samples are wider than 8 bits — a Bayer mosaic demosaiced at its own depth.