pub struct VideoEncoderBuilder {
pub min_quantizer: u32,
pub max_quantizer: u32,
pub bitrate_kbps: u32,
pub fps: u32,
pub resolution: (u32, u32),
pub cpu_used: u32,
pub profile: u32,
}Fields§
§min_quantizer: u32§max_quantizer: u32§bitrate_kbps: u32§fps: u32§resolution: (u32, u32)§cpu_used: u32§profile: u32Implementations§
Source§impl VideoEncoderBuilder
impl VideoEncoderBuilder
pub fn set_resolution(self, width: u32, height: u32) -> Self
pub fn build(&self) -> Result<VideoEncoder>
Auto Trait Implementations§
impl Freeze for VideoEncoderBuilder
impl RefUnwindSafe for VideoEncoderBuilder
impl Send for VideoEncoderBuilder
impl Sync for VideoEncoderBuilder
impl Unpin for VideoEncoderBuilder
impl UnsafeUnpin for VideoEncoderBuilder
impl UnwindSafe for VideoEncoderBuilder
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more