Structs§
- Bitfield 🔒
- A bmp decoder
- Wrapper struct around a
Cursor<Vec<u8>>
Enums§
- Distinct image types whose saved channel width can be invalid
- Chunker 🔒
- All errors that can occur when attempting to parse a BMP
- RLEInsn 🔒
Constants§
- The maximum width/height the decoder will process.
Statics§
Functions§
- Convenience function to check if the combination of width, length and number of channels would result in a buffer that would overflow.
- Calculate how many many bytes a buffer holding a decoded image with these properties would require. Returns
None
if the buffer size would overflow or if one of the sizes are negative. - Call the provided function on each row of the provided buffer, returning Err if the provided function returns an error, extends the buffer if it’s not large enough.