#[non_exhaustive]pub struct ImageCharacteristics { /* private fields */ }Expand description
Characteristics of the image being encoded/decoded. #[non_exhaustive]
and shape-compatible with zencodec::estimate::ImageCharacteristics.
Carries dimensions + pixel format today; per-frame, so animation fields
belong on codec types, not here.
Implementations§
Source§impl ImageCharacteristics
impl ImageCharacteristics
Sourcepub fn new(width: u32, height: u32, descriptor: PixelDescriptor) -> Self
pub fn new(width: u32, height: u32, descriptor: PixelDescriptor) -> Self
A still image of width × height with the given pixel format.
Sourcepub fn descriptor(&self) -> &PixelDescriptor
pub fn descriptor(&self) -> &PixelDescriptor
The pixel format of the source/decoded buffer.
Trait Implementations§
Source§impl Clone for ImageCharacteristics
impl Clone for ImageCharacteristics
Source§fn clone(&self) -> ImageCharacteristics
fn clone(&self) -> ImageCharacteristics
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 ImageCharacteristics
impl Debug for ImageCharacteristics
impl Eq for ImageCharacteristics
Source§impl PartialEq for ImageCharacteristics
impl PartialEq for ImageCharacteristics
impl StructuralPartialEq for ImageCharacteristics
Auto Trait Implementations§
impl Freeze for ImageCharacteristics
impl RefUnwindSafe for ImageCharacteristics
impl Send for ImageCharacteristics
impl Sync for ImageCharacteristics
impl Unpin for ImageCharacteristics
impl UnsafeUnpin for ImageCharacteristics
impl UnwindSafe for ImageCharacteristics
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