The standard functions of libjpeg expect a FILE *.
for example the one I am currently using :
Code: Select all
jpeg_stdio_src(&cinfo, fp);
However sceIoOpen returns as sceUID object, not a FILE *
What are my options ? Which one do you think is the best ?
- Should I use fopen anyways and not care about speed to much ?
- Is there a modified libjpeg for the PSP ? if so, where is it ? (where did the svn go ?)
- I saw an attempt to read a jpeg from memory rather than a file. Unfortunately the code doing this had a memory leak and is not usable currently. Do somebody know a way to do simply read a jpeg from memory rather than a file, using libjpeg ?
- Any other trick that I should know about ? Any easy way to convert a SceUID into a FILE * or something ?
Thanks in advance for your answers.