pub fn y016_to_rgb16(
gray_image: &YuvGrayImage<'_, u16>,
dst: &mut [u16],
dst_stride: u32,
range: YuvRange,
matrix: YuvStandardMatrix,
) -> Result<(), YuvError>Expand description
Convert Y016 format to RGBA 16-bit format.
This function takes Y016 format data with RGBA 16-bit precision, and converts it to RGBA 16-bit per channel precision.
§Arguments
gray_image- Source Y016 gray image.rgb_data- A mutable slice to store the converted RGBA16 data.rgb_stride- Elements per row.range- The YUV range (limited or full).matrix- The YUV standard matrix (BT.601 or BT.709 or BT.2020 or other).
§Panics
This function panics if the lengths of the planes or the input RGB data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.