icgc410_to_rgb10

Function icgc410_to_rgb10 

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

Convert YCgCo 4:4:4 10-bit planar format to RGB10 format.

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

§Arguments

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