gb14_to_rgb14

Function gb14_to_rgb14 

Source
pub fn gb14_to_rgb14(
    image: &YuvPlanarImage<'_, u16>,
    rgb: &mut [u16],
    rgb_stride: u32,
    range: YuvRange,
) -> Result<(), YuvError>
Expand description

Convert GBR 14 bit-depth to RGB14

This function takes GBR planar format data with 14 bit precision, and converts it to RGB format with 14 bit per channel precision.

§Arguments

  • image - Source GBR image.
  • rgb - A slice to store the RGB data.
  • rgb_stride - The stride (components per row) for the RGB.
  • range - Yuv values range.

§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 is provided.