ycgco444_to_bgra

Function ycgco444_to_bgra 

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

Convert YCgCo 444 planar format to BGRA8 format.

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

§Arguments

  • image - Source YCgCo 444 image.
  • dst - A mutable slice to store the converted BGRA8 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 BGRA8 data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.