pub fn i010_be_to_rgba10(
planar_image: &YuvPlanarImage<'_, u16>,
dst: &mut [u16],
dst_stride: u32,
range: YuvRange,
matrix: YuvStandardMatrix,
) -> Result<(), YuvError>
Available on crate feature
big_endian
only.Expand description
Convert I010BE planar format with 10 bit pixel format to RGBA 10 bit-depth format.
This function takes I010BE planar data with 10 bit precision. and converts it to RGBA format with 10 bit-depth precision per channel
§Arguments
planar_image
- Source I010BE planar image.rgba
- A mutable slice to store the converted RGBA 10 bit-depth data.rgba_stride
- The stride (components per row) for RGBA 10 bit-depth data.range
- The YUV range (limited or full).matrix
- The YUV standard matrix (BT.601 or BT.709 or BT.2020 or other).endianness
- The endianness of stored bytesbytes_packing
- see YuvBytesPacking for more info.bit_depth
- Bit depth of source YUV planes, only 10 and 12 is supported.
§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.