Function integrate_for_px

Source
pub fn integrate_for_px(
    px: &mut PixelArena,
    base_val: &mut u8,
    frame_val: u8,
    intensity: f32,
    time_spanned: f32,
    buffer: &mut Vec<Event>,
    params: &VideoStateParams,
    parameters: &CrfParameters,
) -> bool
Expand description

Integrate an intensity value for a pixel, over a given time span

§Arguments

  • px: the pixel to integrate
  • base_val: holder for the base intensity value of the pixel
  • frame_val: the intensity value, normalized to a fixed-length period defined by ref_time. Used for determining if the pixel must pop its events.
  • intensity: the intensity to integrate
  • time_spanned: the time spanned by the intensity value
  • buffer: the buffer to push events to
  • state: the state of the video source

returns: ()