• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/workflows/H03-May-2022-3631

benches/H03-May-2022-3729

examples/H03-May-2022-7054

src/H03-May-2022-3,1762,384

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D29-Jan-202174 65

.gitignoreH A D07-Dec-201919 32

CHANGELOG.mdH A D27-Jan-20213.3 KiB10779

Cargo.lockH A D29-Jan-202115.8 KiB637567

Cargo.tomlH A D29-Jan-20211.1 KiB4236

Cargo.toml.orig-cargoH A D27-Jan-2021563 2722

LICENSE-APACHEH A D07-Dec-201910.6 KiB202169

LICENSE-MITH A D07-Dec-20191.1 KiB2217

README.mdH A D15-Jun-20201,020 3626

appveyor.ymlH A D15-Jun-2020665 2117

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