Expand description
A versatile BMP decoder
This crate features a BMP decoder capable of decoding multiple BMP images fast
§Features
no_std
by default withalloc
feature- Fast
- Minimal dependencies
- Very minimal internal allocation. (most paths do not allocate any more than output buffer)
§Supported formats
- RLE (4 bit and 8 bit)
- Paletted images(1 bit, 2 bits, 4 bits and 8 bits)
- Masked images (16 bit and 32 bit formats)
§Unsupported formats
- Embedded PNG and JPEGs
§Usage
use zune_bmp::BmpDecoder;
let decoder:Vec<u8> = BmpDecoder::new(b"BMP").decode().unwrap();
§Security
The decoder is continuously fuzz tested in CI to ensure it does not crash on malicious input in case a sample causes it to crash, an issue would be welcome.
Re-exports§
pub use zune_core;
Structs§
- BmpDecoder
- A BMP decoder.
Enums§
- BmpDecoder
Errors - BMP errors that can occur during decoding
Functions§
- probe_
bmp - Probe some bytes to see if they consist of a BMP image