Learn from the best in the field with our exclusive computer vision speaker series. Register now for free!

nvJPEG Libraries

GPU-accelerated JPEG decoder, encoder and transcoder

The nvJPEG library is a high-performance GPU-accelerated library for decoding, encoding and transcoding JPEG format images. The nvJPEG2000 library is for decoding JPEG 2000 format images. Applications that rely on nvJPEG or nvJPEG2000 for decoding deliver higher throughput and lower latency compared to CPU-only decoding.


nvJPEG

The nvJPEG library provides low-latency decoding, encoding, and transcoding for common JPEG formats used in computer vision applications such as image classification, object detection and image segmentation.


nvJPEG Key Features

  • Hybrid decoding using both the CPU and the GPU
  • Hardware acceleration for baseline JPEG decode on A100 GPUs
  • Single image and batched image decoding
  • Single phase and multiphase decoding
  • Color space conversion to RGB, BGR, RGBI, BGRI, and YUV
  • Input to the library is in the host memory, and the output is in the GPU memory
  • User-provided memory manager for the device and pinned host memory allocations

Get Started with nvJPEG



nvJPEG Performance

Decoding Speed with Multiple Threads

Speed up achieved by hardware decode on A100 compared to CUDA decode on V100 and CPU only decode.

CPU: Intel Xeon Platinum 8168@2GHz 3.7GHz Turbo (Skylake) HT On

Encoding Speed

JPEG Baseline encoding throughput comparison between CPU, and V100 and A100 GPUs for common image sizes and formats.

CPU: Intel Xeon Platinum 8168@2GHz 3.7GHz Turbo (Skylake) HT On



nvJPEG2000

The nvJPEG2000 library is for application developers and researchers who are employing JPEG 2000 formatted images in their research in fields such as deep learning, medical imaging, digital pathology, remote sensing and digital cinema applications. nvJPEG2000 reads and decodes JPEG 2000 format image data from CPU memory. The decoded output is in GPU memory. The library relies on both CPU and GPU for decoding.


nvJPEG2000 Key Features

  • Output formats: grayscale and color images with arbitrary width and height
  • Compression Technique: Lossy (wavelet CDF 9/7) and lossless (wavelet CDF 5/3) image compression and decompression
  • jp2 file format and jpeg2000 code stream are supported

Get Started with nvJPEG2000

Download



nvJPEG2000 Performance


4x Faster Lossless Decoding

Lossless: 5-3 wavelet transform

CPU: Intel Xeon Gold 6240@2GHz 3.9GHz Turbo (Cascade Lake) HT On

7X Faster Lossy Decoding

Lossy: 9-7 wavelet transform

CPU: Intel Xeon Gold 6240@2GHz 3.9GHz Turbo (Cascade Lake) HT On



Resources



Join the Developer Program


Join Now