pub fn icgc012_to_rgb12(
image: &YuvPlanarImage<'_, u16>,
dst: &mut [u16],
dst_stride: u32,
range: YuvRange,
) -> Result<(), YuvError>Expand description
Convert YCgCo 4:2:0 12-bit planar format to RGB12 format.
This function takes YCgCo 4:2:0 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:2:0 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.