hrydgard/ppsspp — pull request #2615 by CPkmn (2013-07-04 10:30:07+00:00)
Title: Partially implement some sceJpeg functions

The implementations aren't complete (and may need to corrections with what they are doing currently) but they are good enough to not cause sceKernelPrintf()'s in God Eater Burst's save file loading scene.

Additionally this implements a method to dump jpeg files sent to sceJpeg and a stub function for sceJpeg_A06A75C4 (just to notify it's been used, instead of not logging it, although I don't know if any game uses/needs it).

I used a JPEG decoder called NanoJpeg to verify the JPEGs are valid. The file can be obtained from http://keyj.emphy.de/nanojpeg/ and should be placed in (ppsspp dir)\native\ext\njpeg\ (that was where others were putting extensions, so I figure it's okay) and renamed to nanojpeg.h
The functions I sorta implemented were based on JPCSP's sceJpeg. They seem to be fine (the returns seem to be good) but it could use more testing, especially since JPCSP's sceJpeg isn't complete yet.

Before (official build) :

![scejpeg_2](https://f.cloud.github.com/assets/1909938/748771/c589feec-e492-11e2-8c42-adfbcdd76722.png)

After (my build) :

![scejpeg_1](https://f.cloud.github.com/assets/1909938/748773/cf5bb690-e492-11e2-93a9-1092e0ee2882.png)

Although there are still calls to unimplemented functions, it doesn't sceKernelPrintf() anymore. Don't mind the whited out part in my build (it's just my name) and I log sceFontGetCharGlyphImage() as debug since I noticed it works and God Eater Burst likes to call it a lot. (ie to avoid spamming my log with something that works)