J2K compression library on Jetson

Updated:

This page is about the J2K compression library inside the Fastvideo SDK, the one that runs on Jetson as well as on desktop cards. The library implements the standard with all the compute-heavy stages running in parallel on the GPU — both encoder and decoder, lossy and lossless — that runs every stage on the NVIDIA GPU, from the wavelet transform through EBCOT entropy coding. That end-to-end GPU execution is what makes it fast — and a practical choice where quality and scalability matter: medical imaging and digital pathology, geospatial data, digital cinema, broadcast contribution and archives.

Codec features

The codec is a module of our CUDA Image & Video Processing SDK, so J2K coding can be the final stage of a full GPU pipeline. A companion Fast J2K Viewer displays large JPEG2000 images with window-mode decoding.

JPEG2000 benchmarks on NVIDIA GeForce RTX 4090

Encoder performance in multithreaded batch mode, 24-bit images, code-block 32×32:

ImageLossy encodingLossless encoding
2K, 24-bit~ 2108 fps~ 1238 fps
4K, 24-bit~ 732 fps~ 425 fps

On embedded hardware the codec reaches 650 MPix/s for lossless 12-bit raw encoding on NVIDIA Jetson AGX Orin — fast enough for on-camera compression in real-time systems. Timings against CPU codecs (JasPer, OpenJPEG, Kakadu) and earlier GPU codecs, with the full method and the test images: J2K encoder benchmarks.

Encoder and decoder stages

Sample applications and command-line parameters

You can use the J2kEncoderSample and J2KDecoderSample applications from the Fastvideo SDK. Main encoder parameters:

Example (multithreaded lossy batch): J2kEncoderSample.exe -i input.ppm -o output.jp2 -a irrev -c 32 -l 7 -q 90 -d 0 -async -thread 4 -b 2 -repeat 1000

Related pages

Contact Form

This form collects your name and email. Check out our Privacy Policy on how we protect and manage your personal data.