J2K codec performance on Jetson TX2

Updated:

Author: Fyodor Serzhenko

Running a JPEG2000 codec on NVIDIA Jetson TX2 lets embedded and autonomous systems compress high-bit-depth imagery on-device. Fastvideo's GPU J2K codec runs on the TX2 and the industrial TX2i, so J2K encoding and decoding fit within the module's low power budget.

Detailed info concerning our testing approach for JPEG2000 encoding and decoding on desktop/server NVIDIA GPUs you can find at the corresponding links. Here we follow exactly the same procedure, but it's applied to the Jetson hardware.

 

jetson tx2 j2k codec

 

J2K encoding/decoding parameters

It's obvious that in many cases compression ratio for visually lossless encoding could be much higher for JPEG2000 algorithm. So we would suggest testing different parameters to achieve the best compression ratio with an acceptable image quality. Decreasing the quality coefficient one can get not only better compression, but also higher framerate both for encoding and decoding. Our benchmarks show the performance results for the above images and parameters. It's not the maximum performance, it could be better in many other cases.

Hardware and software

JPEG2000 encoder/decoder benchmarks on NVIDIA Jetson TX2

How fast is JPEG2000 encoding and decoding on the Jetson TX2?

Mode / Resolution / Algorithm 2K (Lossy) 2K (Lossless) 4K (Lossy) 4K (Lossless)
J2K Encoder (single mode) 30.1 fps 10.2 fps 9.1 fps 3.1 fps
J2K Encoder (multithreaded batch mode) 41.4 fps 13.1 fps 14.3 fps 3.8 fps
J2K Decoder (single mode) 12.3 fps 5.5 fps 3.5 fps 1.5 fps
J2K Decoder (multithreaded batch mode) 30.1 fps 9.0 fps 8.6 fps 2.4 fps

 

Jetson TX2 has 4-core ARM Cortex-A57 @ 2 GHz and 2-core Denver2 @ 2 GHz. These two types of cores have different performance, which should be taken into account. Since Tier-2 stage of JPEG2000 algorithm is implemented on CPU, the performance of both CPU and GPU cores determine the framerate. From that point of view, multithreading can be useful (we use up to 12 threads), but in the single mode we could get different performance depending on the CPU core used. So in the single mode we need to set affinity mask to ensure utilizing the fastest CPU core.

In the tests discussed we've restricted memory usage to 2 GB. This was done under an assumption that Jetson TX2 can have only 4 GB memory, so this is important limitation for the whole image processing solution.

Here we haven't considered the task of J2K transcoding to H.264 on Jetson. That task requires additional tests, though from our previous experience with desktop/server GPUs, performance of the transcoding should not differ significantly, because Jetson has hardware support of H.264 encoding (separate from GPU), which is accessible via V4L2 interface and can be used simultaneously with JPEG2000 decoder.

We've also done a performance comparison between Fastvideo J2K codec and NVIDIA nvjpeg2000 codec on Jetson Orin NX (Jetpack 6.2 and CUDA-12.6). We've done j2k encoding of 1-MPix 12-bit grayscale image with compression ratio around 17. Performance of nvjpeg2000 encoder is 60 fps, performance of Fastvideo J2K encoder is 320 fps.

By request we could offer Fastvideo SDK for Jetson for evaluation - please fill the form below and send it to us.

Other info from Fastvideo concerning JPEG2000 and Jetson

Fyodor Serzhenko, Fastvideo

About the author

Fyodor Serzhenko, PhD, is the founder and CEO of Fastvideo. He earned his PhD at the Moscow Institute of Physics and Technology (MIPT) in 1993. Since 2009 he has led the development of Fastvideo’s GPU-accelerated image codecs and ISP modules, including the Fastvideo SDK. Connect on LinkedIn.

Why you can trust these results

Fastvideo has built GPU-accelerated image processing software since 2009. Our codecs comply with the standards they implement — JPEG (ITU-T T.81 / ISO IEC 10918) and JPEG2000 (ITU-T T.800 / ISO IEC 15444) — and our tools are open source on GitHub. Every performance figure we publish is reproducible: see our benchmark methodology, download the Fastvideo SDK benchmark report (PDF), and measure it on your own GPU.

Contact Form

This form collects your name and email. See our Privacy Policy for how we handle your personal data.