Struct gif::Reader[][src]

pub struct Reader<R: Read> { /* fields omitted */ }
Expand description

GIF decoder

Implementations

Returns the next frame info

Reads the next frame from the image.

Do not call Self::next_frame_info beforehand. Deinterlaces the result.

Reads the data of the current frame into a pre-allocated buffer.

Self::next_frame_info needs to be called beforehand. The length of buf must be at least Self::buffer_size. Deinterlaces the result.

Reads data of the current frame into a pre-allocated buffer until the buffer has been filled completely.

Self::next_frame_info needs to be called beforehand. Returns true if the supplied buffer could be filled completely. Should not be called after false had been returned.

Output buffer size

Line length of the current frame

Returns the color palette relevant for the current (next) frame

The global color palette

Width of the image

Height of the image

Index of the background color in the global palette

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

Performs the conversion.

Performs the conversion.

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.