pub enum Bitrate {
Auto,
Bps(u32),
}Expand description
Target bitrate of an encoder. Either way the encoder uses constant-bitrate rate control where the device offers it.
Variants§
Auto
A target chosen from the frame size and rate: 0.16 bits per pixel,
within 1 to 100 Mbps. See EncoderConfig::target_bitrate.
Bps(u32)
A constant target in bits per second.
Trait Implementations§
impl Copy for Bitrate
impl Eq for Bitrate
impl StructuralPartialEq for Bitrate
Auto Trait Implementations§
impl Freeze for Bitrate
impl RefUnwindSafe for Bitrate
impl Send for Bitrate
impl Sync for Bitrate
impl Unpin for Bitrate
impl UnsafeUnpin for Bitrate
impl UnwindSafe for Bitrate
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