Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/workflows/ | H | 03-May-2022 | - | 36 | 31 | |
benches/ | H | 03-May-2022 | - | 37 | 29 | |
examples/ | H | 03-May-2022 | - | 70 | 54 | |
src/ | H | 03-May-2022 | - | 3,176 | 2,384 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 29-Jan-2021 | 74 | 6 | 5 | |
.gitignore | H A D | 07-Dec-2019 | 19 | 3 | 2 | |
CHANGELOG.md | H A D | 27-Jan-2021 | 3.3 KiB | 107 | 79 | |
Cargo.lock | H A D | 29-Jan-2021 | 15.8 KiB | 637 | 567 | |
Cargo.toml | H A D | 29-Jan-2021 | 1.1 KiB | 42 | 36 | |
Cargo.toml.orig-cargo | H A D | 27-Jan-2021 | 563 | 27 | 22 | |
LICENSE-APACHE | H A D | 07-Dec-2019 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 07-Dec-2019 | 1.1 KiB | 22 | 17 | |
README.md | H A D | 15-Jun-2020 | 1,020 | 36 | 26 | |
appveyor.yml | H A D | 15-Jun-2020 | 665 | 21 | 17 |
README.md
1# jpeg-decoder 2 3[![Rust CI](https://github.com/image-rs/jpeg-decoder/workflows/Rust%20CI/badge.svg)](https://github.com/image-rs/jpeg-decoder/actions) 4[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/k65rrkd0f8yb4o9w/branch/master?svg=true)](https://ci.appveyor.com/project/kaksmet/jpeg-decoder/branch/master) 5[![Crates.io](https://img.shields.io/crates/v/jpeg-decoder.svg)](https://crates.io/crates/jpeg-decoder) 6 7A Rust library for decoding JPEGs. 8 9[Documentation](https://docs.rs/jpeg-decoder) 10 11## Example 12 13Cargo.toml: 14```toml 15[dependencies] 16jpeg-decoder = "0.1" 17``` 18 19main.rs: 20```rust 21extern crate jpeg_decoder as jpeg; 22 23use std::fs::File; 24use std::io::BufReader; 25 26fn main() { 27 let file = File::open("hello_world.jpg").expect("failed to open file"); 28 let mut decoder = jpeg::Decoder::new(BufReader::new(file)); 29 let pixels = decoder.decode().expect("failed to decode image"); 30 let metadata = decoder.info().unwrap(); 31} 32``` 33 34## Requirements 35This crate compiles only with rust >= 1.34. 36