Struct adder_codec_rs::transcoder::source::davis_source::DavisSource
source · pub struct DavisSource {
pub start_of_frame_timestamp: Option<i64>,
pub end_of_frame_timestamp: Option<i64>,
pub rt: Runtime,
pub dvs_last_timestamps: Array3<i64>,
pub dvs_last_ln_val: Array3<f64>,
pub mode: DavisTranscoderMode,
/* private fields */
}
Expand description
Attributes of a framed video -> ADΔER transcode
Fields§
§start_of_frame_timestamp: Option<i64>
§end_of_frame_timestamp: Option<i64>
§rt: Runtime
§dvs_last_timestamps: Array3<i64>
§dvs_last_ln_val: Array3<f64>
§mode: DavisTranscoderMode
Implementations§
source§impl DavisSource
impl DavisSource
sourcepub fn new(
reconstructor: Reconstructor,
output_events_filename: Option<String>,
tps: DeltaT,
tpf: f64,
delta_t_max: DeltaT,
show_display_b: bool,
adder_c_thresh_pos: u8,
adder_c_thresh_neg: u8,
optimize_adder_controller: bool,
rt: Runtime,
mode: DavisTranscoderMode,
write_out: bool
) -> Result<DavisSource>
pub fn new(
reconstructor: Reconstructor,
output_events_filename: Option<String>,
tps: DeltaT,
tpf: f64,
delta_t_max: DeltaT,
show_display_b: bool,
adder_c_thresh_pos: u8,
adder_c_thresh_neg: u8,
optimize_adder_controller: bool,
rt: Runtime,
mode: DavisTranscoderMode,
write_out: bool
) -> Result<DavisSource>
Initialize the framed source and read first frame of source, in order to get height
and width
and initialize Video
pub fn integrate_dvs_events<F: Fn(i64, i64) -> bool + Send + 'static + Sync>(
&mut self,
dvs_events: &Vec<DvsEvent>,
frame_timestamp: &i64,
event_check: F
)
pub fn get_reconstructor(&self) -> &Reconstructor
pub fn get_reconstructor_mut(&mut self) -> &mut Reconstructor
Trait Implementations§
source§impl Source for DavisSource
impl Source for DavisSource
impl Sync for DavisSource
Auto Trait Implementations§
impl !RefUnwindSafe for DavisSource
impl Send for DavisSource
impl Unpin for DavisSource
impl !UnwindSafe for DavisSource
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.