Since I recently ported libjpeg and libpng to the 32X I figured I should cook up some Saturn versions as well. The JPEG decoding example is already done and you can get it here: http://jiggawatt.org/badc0de/djpegsat.zip
The above zip includes a test binary that you can run from 0x6004000, as well as its source code and a precompiled libjpeg.a.
The modified libjpeg sources can be found here: http://jiggawatt.org/badc0de/jpeg-7-sat.zip
If you want to build the library, here are the commands you need to perform:
gcc ansi2knr.c
make -f makefile.unix libjpeg.a
I used a custom memory allocator since malloc didn't seem to work (at least on the 32X). I've hardcoded the heap location for the allocator to 0x06080000..0x0608F000 in the Saturn version. If you need to move the heap someplace else, look in MM_Startup in jdapimin.c.
If you're interested in the 32X versions you can find them here: http://jiggawatt.org/badc0de/console.htm#32x
The above zip includes a test binary that you can run from 0x6004000, as well as its source code and a precompiled libjpeg.a.
The modified libjpeg sources can be found here: http://jiggawatt.org/badc0de/jpeg-7-sat.zip
If you want to build the library, here are the commands you need to perform:
gcc ansi2knr.c
make -f makefile.unix libjpeg.a
I used a custom memory allocator since malloc didn't seem to work (at least on the 32X). I've hardcoded the heap location for the allocator to 0x06080000..0x0608F000 in the Saturn version. If you need to move the heap someplace else, look in MM_Startup in jdapimin.c.
If you're interested in the 32X versions you can find them here: http://jiggawatt.org/badc0de/console.htm#32x