pub fn i210_be_to_bgra(
planar_image: &YuvPlanarImage<'_, u16>,
dst: &mut [u8],
dst_stride: u32,
range: YuvRange,
matrix: YuvStandardMatrix,
) -> Result<(), YuvError>Available on crate feature
big_endian only.Expand description
Convert YUV 420 10-bit planar format with 10 bit pixel format to BGRA 8-bit format.
This function takes YUV 420 10-bit planar data with 10 bit precision. and converts it to BGRA format with 8 bit-depth precision per channel
§Arguments
planar_image- Source YUV 420 10-bit planar image.bgra- A mutable slice to store the converted BGRA 8 bit-depth format.bgra_stride- The stride (components per row) for BGRA 8 bit-depth 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 BGRA data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.