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 integratebase_val
: holder for the base intensity value of the pixelframe_val
: the intensity value, normalized to a fixed-length period defined byref_time
. Used for determining if the pixel must pop its events.intensity
: the intensity to integratetime_spanned
: the time spanned by the intensity valuebuffer
: the buffer to push events tostate
: the state of the video source
returns: ()