pub enum VideoRateControl {
CodecDefault,
Lossless,
ConstantQuantizer(u8),
}Expand description
Rate-control mode requested from a video encoder.
Variants§
CodecDefault
Let the codec choose its default mode.
Lossless
Request stream-exact lossless coding.
ConstantQuantizer(u8)
Request lossy coding with a codec-local quantizer value.
Implementations§
Source§impl VideoRateControl
impl VideoRateControl
Sourcepub fn constant_quantizer(qp: u8) -> Result<Self>
pub fn constant_quantizer(qp: u8) -> Result<Self>
Create a constant-quantizer rate-control mode.
The accepted public range is 1..=255.
Trait Implementations§
Source§impl Clone for VideoRateControl
impl Clone for VideoRateControl
impl Copy for VideoRateControl
Source§impl Debug for VideoRateControl
impl Debug for VideoRateControl
Source§impl Default for VideoRateControl
impl Default for VideoRateControl
impl Eq for VideoRateControl
Source§impl PartialEq for VideoRateControl
impl PartialEq for VideoRateControl
impl StructuralPartialEq for VideoRateControl
Auto Trait Implementations§
impl Forget for VideoRateControl
impl Freeze for VideoRateControl
impl RefUnwindSafe for VideoRateControl
impl Send for VideoRateControl
impl Sync for VideoRateControl
impl Unpin for VideoRateControl
impl UnsafeUnpin for VideoRateControl
impl UnwindSafe for VideoRateControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more