Skip to content

Releases: imazen/mozjpeg-rs

v0.8.0: ARM NEON SIMD + 100% Safe Rust

08 Feb 07:35

Choose a tag to compare

v0.7.0

02 Feb 11:22

Choose a tag to compare

Full Changelog: v0.6.0...v0.7.0

v0.6.0

02 Feb 08:36

Choose a tag to compare

Full Changelog: v0.5.5...v0.6.0

v0.5.5

02 Feb 06:29

Choose a tag to compare

Full Changelog: v0.5.4...v0.5.5

v0.5.4

02 Feb 04:00

Choose a tag to compare

Full Changelog: v0.5.3...v0.5.4

v0.5.1

20 Jan 23:02

Choose a tag to compare

What's Changed

Bug Fixes

  • Fixed SIMD entropy encoder DC double sign adjustment bug - The SIMD encoder was incorrectly applying sign adjustment twice to DC coefficients (once during zigzag reordering and again in encode_dc_fast), causing image corruption particularly visible in 4:2:0 subsampling mode with Huffman optimization enabled.

Performance

  • Rust 1.65-2.57x faster than C mozjpeg with identical settings (4:2:0, Robidoux tables, Trellis AC+DC, Huffman optimization, Deringing)

Dependencies

  • Integrated archmage 0.1.0 for safe SIMD capability tokens

Other

  • Fixed clippy warnings in examples and tests
  • Added apples-to-apples timing benchmark (examples/timing_benchmark.rs)

Benchmark Results (v0.5.1)

Apples-to-apples comparison with identical settings:

Image Size Rust C mozjpeg Speedup
768x512 25.5ms 42.0ms 1.65x faster
2048x2048 426ms 1096ms 2.57x faster

Installation

[dependencies]
mozjpeg-rs = "0.5.1"