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§
source§impl 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§
source§impl Debug for OutputInfo
impl Debug for OutputInfo
source§impl PartialEq for OutputInfo
impl PartialEq for OutputInfo
impl Eq for OutputInfo
impl StructuralPartialEq for OutputInfo
Auto Trait Implementations§
impl Freeze for OutputInfo
impl RefUnwindSafe for OutputInfo
impl Send for OutputInfo
impl Sync for OutputInfo
impl Unpin for OutputInfo
impl UnwindSafe for OutputInfo
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