y014_to_rgb14

Function y014_to_rgb14 

Source
pub fn y014_to_rgb14(
    gray_image: &YuvGrayImage<'_, u16>,
    dst: &mut [u16],
    dst_stride: u32,
    range: YuvRange,
    matrix: YuvStandardMatrix,
) -> Result<(), YuvError>
Expand description

Convert Y014 format to RGBA 14-bit format.

This function takes Y014 format data with RGBA 14-bit precision, and converts it to RGBA 14-bit per channel precision.

§Arguments

  • gray_image - Source Y014 gray image.
  • rgb_data - A mutable slice to store the converted RGBA14 data.
  • rgb_stride - Elements per row.
  • 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.