pub struct FormatDescriptor { /* private fields */ }Expand description
Stable descriptor for a concrete planar format.
Implementations§
Source§impl FormatDescriptor
impl FormatDescriptor
Sourcepub const fn family(&self) -> FormatFamily
pub const fn family(&self) -> FormatFamily
Returns format family.
Sourcepub const fn subsampling(&self) -> Option<ChromaSubsampling>
pub const fn subsampling(&self) -> Option<ChromaSubsampling>
Returns chroma subsampling for YUV formats.
Sourcepub const fn bits_per_sample(&self) -> u8
pub const fn bits_per_sample(&self) -> u8
Returns logical bit depth.
Sourcepub const fn sample_type(&self) -> SampleType
pub const fn sample_type(&self) -> SampleType
Returns stored sample type.
Sourcepub fn planes(&self) -> &[PlaneDescriptor]
pub fn planes(&self) -> &[PlaneDescriptor]
Returns plane descriptors in storage order.
Trait Implementations§
Source§impl Clone for FormatDescriptor
impl Clone for FormatDescriptor
Source§fn clone(&self) -> FormatDescriptor
fn clone(&self) -> FormatDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormatDescriptor
impl Debug for FormatDescriptor
Source§impl PartialEq for FormatDescriptor
impl PartialEq for FormatDescriptor
Source§fn eq(&self, other: &FormatDescriptor) -> bool
fn eq(&self, other: &FormatDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FormatDescriptor
impl StructuralPartialEq for FormatDescriptor
Auto Trait Implementations§
impl Freeze for FormatDescriptor
impl RefUnwindSafe for FormatDescriptor
impl Send for FormatDescriptor
impl Sync for FormatDescriptor
impl Unpin for FormatDescriptor
impl UnsafeUnpin for FormatDescriptor
impl UnwindSafe for FormatDescriptor
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