Trait adder_codec_rs::framer::driver::Framer
source · pub trait Framer {
type Output;
fn new(builder: FramerBuilder) -> Self;
fn ingest_event(&mut self, event: &mut Event) -> bool;
fn ingest_events_events(&mut self, events: Vec<Vec<Event>>) -> bool;
}
Required Associated Types§
Required Methods§
fn new(builder: FramerBuilder) -> Self
sourcefn ingest_event(&mut self, event: &mut Event) -> bool
fn ingest_event(&mut self, event: &mut Event) -> bool
Ingest an ADΔER event. Will process differently depending on choice of FramerMode
.
If [INSTANTANEOUS
], this function will set the corresponding output frame’s pixel value to
the value derived from this Event
, only if this is the first value ingested for that
pixel and frame. Otherwise, the operation will silently be ignored.
If [INTEGRATION
], this function will integrate this Event
value for the corresponding
output frame(s)