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

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

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.