png-decoder 0.2.0

A pure-Rust, no_std compatible PNG decoder.
Documentation
1
2
3
4
5
6
7
fn main() {
    let image_bytes = include_bytes!("../test_pngs/paeth.png");
    let (header, image_data) = png_decoder::decode(image_bytes).unwrap();

    println!("Header: {:#?}", header);
    println!("Image data size: {}x{}x4 {}", header.width, header.height, image_data.len());
}