i010_to_ra30

Function i010_to_ra30 

Source
pub fn i010_to_ra30(
    planar_image: &YuvPlanarImage<'_, u16>,
    dst: &mut [u8],
    dst_stride: u32,
    byte_order: Rgb30ByteOrder,
    range: YuvRange,
    matrix: YuvStandardMatrix,
) -> Result<(), YuvError>
Expand description

Convert I010 planar format with 10 bit pixel format to RA30 format.

This function takes I010 planar data with 10 bit precision. and converts it to RA30 format.

§Arguments

  • planar_image - Source I010 planar image.
  • ra30 - A mutable slice to store the converted RA30 format.
  • ra30_stride - The stride (components per row) for RA30 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 RA30 data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.