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.