tolszak
Posts: 1
Joined: Tue Jan 14, 2020 10:28 pm

Does Pi 4 provides any HW JPEG decoder?

Tue Jan 14, 2020 10:44 pm

I ready forum for a few hours and I understand that MMAL could be used to decompress JPEG data to YUV until PI 3+. What about Pi 4? Is it possible? I need to decode 10M+ images and lib-jpeg-turbo is to slow. I wonder how HW encoder would perform but can't find any hints how to use is on VideoCore VI.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7763
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Does Pi 4 provides any HW JPEG decoder?

Wed Jan 15, 2020 12:11 pm

Exactly the same JPEG hardware block for encode and decode is present on all variants of the Pi. Access is via MMAL (or OpenMax IL if you really must). Example app at https://github.com/6by9/userland/tree/h ... _mmal_jpeg

libjpeg with NEON enabled is likely to be pretty close to the same performance, mainly as there isn't the same setup overhead.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Graphics, sound and multimedia”