#[non_exhaustive]pub struct Options {
pub bitrate: Option<u64>,
pub kind: Kind,
}Expand description
Source-agnostic encode knobs for publish_capture, where the geometry
(width / height / framerate) comes from the capture source, not the caller.
For the bring-your-own-frames Encoder path, where you
must specify geometry, use Config instead.
#[non_exhaustive]: construct via Options::default and set fields, so
new knobs can be added without breaking callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bitrate: Option<u64>Target bitrate in bits per second; None derives from resolution.
kind: KindEncoder implementation preference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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