5 releases
Uses old Rust 2015
0.1.4 | Aug 17, 2019 |
---|---|
0.1.3 | Aug 17, 2019 |
0.1.2 | Sep 25, 2018 |
0.1.1 | Mar 28, 2018 |
0.1.0 | Dec 12, 2017 |
#8 in #jpeg2000
Used in jpeg2000
8.5MB
183K
SLoC
Rust bindings to OpenJPEG
This crate provides access to OpenJPEG's JPEG2000 decoder.
Warning
** This crate is still fairly experimental. ** (And it's the first time I'm writing unsafe Rust code :o)
Please be advised that using C code means this crate is likely vulnerable to various memory exploits, e.g. see http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-8332 for an actual example from the past.
As soon as someone writes an efficient JPEG2000 decoder in pure Rust you should probably switch over to that.
Examples
Run the examples from within the examples
directory, using cargo run --example name
.
License
Most of the code in this repository is provided under the GPL license (check out the relevant's files headers for more details).
However note that this crate links statically to OpenJPEG which has its own (permissive) license, which you can find at openjp2-sys/libopenjpeg/LICENSE
(you might have to check out the git submodule first).