#37857 - emgie - Thu Mar 17, 2005 11:18 pm
Hi,
I'm trying to decompress a JPEG image from source located in ROM (I think...), but I get no results.
mandrill.h:
main.c:
When I first copy MANDRILL_DAT to a buffer in EWRAM (unsigned char buf[240*160*2] MEM_IN_EWRAM) and then unpack it from there, all goes well. The same if I use gbfs filesystem.
Anyone to tell me what's wrong in #include and right in other methods?
Regards,
Maciek
I'm trying to decompress a JPEG image from source located in ROM (I think...), but I get no results.
mandrill.h:
Code: |
unsigned char MANDRILL_DAT[6194] ={ 0xFF,0xD8,0xFF,0xE0,0x00,0x10,0x4A,0x46,0x49, ... and so on... |
main.c:
Code: |
#include "gfx/mandrill.h" JPEG_DecompressImage(MANDRILL_DAT, MEM_BG_PTR, 240, 160); |
When I first copy MANDRILL_DAT to a buffer in EWRAM (unsigned char buf[240*160*2] MEM_IN_EWRAM) and then unpack it from there, all goes well. The same if I use gbfs filesystem.
Anyone to tell me what's wrong in #include and right in other methods?
Regards,
Maciek