Trait VideoEncoder

Source
pub trait VideoEncoder: Send + 'static {
    type Output;

    // Required methods
    fn reset(&mut self) -> Result<()>;
    fn output(&mut self) -> Option<Receiver<Self::Output>>;
    fn drop_processor(&mut self);
    fn drain(&mut self) -> Result<()>;
    fn get_encoder(&self) -> &Option<Video>;
}
Expand description

Base trait for video encoders. defines the output type of an encoder.

To use this, implement either ProcessingThread::process for processing individual frames on a separate worker thread, or StartVideoEncoder::start_processing for custom start logic.

Required Associated Types§

Required Methods§

Source

fn reset(&mut self) -> Result<()>

Source

fn output(&mut self) -> Option<Receiver<Self::Output>>

Source

fn drop_processor(&mut self)

Source

fn drain(&mut self) -> Result<()>

Source

fn get_encoder(&self) -> &Option<Video>

Implementors§