rgb14_to_i414_be

Function rgb14_to_i414_be 

Source
pub fn rgb14_to_i414_be(
    planar_image: &mut YuvPlanarImageMut<'_, u16>,
    rgba: &[u16],
    rgba_stride: u32,
    range: YuvRange,
    matrix: YuvStandardMatrix,
) -> Result<(), YuvError>
Available on crate feature big_endian only.
Expand description

Convert RGB14 image data to I414 format with 14 bit depth.

This function performs RGB1414 to I414 conversion and stores the result in I414 format, with separate planes for Y (luminance), U (chrominance), and V (chrominance) components.

§Arguments

  • planar_image - Target planar image.
  • rgb14 - The input RGB14 image data slice.
  • rgb14_stride - The stride (components per row) for the RGB14 image data.
  • 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 RGBA data are not valid based on the specified width, height, and strides, or if invalid YUV range or matrix is provided.