Skip to main content

colour_evm_yiq

Function colour_evm_yiq 

Source
pub fn colour_evm_yiq(
    frames: &[u8],
    n_frames: usize,
    width: u32,
    height: u32,
    params: ColourEvmParams,
    out: &mut [u8],
    trace_scratch: &mut [f32],
    band_i: &mut [f32],
    band_q: &mut [f32],
) -> Result<f32, EvmRefuse>
Expand description

Amplify chrominance temporal band of an RGB frame stack into out.

frames / out: packed n_frames * width * height * 3 RGB8.

Scratch (caller-owned, Tier-2 OK):

  • trace_scratch: ≥ n_frames
  • band_i, band_q: ≥ n_frames * px for pixel path; shorter → mean path