Struct png::OutputInfo
source · [−]pub struct OutputInfo {
pub width: u32,
pub height: u32,
pub color_type: ColorType,
pub bit_depth: BitDepth,
pub line_size: usize,
}
Expand description
Output info.
This describes one particular frame of the image that was written into the output buffer.
Fields
width: u32
The pixel width of this frame.
height: u32
The pixel height of this frame.
color_type: ColorType
The chosen output color type.
bit_depth: BitDepth
The chosen output bit depth.
line_size: usize
The byte count of each scan line in the image.
Implementations
sourceimpl OutputInfo
impl OutputInfo
sourcepub fn buffer_size(&self) -> usize
pub fn buffer_size(&self) -> usize
Returns the size needed to hold a decoded frame If the output buffer was larger then bytes after this count should be ignored. They may still have been changed.
Trait Implementations
sourceimpl Debug for OutputInfo
impl Debug for OutputInfo
sourceimpl PartialEq<OutputInfo> for OutputInfo
impl PartialEq<OutputInfo> for OutputInfo
sourcefn eq(&self, other: &OutputInfo) -> bool
fn eq(&self, other: &OutputInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OutputInfo) -> bool
fn ne(&self, other: &OutputInfo) -> bool
This method tests for !=
.
impl Eq for OutputInfo
impl StructuralEq for OutputInfo
impl StructuralPartialEq for OutputInfo
Auto Trait Implementations
impl RefUnwindSafe for OutputInfo
impl Send for OutputInfo
impl Sync for OutputInfo
impl Unpin for OutputInfo
impl UnwindSafe for OutputInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more