sandboxed-api/oss-internship-2020/openjpeg
Katarzyna Miernikiewicz 88844fc958 changed README.md
2020-08-26 15:13:37 +00:00
..
examples added requested changes 2020-08-26 12:17:18 +00:00
openjpeg@cbee7891a0 initial openjpeg commit 2020-08-12 11:24:30 +00:00
.gitignore fixed typos 2020-08-12 11:48:40 +00:00
CMakeLists.txt changed README.md 2020-08-26 15:13:37 +00:00
README.md changed README.md 2020-08-26 15:13:37 +00:00

OpenJPEG

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