Function ycbcr_to_rgb_avx2

Source
pub fn ycbcr_to_rgb_avx2(
    y: &[i16; 16],
    cb: &[i16; 16],
    cr: &[i16; 16],
    out: &mut [u8],
    offset: &mut usize,
)
Expand description

Convert YCBCR to RGB using AVX instructions

§Note

IT IS THE RESPONSIBILITY OF THE CALLER TO CALL THIS IN CPUS SUPPORTING AVX2 OTHERWISE THIS IS UB

Peace

This library itself will ensure that it’s never called in CPU’s not supporting AVX2

§Arguments

  • y,cb,cr: A reference of 8 i32’s
  • out: The output array where we store our converted items
  • offset: The position from 0 where we write these RGB values