pub struct AvifConfig {
pub quality: u8,
pub speed: u8,
pub color_primaries: u8,
pub transfer_characteristics: u8,
pub matrix_coefficients: u8,
pub full_range: bool,
pub alpha_quality: Option<u8>,
}Expand description
Encoding configuration for AvifEncoder.
Fields§
§quality: u8Perceptual quality, 0–100 (100 = lossless).
speed: u8Encoder speed preset, 0–10 (0 = slowest/best, 10 = fastest).
color_primaries: u8Colour primaries (ISO 23091-2 / H.273). 1 = BT.709, 9 = BT.2020.
transfer_characteristics: u8Transfer characteristics. 1 = BT.709, 16 = PQ (SMPTE ST 2084), 18 = HLG.
matrix_coefficients: u8Matrix coefficients. 1 = BT.709, 9 = BT.2020 NCL.
full_range: boolWhether the YUV values use the full [0, 2^n-1] range.
alpha_quality: Option<u8>If Some(q), encode an alpha plane at quality q; otherwise omit it.
Trait Implementations§
Source§impl Clone for AvifConfig
impl Clone for AvifConfig
Source§fn clone(&self) -> AvifConfig
fn clone(&self) -> AvifConfig
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 AvifConfig
impl Debug for AvifConfig
Auto Trait Implementations§
impl Freeze for AvifConfig
impl RefUnwindSafe for AvifConfig
impl Send for AvifConfig
impl Sync for AvifConfig
impl Unpin for AvifConfig
impl UnsafeUnpin for AvifConfig
impl UnwindSafe for AvifConfig
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