Expand description
Codec-agnostic video encoder interface.
The Encodable trait abstracts over concrete encoder backends so that
consumers can encode I420 frames without depending on a particular codec or
implementation. Two backends implement it today:
crate::vp9::Vp9Encoder— the pure-Rust VP9 encoder (always compiled, including onwasm32).- The legacy libvpx-backed
Vp9Encoderin [libvpx], available only with thelibvpxfeature on native targets, used as a test oracle and as an opt-in encode backend.
Both are interchangeable behind Box<dyn Encodable>.
Structs§
- Encoded
Frame - A single compressed frame produced by an encoder.
- Encoder
Config - Configuration for a video encoder, independent of the concrete backend.
Traits§
- Encodable
- A codec-agnostic video encoder.
Functions§
- create_
encoder - Construct an encoder for the given codec.