#[non_exhaustive]pub enum StreamEncodeError {
DimensionsChanged {
first: (u32, u32),
got: (u32, u32),
},
Frame(EncodeError),
NoLastReference,
}Expand description
Errors surfaced by Vp8KeyframeStreamEncoder::encode_frame.
Wraps the per-frame EncodeError surface and adds the
cross-frame-only failures (a dimensions change between frames,
which the §9.1 keyframe-only-resize rule would technically allow
for another key frame but which most container clients treat as
a stream split — we reject it here to keep the contract explicit).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DimensionsChanged
A frame after the first was supplied with different dimensions
than the first. The driver treats the dimensions as locked at
the first encode_frame call.
Fields
Frame(EncodeError)
The underlying per-frame encoder rejected the inputs (validator
failure or §13 token failure). Carries the underlying
EncodeError.
NoLastReference
Vp8InterStreamEncoder::encode_p_frame_with_refresh was called
before the stream had emitted its first frame, so no LAST
reference is available. The caller should drive at least one
frame through the scheduler first.
Trait Implementations§
Source§impl Clone for StreamEncodeError
impl Clone for StreamEncodeError
impl Copy for StreamEncodeError
Source§impl Debug for StreamEncodeError
impl Debug for StreamEncodeError
Source§impl Display for StreamEncodeError
impl Display for StreamEncodeError
impl Eq for StreamEncodeError
Source§impl Error for StreamEncodeError
impl Error for StreamEncodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()