sandboxed-api/oss-internship-2020/openjpeg
Christian Blichmann d451478e26 Change license link to HTTPS URL
PiperOrigin-RevId: 424811734
Change-Id: If5ea692edc56ddc9c99fd478673df41c0246e9cc
2022-01-28 01:39:09 -08:00
..
examples Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
.gitignore changed copying files to patching 2020-09-01 11:06:12 +00:00
CMakeLists.txt Merge pull request #50 from Manwi23:master 2020-09-17 05:28:19 -07:00
README.md Merge pull request #50 from Manwi23:master 2020-09-17 05:28:19 -07:00

OpenJPEG Sandboxed API

This library provides sandboxed version of the OpenJPEG library.

Examples

The examples are sandboxed and simplified version of the main tools provided by the OpenJPEG library, namely (for now) opj_decompress from here.

In decompress_example.cc the library's sandboxed API is used to convert the .jp2 to .pnm image format.

Build

To build this example, after cloning the whole Sandbox API project, you also need to run

git submodule update --init --recursive

anywhere in the project tree in order to clone the openjpeg submodule. Then in the sandboxed-api/oss-internship-2020/openjpeg run

mkdir build && cd build
cmake -G Ninja
ninja

To run decompress_sandboxed:

cd examples
./decompress_sandboxed absolute/path/to/the/file.jp2 absolute/path/to/the/file.pnm