pub struct PresetConfig {
pub video_codec: Option<String>,
pub audio_codec: Option<String>,
pub video_bitrate: Option<u64>,
pub audio_bitrate: Option<u64>,
pub width: Option<u32>,
pub height: Option<u32>,
pub frame_rate: Option<(u32, u32)>,
pub quality_mode: Option<QualityMode>,
pub container: Option<String>,
pub audio_channel_layout: Option<AudioLayout>,
}Expand description
Preset configuration for common transcoding scenarios.
Fields§
§video_codec: Option<String>Video codec name.
audio_codec: Option<String>Audio codec name.
video_bitrate: Option<u64>Video bitrate.
audio_bitrate: Option<u64>Audio bitrate.
width: Option<u32>Video width.
height: Option<u32>Video height.
frame_rate: Option<(u32, u32)>Frame rate.
quality_mode: Option<QualityMode>Quality mode.
container: Option<String>Container format.
audio_channel_layout: Option<AudioLayout>Audio channel layout (mono, stereo, 5.1, 7.1).
Trait Implementations§
Source§impl Clone for PresetConfig
impl Clone for PresetConfig
Source§fn clone(&self) -> PresetConfig
fn clone(&self) -> PresetConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresetConfig
impl Debug for PresetConfig
Source§impl Default for PresetConfig
impl Default for PresetConfig
Source§fn default() -> PresetConfig
fn default() -> PresetConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PresetConfig
impl RefUnwindSafe for PresetConfig
impl Send for PresetConfig
impl Sync for PresetConfig
impl Unpin for PresetConfig
impl UnsafeUnpin for PresetConfig
impl UnwindSafe for PresetConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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