pub struct CodecConfig {
pub codec: String,
pub preset: QualityPreset,
pub tune: Option<TuneMode>,
pub profile: Option<String>,
pub level: Option<String>,
pub rate_control: RateControlMode,
pub options: Vec<(String, String)>,
}Expand description
Codec-specific configuration.
Fields§
§codec: StringCodec name.
preset: QualityPresetPreset (speed/quality tradeoff).
tune: Option<TuneMode>Tune for specific content.
profile: Option<String>Profile.
level: Option<String>Level.
rate_control: RateControlModeRate control mode.
options: Vec<(String, String)>Additional options.
Implementations§
Source§impl CodecConfig
impl CodecConfig
Sourcepub fn preset(self, preset: QualityPreset) -> Self
pub fn preset(self, preset: QualityPreset) -> Self
Sets the preset.
Sourcepub fn rate_control(self, mode: RateControlMode) -> Self
pub fn rate_control(self, mode: RateControlMode) -> Self
Sets the rate control mode.
Trait Implementations§
Source§impl Clone for CodecConfig
impl Clone for CodecConfig
Source§fn clone(&self) -> CodecConfig
fn clone(&self) -> CodecConfig
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 moreAuto Trait Implementations§
impl Freeze for CodecConfig
impl RefUnwindSafe for CodecConfig
impl Send for CodecConfig
impl Sync for CodecConfig
impl Unpin for CodecConfig
impl UnsafeUnpin for CodecConfig
impl UnwindSafe for CodecConfig
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> 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