image::codecs::webp

Module 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§

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
  • 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