pub enum EncodingDeadline {
Realtime,
GoodQuality,
BestQuality,
Custom(Duration),
}Expand description
Encode Deadline
The encoder supports the notion of a soft real-time deadline. Given a
non-zero value to the deadline parameter (i.e. anything other than
BestQuality), the encoder will make a “best effort” guarantee to
return before the given time slice expires. It is implicit that limiting
the available time to encode will degrade the output quality. The encoder
can be given an unlimited time to produce the best possible frame by
specifying a deadline of BestQuality. A Custom deadline supersedes
the VPx notion of “best quality, good quality, realtime”.
The default is GoodQuality.
Variants§
Realtime
Deadline indicating that the encoder return as soon as possible
(equal to vpx_sys::VPX_DL_REALTIME microseconds).
GoodQuality
Deadline equal to vpx_sys::VPX_DL_GOOD_QUALITY microseconds
(the default).
BestQuality
Deadline equal to vpx_sys::VPX_DL_BEST_QUALITY (unlimited
encoding time to produce the best frame possible).
Custom(Duration)
Custom deadline setting to be passed to the encoder.
Trait Implementations§
Source§impl Clone for EncodingDeadline
impl Clone for EncodingDeadline
Source§fn clone(&self) -> EncodingDeadline
fn clone(&self) -> EncodingDeadline
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more