Struct adder_codec_rs::transcoder::event_pixel::pixel::EventPixel
source · [−]pub struct EventPixel { /* private fields */ }
Expand description
ADΔER pixel model, with attributes for driving integration
Implementations
sourceimpl EventPixel
impl EventPixel
sourcepub fn new(
y: PixelAddress,
x: PixelAddress,
c: u8,
ref_time: DeltaT,
delta_t_max: DeltaT,
d_mode: DecimationMode,
channels: u8
) -> EventPixel
pub fn new(
y: PixelAddress,
x: PixelAddress,
c: u8,
ref_time: DeltaT,
delta_t_max: DeltaT,
d_mode: DecimationMode,
channels: u8
) -> EventPixel
Initialize pixel
sourcepub fn reset_fire_count(&mut self)
pub fn reset_fire_count(&mut self)
Reset the count of the number of events fired by the pixel over a given period of time
sourcepub fn add_intensity(
&mut self,
tracker: &mut IntegrationTracker,
sender: &mut Vec<Event>,
communicate_events: bool
)
pub fn add_intensity(
&mut self,
tracker: &mut IntegrationTracker,
sender: &mut Vec<Event>,
communicate_events: bool
)
Add the given Intensity
value to the pixel’s integration, and fire events as
necessary
pub fn lookahead_reset(&mut self, sender: &mut Vec<Event>)
Trait Implementations
impl Send for EventPixel
impl Sync for EventPixel
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more