Struct OutputInfo
pub struct OutputInfo { pub width: u32, pub height: u32, pub color_type: ColorType, pub bit_depth: BitDepth, pub line_size: usize }
Output info.
This describes one particular frame of the image that was written into the output buffer.
Fields
width: u32The pixel width of this frame.
height: u32The pixel height of this frame.
color_type: ColorTypeThe chosen output color type.
bit_depth: BitDepthThe chosen output bit depth.
line_size: usizeThe byte count of each scan line in the image.
Implementations
impl OutputInfo
fn buffer_size(&self) -> usizeReturns 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
impl Debug for OutputInfo
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for OutputInfo
impl PartialEq for OutputInfo
fn eq(&self, other: &Self) -> bool