pub trait Decoder<P: Pixel, R: Read> {
    type Sequence: FrameIterator<P>;

    fn decode(&mut self, stream: R) -> Result<Image<P>>;
    fn decode_sequence(&mut self, stream: R) -> Result<Self::Sequence>;
}
Expand description

Low-level decoder interface around an image format.

Required Associated Types

The type of the iterator returned by decode_sequence.

Required Methods

Decodes the given stream into an image.

Errors
  • An error occured during decoding.

Decodes the given stream into a frame iterator.

Errors
  • An error occured during decoding.

Implementors