Faster JPEG decoding on ARM with libjpeg-turbo and NEON Instructions

libjpeg-turbo is based on libjpeg, but uses SIMD instructions (MMX, SSE2, etc.) to accelerate JPEG compression and decompression on x86 targets. On such systems, libjpeg-turbo is generally 2-4x as fast as the original version of libjpeg with the same hardware.

ARM does not support MMX or SSE2 instructions, but it has its own SIMD instructions processed by the NEON Engine on ARM Cortex Core A5, A8, A9 and A15. ARM claims that “NEON technology can accelerate multimedia and signal processing algorithms such as video encode/decode, 2D/3D graphics, gaming, audio and speech processing, image processing, telephony, and sound synthesis by at least 3x the performance of ARMv5 and at least 2x the performance of ARMv6 SIMD.”

Linaro worked on libjpeg-turbo and added NEON support to it.

The code is available on launchpad at https://code.launchpad.net/~tom-gall/linaro/libjpeg-turbo

Linaro has also provide benchmark result for libjpeg-turbo with a 12 Mpixel image on TI OMAP4 (Pandaboard) using the command:

djpeg 12mp.jpeg > /dev/null

Non Optimized libjpeg-turbo(5 runs): 2078 ms (average)
Linaro’s Optimized libjpeg-turbo (5 runs):  1676 ms (average)

That represents almost 20% improvement between the non-optimized libjpeg-turbo library and the one for ARM NEON optimization by Linaro.

For further information about Linaro’s libjpeg-turbo optimization go to Optimize JPEG Decoding for ARM page. If you are interested in optimizing your code for NEON instruction, you can visit Optimizing Code for ARM Cortex-A8 with NEON SIMD, check the list of NEON C functionsavailable when NEON is enabled (CFLAGS += -mfpu=neon) and/ or read ARM NEON™ Instruction Set and Why You Should Care slides presented at ELC 2011 by Mike Anderson, Chief Scientist at PTR Group.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
3 Comments
oldest
newest
wangweifeng
wangweifeng
11 years ago

please send me jpeg source.thanks.

Khadas VIM4 SBC