Release 0.2.3

- Added `Decoder::set_max_decoding_buffer_size` which limits the bytes
  allocated for the output of the decoding process.
- Added Arm64-Neon intrinsic implementation of idct and color conversion. This
  depends on a Rust nightly compiler feature ([`aarch64_target_feature`]) and
  it must be explicitly enabled. As soon as the minimum supported Rust version
  includes the stabilization of this feature, the code will be enabled by
  default and the feature changed to do nothing.

[`aarch64_target_feature`]: https://github.com/rust-lang/rust/issues/90620

a55ad40a2d27923f63b6fbde5934926176c69ac5e23da6ac05ebfaca984e163f  target/package/jpeg-decoder-0.2.3.crate
Fix conflict: explicit tests and exclude pattern
1 file changed
tree: 1a0a3f5c368afe483b416bc8d1ca566123be54de
  1. .github/
  2. benches/
  3. examples/
  4. fuzz/
  5. fuzz-afl/
  6. src/
  7. tests/
  8. .gitignore
  9. appveyor.yml
  10. Cargo.toml
  11. CHANGELOG.md
  12. LICENSE-APACHE
  13. LICENSE-MIT
  14. README.md
  15. rust-toolchain
README.md

jpeg-decoder

Rust CI AppVeyor Build Status Crates.io

A Rust library for decoding JPEGs.

Documentation

Example

Cargo.toml:

[dependencies]
jpeg-decoder = "0.2"

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();
}

Requirements

This crate compiles with rust >= 1.48. Minimum Supported Rust Version:

  • All releases 0.1.* compile with rust >= 1.36.
  • The releases 0.2.* may bump Rust Version requirements (TBD).