pub fn i412_to_rgb_f16(
planar_image: &YuvPlanarImage<'_, u16>,
dst: &mut [f16],
dst_stride: u32,
range: YuvRange,
matrix: YuvStandardMatrix,
) -> Result<(), YuvError>Available on crate feature
nightly_f16 only.Expand description
Convert I412 planar format with 12 bit pixel format to RGB float16 format.
This function takes I412 planar data with 12 bit precision. and converts it to RGB format with float16 image.
§Arguments
planar_image- Source I412 planar image.rgb- A mutable slice to store the converted RGB float16 format.rgb_stride- The stride (components per row) for RGB float16 format.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.