pub struct ChromaSubsampling {
pub horizontal: bool,
pub vertical: bool,
}Expand description
Chroma subsampling configuration for AV1/AVIF.
(false, false) = 4:4:4 (no subsampling).
(true, true) = 4:2:0 (both axes subsampled).
(true, false) = 4:2:2 (horizontal only).
Fields§
§horizontal: boolWhether the horizontal (X) axis is subsampled.
vertical: boolWhether the vertical (Y) axis is subsampled.
Implementations§
Trait Implementations§
Source§impl Clone for ChromaSubsampling
impl Clone for ChromaSubsampling
Source§fn clone(&self) -> ChromaSubsampling
fn clone(&self) -> ChromaSubsampling
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 ChromaSubsampling
impl Debug for ChromaSubsampling
Source§impl From<ChromaSubsampling> for (bool, bool)
impl From<ChromaSubsampling> for (bool, bool)
Source§fn from(cs: ChromaSubsampling) -> Self
fn from(cs: ChromaSubsampling) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChromaSubsampling
impl PartialEq for ChromaSubsampling
impl Copy for ChromaSubsampling
impl Eq for ChromaSubsampling
impl StructuralPartialEq for ChromaSubsampling
Auto Trait Implementations§
impl Freeze for ChromaSubsampling
impl RefUnwindSafe for ChromaSubsampling
impl Send for ChromaSubsampling
impl Sync for ChromaSubsampling
impl Unpin for ChromaSubsampling
impl UnsafeUnpin for ChromaSubsampling
impl UnwindSafe for ChromaSubsampling
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