pub struct VideoSpec {
pub codec: VideoCodec,
pub bitrate_bps: Option<u64>,
pub crf: Option<u8>,
pub height: Option<u32>,
pub fps: Option<u32>,
pub preset: QualityPreset,
}Expand description
Video encoding parameters.
Fields§
§codec: VideoCodec§bitrate_bps: Option<u64>Target average bitrate (bits/s) for two-pass; None in CRF/quality mode.
crf: Option<u8>CRF value for quality mode; None in bitrate mode.
height: Option<u32>Downscale target height; None keeps the source resolution.
fps: Option<u32>Frame-rate cap; None keeps the source rate.
preset: QualityPresetTrait Implementations§
impl StructuralPartialEq for VideoSpec
Auto Trait Implementations§
impl Freeze for VideoSpec
impl RefUnwindSafe for VideoSpec
impl Send for VideoSpec
impl Sync for VideoSpec
impl Unpin for VideoSpec
impl UnsafeUnpin for VideoSpec
impl UnwindSafe for VideoSpec
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