pub fn p012_to_rgba12(
bi_planar_image: &YuvBiPlanarImage<'_, u16>,
rgba: &mut [u16],
rgba_stride: u32,
range: YuvRange,
matrix: YuvStandardMatrix,
) -> Result<(), YuvError>Expand description
Convert P012 format to RGBA12 format.
This function takes P012 data with 12-bit precision and converts it to RGBA12 format with 12 bit-depth precision.
§Arguments
bi_planar_image- Source 12 bit-depth P012 image.dst- A mutable slice to store the converted RGBA 12 bit-depth data.dst_stride- The stride (components per row) for the RGBA image data.range- range of YUV, see YuvRange for more info.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 RGBA data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.