Threaded gif loader

Hey,

Does anybody know are there any solutions for loading gifs in the background thread?

I’m having issues with ofxGIF, while loading gifs in another thread. I fixed one part with disabling textures when creating ofImage, but another bad access is produced in

FreeImage_LockPage or FreeImage_UnlockPage

Is FreeImage lib thread safe?

Any tips are appreciated.

Tnx.

Hello! My fork of jesús gollonet’s ofxGifDecoder has support for threaded loading. I haven’t implemented any queuing, so it’s pretty rudimentary (i.e. you have to wait until one is loaded before loading another). Give it a shot and let me know how it works for you.

ofxGifDecoder

1 Like

Thank you for the reply. I then used different implementation for our gif player (without threaded loading).
I’ll note your fork if I’ll need threaded gif loading in the future.

Off-topic: I had a problem using original ofxGifDecoder because of its memory leak (https://github.com/jesusgollonet/ofxGifDecoder/issues/4). I had to load a lot of gifs very often. Because of that I choose ofxGif over ofxGifDecoder.

Thanks again for the help.

Grega