Struct adder_codec_rs::utils::simulproc::SimulProcessor
source · pub struct SimulProcessor<W: Write + 'static> {
pub source: Framed<W>,
/* private fields */
}
Expand description
A struct for simultaneously transcoding a video source to ADΔER and reconstructing a framed video from ADΔER
Fields§
§source: Framed<W>
Framed transcoder hook
Implementations§
source§impl<W: Write + 'static> SimulProcessor<W>
impl<W: Write + 'static> SimulProcessor<W>
sourcepub fn new<T>(
source: Framed<W>,
ref_time: DeltaT,
output_path: &str,
frame_max: i32,
num_threads: usize,
codec_version: u8,
time_mode: TimeMode
) -> Result<SimulProcessor<W>, Box<dyn Error>>
pub fn new<T>( source: Framed<W>, ref_time: DeltaT, output_path: &str, frame_max: i32, num_threads: usize, codec_version: u8, time_mode: TimeMode ) -> Result<SimulProcessor<W>, Box<dyn Error>>
Create a new SimulProcessor
Arguments
source
:Framed<W>
sourceref_time
: ticks per source frameoutput_path
: path to output fileframe_max
: max number of frames to transcodenum_threads
: number of threads to usecodec_version
: codec versiontime_mode
: time mode
returns: Result<SimulProcessor<W>, Box<dyn Error, Global>>
Examples
TODO: add examples
Auto Trait Implementations§
impl<W> !RefUnwindSafe for SimulProcessor<W>
impl<W> Send for SimulProcessor<W>
impl<W> Sync for SimulProcessor<W>
impl<W> Unpin for SimulProcessor<W>where
W: Unpin,
impl<W> !UnwindSafe for SimulProcessor<W>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more