Module image::codecs::webp::decoder

source ยท

Structsยง

  • WebP Image format decoder. Currently only supports lossy RGB images or lossless RGBA images.
  • Wrapper struct around a Cursor<Vec<u8>>

Enumsยง

  • DecoderError ๐Ÿ”’
    All errors that can occur when attempting to parse a WEBP container
  • WebPImage ๐Ÿ”’
  • WebPRiffChunk ๐Ÿ”’
    All possible RIFF chunks in a WebP image file

Functionsยง

  • read_chunk ๐Ÿ”’
    Reads a chunk Returns an error if the chunk header is not a valid webp header or some other reading error Returns None if and only if we hit end of file reading the four character code of the chunk
  • read_fourcc ๐Ÿ”’
    Reads a chunk header FourCC Returns None if and only if we hit end of file reading the four character code of the chunk The inner error is Err if and only if the chunk header FourCC is present but unknown
  • read_len_cursor ๐Ÿ”’