Trait adder_codec_rs::transcoder::source::video::Source
source · pub trait Source<W: Write> {
// Required methods
fn consume(
&mut self,
view_interval: u32,
thread_pool: &ThreadPool
) -> Result<Vec<Vec<Event>>, SourceError>;
fn get_video_mut(&mut self) -> &mut Video<W>;
fn get_video_ref(&self) -> &Video<W>;
fn get_video(self) -> Video<W>;
}
Expand description
A trait for objects that can be used as a source of data for the ADΔER transcode model.
Required Methods§
sourcefn consume(
&mut self,
view_interval: u32,
thread_pool: &ThreadPool
) -> Result<Vec<Vec<Event>>, SourceError>
fn consume( &mut self, view_interval: u32, thread_pool: &ThreadPool ) -> Result<Vec<Vec<Event>>, SourceError>
Intake one input interval worth of data from the source stream into the ADΔER model as intensities.