Introduction¶
The nvJPEG2000 library accelerates the decoding of JPEG 2000 images on NVIDIA GPUs. The library is built on the CUDA platform and is supported on Pascal+ GPU architectures.
Note
Throughout this document, the terms “CPU” and “Host” are used synonymously. Similarly, the terms “GPU” and “Device” are synonymous.
nvJPEG2000 Decoder¶
The library utilizes both CPU and GPU for decoding. Tier 2 decode stage(First stage of decode. Refer to the JPEG 2000 specification for details.) is run on the CPU. All other stages of the decoding process are offloaded to the GPU.
The nvJPEG2000 decoder supports the following subset of JPEG 2000 Part 1:
Bit-depth: 8-12 bits per component
No of components (channels): 1 or 3
Both Reversible(5-8) and Irreversible(9-7) wavelet transforms are supported
1 tile per image
Single quality layer
All the component dimensions should be the same (444 subsampling only)
Only LRCP (Layer Resolution Component Position) progression order is supported
Image and tile start offsets should be 0
jp2 file format and jpeg2000 codestream are supported
Prerequisites¶
The library is supported on the Linux x86_64 platform
GLIBC version should be atleast 2.17
CUDA Toolkit version 11.0 and above
CUDA Driver version r450 and above
Thread Safety¶
Not all nvJPEG2000 types are thread safe. The following should be instantiated separately for each thread: nvjpeg2kDecodeState_t and nvjpeg2kStream_t