pub trait StartVideoEncoder: VideoEncoder + Sized {
// Required method
fn start_processing(
capture: &mut Capture<Self>,
input: Receiver<RawVideoFrame>,
) -> Result<()>;
}
Expand description
Specifies how processing is started for a encoder
For the default processing thread logic, implement ProcessingThread
instead.
Required Methods§
fn start_processing( capture: &mut Capture<Self>, input: Receiver<RawVideoFrame>, ) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl StartVideoEncoder for DmaBufEncoder
impl<T> StartVideoEncoder for Twhere
T: ProcessingThread,
Default impl for all VideoEncoders which use a normal processing thread