Crates.io | zune-bmp |
lib.rs | zune-bmp |
version | 0.5.0-rc4 |
source | src |
created_at | 2023-11-16 20:32:53.317102 |
updated_at | 2024-05-12 09:33:45.64645 |
description | A fast BMP decoder |
homepage | |
repository | https://github.com/etemesi254/zune-image/tree/dev/crates/zune-bmp |
max_upload_size | |
id | 1037908 |
size | 76,719 |
A lean, mean and green BMP decoder.
This crate contains a fast implemtnation of a BMP decoder with battery included support for the esoteric parts of the spec
First add the project to your library/binary
zune-bmp = "0.4" # Or use cargo add zune-bmp
Then you can toy with the other configs
use zune_bmp::BmpDecoder;
use zune_bmp::BmpDecoderErrors;
fn main()->Result<(),BmpDecodeErrors>{
let decoder:Vec<u8> = BmpDecoder::new(b"BMP").decode()?;
}
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.