Struct gif::Reader[][src]

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

GIF decoder

Methods

impl<R> Reader<R> where
    R: Read
[src]

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

impl<R> Send for Reader<R> where
    R: Send

impl<R> Sync for Reader<R> where
    R: Sync