#[non_exhaustive]pub enum XybSubsampling {
Full,
BQuarter,
}Expand description
XYB component subsampling.
Unlike YCbCr where only luma is full, XYB keeps X and Y full even in subsampled mode - only B is reduced.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
X, Y, B all at full resolution (1x1, 1x1, 1x1)
BQuarter
X, Y full, B at quarter resolution (1x1, 1x1, 2x2)
Trait Implementations§
Source§impl Clone for XybSubsampling
impl Clone for XybSubsampling
Source§fn clone(&self) -> XybSubsampling
fn clone(&self) -> XybSubsampling
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 XybSubsampling
impl Debug for XybSubsampling
Source§impl Default for XybSubsampling
impl Default for XybSubsampling
Source§fn default() -> XybSubsampling
fn default() -> XybSubsampling
Returns the “default value” for a type. Read more
Source§impl PartialEq for XybSubsampling
impl PartialEq for XybSubsampling
impl Copy for XybSubsampling
impl Eq for XybSubsampling
impl StructuralPartialEq for XybSubsampling
Auto Trait Implementations§
impl Freeze for XybSubsampling
impl RefUnwindSafe for XybSubsampling
impl Send for XybSubsampling
impl Sync for XybSubsampling
impl Unpin for XybSubsampling
impl UnwindSafe for XybSubsampling
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