#[non_exhaustive]pub struct PreEncodedOptions {
pub width: u32,
pub height: u32,
}Expand description
Geometry for a pre-encoded video track
(TrackVideoEncoder::PreEncoded).
width/height set the resolution libwebrtc’s encoder pipeline is
configured for. They must match what your encoder actually produces. Pass
0 in EncodedVideoFrame fields to inherit them per frame.
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.width: u32Encoded width in pixels.
height: u32Encoded height in pixels.
Implementations§
Trait Implementations§
Source§impl Clone for PreEncodedOptions
impl Clone for PreEncodedOptions
impl Copy for PreEncodedOptions
Auto Trait Implementations§
impl Freeze for PreEncodedOptions
impl RefUnwindSafe for PreEncodedOptions
impl Send for PreEncodedOptions
impl Sync for PreEncodedOptions
impl Unpin for PreEncodedOptions
impl UnsafeUnpin for PreEncodedOptions
impl UnwindSafe for PreEncodedOptions
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