Struct gif::Decoder [−][src]
pub struct Decoder<R: Read> { /* fields omitted */ }Expand description
GIF decoder
Implementations
Create a new decoder with default options.
Return a builder that allows configuring limits etc.
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