convert_rgb_f16_to_rgb16

Function convert_rgb_f16_to_rgb16 

Source
pub fn convert_rgb_f16_to_rgb16(
    src: &[f16],
    src_stride: usize,
    dst: &mut [u16],
    dst_stride: usize,
    bit_depth: usize,
    width: usize,
    height: usize,
) -> Result<(), YuvError>
Available on crate feature nightly_f16 only.
Expand description

Converts RGB f16 image to 8+ bit-depth image.

ยงArguments

  • src: Source image
  • src_stride: Source image stride
  • dst: Destination image
  • dst_stride: Destination image stride
  • bit_depth: Image bit depth
  • width: Image width
  • height: Image height

returns: Result<(), YuvError>