Struct gif::DecodeOptions [−][src]
pub struct DecodeOptions { /* fields omitted */ }
Expand description
Options for opening a GIF decoder.
Implementations
Creates a new decoder builder
Configure how color data is decoded.
Configure a memory limit for decoding.
Configure if frames must be within the screen descriptor.
The default is false
.
When turned on, all frame descriptors being read must fit within the screen descriptor or otherwise an error is returned and the stream left in an unspecified state.
When turned off, frames may be arbitrarily larger or offset in relation to the screen. Many other decoder libraries handle this in highly divergent ways. This moves all checks to the caller, for example to emulate a specific style.
Configure if LZW encoded blocks must end with a marker end code.
The default is false
.
When turned on, all image data blocks—which are LZW encoded—must contain a special bit sequence signalling the end of the data. LZW processing terminates when this code is encountered. The specification states that it must be the last code output by the encoder for an image.
When turned off then image data blocks can simply end. Note that this might silently ignore some bits of the last or second to last byte.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnwindSafe for DecodeOptions
Blanket Implementations
Mutably borrows from an owned value. Read more