i have a
const char * pic;
with a jpeg in it.
I want to use this direct in oF, so I don’t have to go the way over filesystem.
Has somebody a good idea, how I can get this in an ofImage or ofTexture?
The setFromPixel / loadData methods don’t work, because they need raw pixel data.
I think of using FreeImage library because its already in oF and extend ofImage / ofTexture with a method for this. Is this a good idea?
Is this possible with FreeImage?
I also think about using libjpeg for this.
what do you think?