Struct FormatDescriptor
pub struct FormatDescriptor { /* private fields */ }Expand description
Stable descriptor for a concrete planar format.
Implementations§
§impl FormatDescriptor
impl FormatDescriptor
pub const fn family(&self) -> FormatFamily
pub const fn family(&self) -> FormatFamily
Returns format family.
pub const fn subsampling(&self) -> Option<ChromaSubsampling>
pub const fn subsampling(&self) -> Option<ChromaSubsampling>
Returns chroma subsampling for YUV formats.
pub const fn bits_per_sample(&self) -> u8
pub const fn bits_per_sample(&self) -> u8
Returns logical bit depth.
pub const fn sample_type(&self) -> SampleType
pub const fn sample_type(&self) -> SampleType
Returns stored sample type.
pub fn planes(&self) -> &[PlaneDescriptor]
pub fn planes(&self) -> &[PlaneDescriptor]
Returns plane descriptors in storage order.
Trait Implementations§
§impl Clone for FormatDescriptor
impl Clone for FormatDescriptor
§fn clone(&self) -> FormatDescriptor
fn clone(&self) -> FormatDescriptor
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 more§impl Debug for FormatDescriptor
impl Debug for FormatDescriptor
§impl PartialEq for FormatDescriptor
impl PartialEq for FormatDescriptor
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