StructsΒ§
- Bitfield π
- Bitfields π
- BmpDecoder
- A bmp decoder
- RowIterator π
EnumsΒ§
- BMPHeader
Type π - Channel
Width πError - Distinct image types whose saved channel width can be invalid
- Chunker π
- Decoder
Error π - All errors that can occur when attempting to parse a BMP
- Format
Full πBytes - Image
Type π - RLEInsn π
ConstantsΒ§
- BITMAPCOREHEADER_
SIZE π - BITMAPINFOHEADER_
SIZE π - BITMAP
V2HEADER_ πSIZE - BITMAP
V3HEADER_ πSIZE - BITMAP
V4HEADER_ πSIZE - BITMAP
V5HEADER_ πSIZE - MAX_
WIDTH_ πHEIGHT - The maximum width/height the decoder will process.
- R8_
G8_ πB8_ A8_ COLOR_ MASK - R8_
G8_ πB8_ COLOR_ MASK - RLE_
ESCAPE π - RLE_
ESCAPE_ πDELTA - RLE_
ESCAPE_ πEOF - RLE_
ESCAPE_ πEOL
StaticsΒ§
- LOOKUP_
TABLE_ π3_ BIT_ TO_ 8_ BIT - LOOKUP_
TABLE_ π4_ BIT_ TO_ 8_ BIT - LOOKUP_
TABLE_ π5_ BIT_ TO_ 8_ BIT - LOOKUP_
TABLE_ π6_ BIT_ TO_ 8_ BIT - 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.