6 releases

0.4.0 Dec 19, 2024
0.3.1 Sep 2, 2024
0.3.0 Aug 29, 2024
0.2.2 Aug 14, 2024
0.2.0 Jul 29, 2024

#592 in Images

Download history 10/week @ 2024-09-11 12/week @ 2024-09-18 14/week @ 2024-09-25 7/week @ 2024-10-02 11/week @ 2024-10-09 30/week @ 2024-10-16 18/week @ 2024-10-23 10/week @ 2024-10-30 14/week @ 2024-11-06 4/week @ 2024-11-13 18/week @ 2024-11-20 18/week @ 2024-11-27 25/week @ 2024-12-04 33/week @ 2024-12-11 138/week @ 2024-12-18

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

MIT license

12KB
217 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