5 releases

0.3.1 Sep 2, 2024
0.3.0 Aug 29, 2024
0.2.2 Aug 14, 2024
0.2.1 Aug 9, 2024
0.2.0 Jul 29, 2024

#559 in Images

Download history 49/week @ 2024-07-23 109/week @ 2024-07-30 123/week @ 2024-08-06 138/week @ 2024-08-13 2/week @ 2024-08-20 203/week @ 2024-08-27 65/week @ 2024-09-03 10/week @ 2024-09-10 11/week @ 2024-09-17 14/week @ 2024-09-24 9/week @ 2024-10-01 8/week @ 2024-10-08 31/week @ 2024-10-15 20/week @ 2024-10-22 7/week @ 2024-10-29 17/week @ 2024-11-05

82 downloads per month
Used in 2 crates (via dicom-transfer-syntax-reg…)

MIT license

10KB
192 lines

charls-rs

charls on crates.io dependency status charls documentation

Rust bindings for CharLS, the implementation of the JPEG-LS standard for lossless and near-lossless image compression and decompression.


lib.rs:

Rust bindings for CharLS, the implementation of the JPEG-LS standard for lossless and near-lossless image compression and decompression.

Cargo features

  • static: statically link CharLS. If this is not enabled, you need to install the CharLS (e.g. libcharls.so) into your system or add it to your library path (LD_LIBRARY_PATH).

Example

use charls::CharLS;

// Read a JPEG-LS file
let data = std::fs::read("test.jls")?;
let mut charls = CharLS::default();
let decoded = charls.decode(&data)?;

Dependencies

~10MB
~19K SLoC