Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does stb_image simd support exist?

Tags:

c++

c

jpeg

simd

stb_image appears to have support for plug-in SIMD implementation(s) of the idct and ycbcr->rgb conversion operations, which take majority of time when loading jpeg files. Looking at the code behind STBI_SIMD it's pretty clear this code has actually been used somewhere.

However, either the implementations have been proprietary, or my google-fu fails me, as I haven't found any public code that uses this interface.

My needs would be for the x86 platform only (at this time).

Is there any open source that uses this interface?

like image 802
Jari Komppa Avatar asked Dec 28 '13 16:12

Jari Komppa


2 Answers

I remember seeing your question on Twitter, where today coincidently someone mentioned libjpeg-turbo licensed under the BSD license. Hope that helps.

like image 149
Gregory Pakosz Avatar answered Nov 12 '22 06:11

Gregory Pakosz


It seems to belong to the Horde3D engine (GNU LGPL)

http://open-projects.net/~shahn/darcs/old/Horde3D_Linux_64bit/Horde3D/Source/Horde3D%20Engine/utImage.cpp

although I was expecting SSE, SIMD at its purest..

like image 20
Marco A. Avatar answered Nov 12 '22 06:11

Marco A.