Structs§
- Bitfield π
- Bitfields π
- A bmp decoder
- Wrapper struct around a
Cursor<Vec<u8>>
- RowIterator π
Enums§
- BMPHeaderType π
- ChannelWidthError πDistinct image types whose saved channel width can be invalid
- Chunker π
- DecoderError πAll errors that can occur when attempting to parse a BMP
- FormatFullBytes π
- ImageType π
- RLEInsn π
Constants§
- BITMAPV2HEADER_SIZE π
- BITMAPV3HEADER_SIZE π
- BITMAPV4HEADER_SIZE π
- BITMAPV5HEADER_SIZE π
- MAX_WIDTH_HEIGHT πThe maximum width/height the decoder will process.
- R8_G8_B8_COLOR_MASK π
- RLE_ESCAPE π
- RLE_ESCAPE_DELTA π
- RLE_ESCAPE_EOF π
- RLE_ESCAPE_EOL π
Statics§
- R5_G5_B5_COLOR_MASK π
Functions§
- check_for_overflow πConvenience function to check if the combination of width, length and number of channels would result in a buffer that would overflow.
- num_bytes π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. - set_1bit_pixel_run π
- set_2bit_pixel_run π
- set_4bit_pixel_run π
- set_8bit_pixel_run π
- with_rows π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.