ycgco444_to_bgr

Function ycgco444_to_bgr 

Source
pub fn ycgco444_to_bgr(
    image: &YuvPlanarImage<'_, u8>,
    dst: &mut [u8],
    dst_stride: u32,
    range: YuvRange,
) -> Result<(), YuvError>
Expand description

Convert YCgCo 444 planar format to BGR8 format.

This function takes YCgCo 444 planar format data with 8-bit precision, and converts it to BGR8 format with 8-bit per channel precision.

§Arguments

  • image - Source YCgCo 444 image.
  • dst - A mutable slice to store the converted BGR8 data.
  • dst_stride - Elements per row.
  • range - The YUV range (limited or full).

§Panics

This function panics if the lengths of the planes or the input BGR8 data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.