pub enum OptimizationGoal {
MinimizeSize,
MaximizeQuality,
TargetBitrate,
Balanced,
RealTime,
}Expand description
High-level goal that drives the optimization strategy.
Variants§
MinimizeSize
Minimize file size while maintaining acceptable quality.
MaximizeQuality
Maximize perceptual quality regardless of file size.
TargetBitrate
Hit a specific streaming bitrate as closely as possible.
Balanced
Balance quality and file size equally.
RealTime
Optimize for fast real-time encoding (e.g. live streaming).
Implementations§
Source§impl OptimizationGoal
impl OptimizationGoal
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns a human-readable description of the goal.
Sourcepub fn default_crf(&self) -> u8
pub fn default_crf(&self) -> u8
Returns the default CRF value associated with this goal (H.264/H.265 scale).
Trait Implementations§
Source§impl Clone for OptimizationGoal
impl Clone for OptimizationGoal
Source§fn clone(&self) -> OptimizationGoal
fn clone(&self) -> OptimizationGoal
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 OptimizationGoal
impl Debug for OptimizationGoal
Source§impl Default for OptimizationGoal
impl Default for OptimizationGoal
Source§impl Hash for OptimizationGoal
impl Hash for OptimizationGoal
Source§impl PartialEq for OptimizationGoal
impl PartialEq for OptimizationGoal
impl Copy for OptimizationGoal
impl Eq for OptimizationGoal
impl StructuralPartialEq for OptimizationGoal
Auto Trait Implementations§
impl Freeze for OptimizationGoal
impl RefUnwindSafe for OptimizationGoal
impl Send for OptimizationGoal
impl Sync for OptimizationGoal
impl Unpin for OptimizationGoal
impl UnsafeUnpin for OptimizationGoal
impl UnwindSafe for OptimizationGoal
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