Struct adder_codec_rs::transcoder::source::video::Video
source · [−]pub struct Video {
pub width: u16,
pub height: u16,
pub in_interval_count: u32,
pub event_sender: Sender<Vec<Event>>,
pub channels: usize,
/* private fields */
}
Expand description
Attributes common to ADΔER transcode process
Fields
width: u16
height: u16
in_interval_count: u32
event_sender: Sender<Vec<Event>>
channels: usize
Implementations
sourceimpl Video
impl Video
sourcepub fn new(
width: u16,
height: u16,
output_filename: Option<String>,
channels: usize,
tps: DeltaT,
ref_time: DeltaT,
delta_t_max: DeltaT,
d_mode: DecimationMode,
write_out: bool,
communicate_events: bool,
show_display: bool,
source_camera: SourceCamera
) -> Video
pub fn new(
width: u16,
height: u16,
output_filename: Option<String>,
channels: usize,
tps: DeltaT,
ref_time: DeltaT,
delta_t_max: DeltaT,
d_mode: DecimationMode,
write_out: bool,
communicate_events: bool,
show_display: bool,
source_camera: SourceCamera
) -> Video
Initialize the Video. width
and height
are determined by the calling source.
Also spawns a thread with an [OutputWriter
]. This thread receives messages with Event
types which are then written to the output event stream file.
sourcepub fn inter_d_adjustment(&mut self, instantaneous_frame_prev: &mut Mat)
pub fn inter_d_adjustment(&mut self, instantaneous_frame_prev: &mut Mat)
Performs inter-pixel D-value adjustment
pub fn end_write_stream(&mut self)
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
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