pub trait VideoDecoder: Send {
// Required methods
fn codec(&self) -> Codec;
fn decode(&mut self, data: &[u8]) -> Result<Option<I420Frame>>;
}Expand description
Decodes one compressed frame at a time into I420.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".