pub struct VideoSettingsBuilder { /* private fields */ }Expand description
Builder for configuring video encoder settings.
Implementationsยง
Sourceยงimpl VideoSettingsBuilder
impl VideoSettingsBuilder
Sourcepub const fn new(width: u32, height: u32) -> Self
pub const fn new(width: u32, height: u32) -> Self
Constructs a new VideoSettingsBuilder with required geometry.
Defaults:
- Subtype:
VideoSettingsSubType::HEVC - Bitrate: 15 Mbps
- Frame rate: 60 fps
- Pixel aspect ratio: 1:1
- Disabled: false
Sourcepub const fn sub_type(self, sub_type: VideoSettingsSubType) -> Self
pub const fn sub_type(self, sub_type: VideoSettingsSubType) -> Self
Sets the video codec/subtype (e.g., VideoSettingsSubType::HEVC).
Sourcepub const fn frame_rate(self, frame_rate: u32) -> Self
pub const fn frame_rate(self, frame_rate: u32) -> Self
Sets target frame rate (numerator; denominator is fixed to 1).
Sourcepub const fn pixel_aspect_ratio(self, par: (u32, u32)) -> Self
pub const fn pixel_aspect_ratio(self, par: (u32, u32)) -> Self
Sets pixel aspect ratio as (numerator, denominator).
Auto Trait Implementationsยง
impl Freeze for VideoSettingsBuilder
impl RefUnwindSafe for VideoSettingsBuilder
impl Send for VideoSettingsBuilder
impl Sync for VideoSettingsBuilder
impl Unpin for VideoSettingsBuilder
impl UnsafeUnpin for VideoSettingsBuilder
impl UnwindSafe for VideoSettingsBuilder
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<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