pub fn vyuy422_to_rgb_p16(
packed_image: &YuvPackedImage<'_, u16>,
rgb: &mut [u16],
rgb_stride: u32,
bit_depth: u32,
range: YuvRange,
matrix: YuvStandardMatrix,
) -> Result<(), YuvError>Expand description
Convert VYUY (YUV Packed) 8+ bit depth format to RGB image.
This function takes VYUY (4:2:2 Packed) format data with 8-16 bit precision, and converts it to RGB with 8-16 bit per channel precision.
§Arguments
packed_image- Source packed image.rgb- A mutable slice to store the converted RGB data.rgb_stride- The stride (components per row) for the RGB image data.bit_depth- YUV and RGB bit depth.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 VYUY data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.