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 more