pub struct SampleProfile {
pub is_yuv_420: bool,
pub bit_depth: u8,
pub has_alpha: bool,
pub is_rgb: bool,
}Expand description
Chroma layout, component depth, and alpha of one pixel format.
Fields§
§is_yuv_420: boolWhether the format is planar/semi-planar YCbCr with 4:2:0 subsampling.
bit_depth: u8Largest component depth in bits.
has_alpha: boolWhether the format carries an alpha component.
is_rgb: boolWhether the components are red, green, and blue (a palette’s entries among them) rather than luma and chroma (or gray).
Trait Implementations§
Source§impl Clone for SampleProfile
impl Clone for SampleProfile
impl Copy for SampleProfile
Source§impl Debug for SampleProfile
impl Debug for SampleProfile
impl Eq for SampleProfile
Source§impl PartialEq for SampleProfile
impl PartialEq for SampleProfile
impl StructuralPartialEq for SampleProfile
Auto Trait Implementations§
impl Freeze for SampleProfile
impl RefUnwindSafe for SampleProfile
impl Send for SampleProfile
impl Sync for SampleProfile
impl Unpin for SampleProfile
impl UnsafeUnpin for SampleProfile
impl UnwindSafe for SampleProfile
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