Author Topic: ARM hardware DSP Image codec support???......  (Read 1636 times)

0 Members and 1 Guest are viewing this topic.

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: us
  • Not An Expert
ARM hardware DSP Image codec support???......
« on: March 03, 2022, 11:47:11 pm »
Does anyone know of a software library that uses ARM hardware DSP instructions to accelerate image decompression?  Preferably on the lower cost cores (M4, M33, etc). 
I really don't want to switch processors only to find out I now need to become a DSP expert and write my own optimized decompression library.
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: us
  • Not An Expert
Re: ARM hardware DSP Image codec support???......
« Reply #1 on: March 07, 2022, 10:00:21 am »
While not ARM DSP specific, it looks like LZ4 has a fast decompression.  I need to get that running and see how it does on images, and how fast it runs.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17876
  • Country: fr
Re: ARM hardware DSP Image codec support???......
« Reply #2 on: March 07, 2022, 06:05:52 pm »
From my experiments, LZ4 is indeed fast, but relatively poor in terms of compression ratio, in particular on images. (But that may depend on the content of your images, I tried it on photos.)
Keep us posted though.

You could otherwise consider QOI - which was mentioned in this forum a while ago. Much simpler and fast. It's pure C, so no DSP instructions, but it might be good enough for your needs. You could always modify it and replace some operations using DSP instructions through GCC builtin functions, which would be the easier path. The code is simple enough IMO not to be intimidating for this kind of endeavor.

https://www.eevblog.com/forum/microcontrollers/more-compression-codecs/
Don't get put off by my comments there - the fixes are easy to do, and maybe the author has already done so (didn't check lately.) It otherwise works plenty fine from my experiments.
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: us
  • Not An Expert
Re: ARM hardware DSP Image codec support???......
« Reply #3 on: March 07, 2022, 11:32:41 pm »
Thanks for the feedback.  I don't want to fragment the info about QOI too much, so I'll keep the discussion about that in the link you posted.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->