No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeremy Soller 0660fc0619 Disable rayon
2017-04-12 22:15:03 -06:00
examples Use docopt in the example 2017-01-08 23:26:33 +01:00
src Single thread the worker 2017-04-12 21:30:12 -06:00
tests Fix a possible integer overflow in derive_huffman_codes 2017-03-18 22:20:40 +01:00
.gitignore initial commit 2016-02-10 14:46:24 +01:00
.travis.yml Stop testing osx on travis 2017-01-09 00:06:18 +01:00
appveyor.yml Allow nightly builds to fail on travis 2016-11-16 21:19:25 +01:00
Cargo.toml Disable rayon 2017-04-12 22:15:03 -06:00
CHANGELOG.md Bump to 0.1.12 2017-04-07 16:12:39 +02:00
LICENSE-APACHE Add license files 2017-01-09 00:06:19 +01:00
LICENSE-MIT Add license files 2017-01-09 00:06:19 +01:00
README.md Add some documentation 2017-01-09 00:21:37 +01:00

jpeg-decoder

Travis Build Status AppVeyor Build Status Crates.io

A Rust library for decoding JPEGs.

Documentation

Example

Cargo.toml:

[dependencies]
jpeg-decoder = "0.1"

main.rs:

extern crate jpeg_decoder as jpeg;

use std::fs::File;
use std::io::BufReader;

fn main() {
    let file = File::open("hello_world.jpg").expect("failed to open file");
    let mut decoder = jpeg::Decoder::new(BufReader::new(file));
    let pixels = decoder.decode().expect("failed to decode image");
    let metadata = decoder.info().unwrap();
}