Testing Jetson Orin Hardware JPEG Encoder Block

The Jetson Orin AGX has two Hardware JPEG Encoder blocks which in theory will allow you to encode images to JPEG much faster than using the CPU alone – as usual the reality is a little more complicated than the data-sheet might suggest!

The aim was to test and time the encoding of 24Bit RGB images in host memory to JPEG then back to host memory and compare the results with libjpeg-turbo.

For images up to about 1080p there is no real difference in encoding times, for larger images of 5328×3040 the hardware encoders were about 30% faster, which isn’t an earth shaking speedup, but it also reduces CPU load by about 50% which may be advantageous if your code is already CPU bound!  This also demonstrates how very fast libjpeg-turbo is!

For more details and the test code see jetson_orin_hardware_jpeg_test

 

https://private-user-images.githubusercontent.com/1118885/533934575-0e5a303d-d460-48fa-b3dd-512d7b8eaa34.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njc5NzgxNzQsIm5iZiI6MTc2Nzk3Nzg3NCwicGF0aCI6Ii8xMTE4ODg1LzUzMzkzNDU3NS0wZTVhMzAzZC1kNDYwLTQ4ZmEtYjNkZC01MTJkN2I4ZWFhMzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDEwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMDlUMTY1NzU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzE2NTMwNTUxNzQwZTg1MDY1NTYyZGNlMWJkYzRmNmM3OTQwMzNhNjE1ZDJiY2ZjNzJjY2MxZThjZTUyMWMxNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ZduDCReWojeQ1QHL0e4dszpPABPLwsnw5Rgwaf9DHyc