Enum rav1e::prelude::EncoderStatus
source · pub enum EncoderStatus {
NeedMoreData,
EnoughData,
LimitReached,
Encoded,
Failure,
NotReady,
}
Expand description
Status that can be returned by Context
functions.
Variants§
NeedMoreData
The encoder needs more data to produce an output packet.
May be emitted by Context::receive_packet()
when frame reordering is
enabled.
EnoughData
There are enough frames in the queue.
May be emitted by Context::send_frame()
when trying to send a frame
after the encoder has been flushed.
LimitReached
The encoder has already produced the number of frames requested.
May be emitted by Context::receive_packet()
after a flush request had
been processed or the frame limit had been reached.
Encoded
A frame had been encoded but not emitted yet.
Failure
Generic fatal error.
NotReady
A frame was encoded in the first pass of a 2-pass encode, but its stats
data was not retrieved with Context::twopass_out()
, or not enough
stats data was provided in the second pass of a 2-pass encode to encode
the next frame.
Trait Implementations§
source§impl Clone for EncoderStatus
impl Clone for EncoderStatus
source§fn clone(&self) -> EncoderStatus
fn clone(&self) -> EncoderStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncoderStatus
impl Debug for EncoderStatus
source§impl Display for EncoderStatus
impl Display for EncoderStatus
source§impl Error for EncoderStatus
impl Error for EncoderStatus
1.30.0 · 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
source§impl PartialEq for EncoderStatus
impl PartialEq for EncoderStatus
source§fn eq(&self, other: &EncoderStatus) -> bool
fn eq(&self, other: &EncoderStatus) -> bool
self
and other
values to be equal, and is used
by ==
.