pub struct Quality {
pub crf: Option<u8>,
pub speed_preset: Option<u8>,
pub target: QualityTarget,
pub tier: SpeedTier,
pub keyframe_interval: Option<u32>,
}Expand description
Encoder quality knobs for a rung.
Fields§
§crf: Option<u8>Constant rate factor in the encoder-native scale (rav1e/NVENC 0..=255).
None derives the quantizer from Quality::target.
speed_preset: Option<u8>Encoder-native speed preset. None derives it from Quality::tier.
target: QualityTargetPerceptual quality target (used when crf is None).
tier: SpeedTierSpeed/efficiency tier (used when speed_preset is None).
keyframe_interval: Option<u32>GOP length in frames. None → 2 × frame_rate (a 2-second GOP).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Quality
impl RefUnwindSafe for Quality
impl Send for Quality
impl Sync for Quality
impl Unpin for Quality
impl UnsafeUnpin for Quality
impl UnwindSafe for Quality
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