gb14_to_rgb_f16

Function gb14_to_rgb_f16 

Source
pub fn gb14_to_rgb_f16(
    image: &YuvPlanarImage<'_, u16>,
    rgb: &mut [f16],
    rgb_stride: u32,
    range: YuvRange,
) -> Result<(), YuvError>
Available on crate feature nightly_f16 only.
Expand description

Convert GBR14 to RGBF16, IEEE float16 format.

This function takes GBR planar format data with 14 bit precision, and converts it to RGBF16 IEEE float16 format.

§Arguments

  • image - Source GB14 image.
  • rgb - A slice to store the RGBF16 data.
  • rgb_stride - The stride (components per row) for the RGBF16.
  • 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.