xbmc/xbmc — pull request #909 by theuni (2012-04-30 22:39:00+00:00)
Title: Jpeg encoder

A bit late to the May party, but we'll see...

This gives us a native Jpeg encoder. One of the bigger saves actually comes from not using cximage's create* methods, which use their slow open.

The code is pretty ugly, but i wanted to re-use as much as possible. So the encode functions are essentially a waterfall. They can't be made static because there is too much to save in between the decode and the encode, and I didn't want to introduce a struct just to work with that data.

Passes all the test-files that accumulated for me after writing the decoder.