Skip to content

chafey/openjpegjs

Repository files navigation

openjpegpjs

JS/WebAssembly build of OpenJPEG

NOTE - a forked version of OpenJPEG is currently used which has some changes to allow partial bitstream decoding

Try It Out!

Try it in your browser here

Building

This project uses git submodules to pull in OpenJPEG. If developing, initialize the git submodules first:

> git submodule update --init --recursive

This project uses Docker to provide a consistent developer environment.

Create docker container 'openjpegjsbuild'

> scripts/docker-build.sh

Create shell inside openjpegjsbuild container:

> scripts/docker-sh.sh

Install node 16 (inside docker shell):

> nvm install 16

To build WASM (inside docker shell):

> scripts/wasm-build.sh

To build native C/C++ version (inside docker shell):

> scripts/native-build.sh

Run performance test (inside docker shell):

> scripts/performance.sh

TODOS

  1. Fix openjpeg cmake issue that overrides output directory to be wrong

About

JS/WASM build of OpenJPEG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published