Struct adder_codec_rs::transcoder::source::video::Video
source · pub struct Video {
pub state: VideoState,
pub instantaneous_frame: Mat,
pub instantaneous_view_mode: FramedViewMode,
pub event_sender: Sender<Vec<Event>>,
/* private fields */
}
Expand description
Attributes common to ADΔER transcode process
Fields§
§state: VideoState
§instantaneous_frame: Mat
§instantaneous_view_mode: FramedViewMode
§event_sender: Sender<Vec<Event>>
Implementations§
source§impl Video
impl Video
pub fn c_thresh_pos(self, c_thresh_pos: u8) -> Self
pub fn c_thresh_neg(self, c_thresh_neg: u8) -> Self
pub fn chunk_rows(self, chunk_rows: usize) -> Self
pub fn time_parameters(
self,
tps: u32,
ref_time: u32,
delta_t_max: u32
) -> Result<Self, Box<dyn Error>>
pub fn write_out(
self,
output_filename: String,
source_camera: Option<SourceCamera>,
time_mode: Option<TimeMode>
) -> Result<Self, Box<dyn Error>>
pub fn show_display(self, show_display: bool) -> Self
sourcepub fn end_write_stream(&mut self) -> Result<(), Box<dyn Error>>
pub fn end_write_stream(&mut self) -> Result<(), Box<dyn Error>>
Close and flush the stream writer.
Errors
Returns an error if the stream writer cannot be closed cleanly.
sourcepub fn get_ref_time(&self) -> u32
pub fn get_ref_time(&self) -> u32
Get ref_time
sourcepub fn get_delta_t_max(&self) -> u32
pub fn get_delta_t_max(&self) -> u32
Get delta_t_max
sourcepub fn update_delta_t_max(&mut self, dtm: u32)
pub fn update_delta_t_max(&mut self, dtm: u32)
Set a new value for delta_t_max
sourcepub fn update_adder_thresh_pos(&mut self, c: u8)
pub fn update_adder_thresh_pos(&mut self, c: u8)
Set a new value for c_thresh_pos
sourcepub fn update_adder_thresh_neg(&mut self, c: u8)
pub fn update_adder_thresh_neg(&mut self, c: u8)
Set a new value for c_thresh_neg
Auto Trait Implementations§
impl RefUnwindSafe for Video
impl Send for Video
impl !Sync for Video
impl Unpin for Video
impl UnwindSafe for Video
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.