pub struct ShrinkOpts {
pub goal: SizeGoal,
pub video_codec: VideoCodec,
pub audio: AudioChoice,
pub resolution: ResolutionOpt,
pub fps: FpsOpt,
pub quality: QualityPreset,
pub audio_codec: AudioCodec,
pub mono: bool,
pub sample_rate: Option<u32>,
pub vbr: bool,
pub target_vmaf: Option<f64>,
pub output: Option<PathBuf>,
}Expand description
Compression options passed to the engine — the decoded form of the flags.
Fields§
§goal: SizeGoal§video_codec: VideoCodec§audio: AudioChoiceWhat to do with the audio track inside a video.
resolution: ResolutionOpt§fps: FpsOpt§quality: QualityPreset§audio_codec: AudioCodecCodec for a pure-audio input.
mono: boolDownmix pure audio to mono.
sample_rate: Option<u32>Force a sample rate (Hz) for pure audio; None keeps the source rate.
vbr: boolPrefer VBR where the codec supports it.
target_vmaf: Option<f64>Target VMAF: in quality mode, search CRF for the smallest output that
still scores at least this. None disables VMAF-aware encoding.
output: Option<PathBuf>Explicit output path; when None the engine derives one.
Trait Implementations§
Source§impl Clone for ShrinkOpts
impl Clone for ShrinkOpts
Source§fn clone(&self) -> ShrinkOpts
fn clone(&self) -> ShrinkOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShrinkOpts
impl Debug for ShrinkOpts
Source§impl Default for ShrinkOpts
impl Default for ShrinkOpts
Source§impl PartialEq for ShrinkOpts
impl PartialEq for ShrinkOpts
impl StructuralPartialEq for ShrinkOpts
Auto Trait Implementations§
impl Freeze for ShrinkOpts
impl RefUnwindSafe for ShrinkOpts
impl Send for ShrinkOpts
impl Sync for ShrinkOpts
impl Unpin for ShrinkOpts
impl UnsafeUnpin for ShrinkOpts
impl UnwindSafe for ShrinkOpts
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