pub fn y010_to_rgb10(
gray_image: &YuvGrayImage<'_, u16>,
dst: &mut [u16],
dst_stride: u32,
range: YuvRange,
matrix: YuvStandardMatrix,
) -> Result<(), YuvError>Expand description
Convert Y010 format to RGB 10-bit format.
This function takes Y010 format data with RGB 10-bit precision, and converts it to RGB 10-bit per channel precision.
§Arguments
gray_image- Source Y010 gray image.rgb_data- A mutable slice to store the converted RGB10 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.