icgc412_to_rgb12

Function icgc412_to_rgb12 

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

Convert YCgCo 4:4:4 12-bit planar format to RGB12 format.

This function takes YCgCo 4:4:4 12-bit planar format data with 12-bit precision, and converts it to RGB12 format with 12-bit per channel precision.

§Arguments

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