Struct gif::Reader [] [src]

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

GIF decoder

Methods

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

[src]

Returns the next frame info

[src]

Reads the next frame from the image.

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

[src]

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.

[src]

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.

[src]

Output buffer size

[src]

Line length of the current frame

[src]

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

[src]

The global color palette

[src]

Width of the image

[src]

Height of the image

[src]

Index of the background color in the global palette

Trait Implementations

Auto Trait Implementations

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

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