Closed smallfly closed 9 years ago
ofLoadImage()
is actually taking a compressed jpg, decompressing it, and loading it into pixels. that's going to be an intensive operation no matter what. i think OF is using libjpeg via FreeImage for this, you could try wrapping your own decoder like libjpeg-turbo or there might be a faster native solution for your platform, or there might be a library that decodes on the GPU.
it would be good to double-check that the livePixels are not being reallocated by ofLoadImage()
. that would be a performance hit.
Yep exactly... decompressing and loading into pixels is heavy. Thanks for the link to libjpeg-turbo though. Using ofxTurboJpeg I have been able to test this in minutes, and the perf are already better.
great! going to close this issue. please report the exact performance difference if you get a chance.
For sure, I will post here some more details when I will have that running in a simple example project in order to really see the difference.
Hi,
How could we make this faster? The ofLoadImage() call is the one demanding the most part of the processing time. Would ofxCV be of help for this?
Thanks