Forum Discussion
Altera_Forum
Honored Contributor
15 years agoproblem with code size"need help"
hello, I have a problem with code size.. I am running an application to view a 24bit color picture on a 480x272 touch screen, I used a 8 Mbyte SDRAM on DE1 board cycloneII and a scatter gather D...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- That's not a matter of size. It seems the pointer used to reference the picture data bases on the current program counter, thus the code. How do you "include" the picture into you application? --- Quote End --- I included it like that:# include "picture.h" and inside it: int pic_h = 60; int pic_w = 120; unsigned int pic[60][120]= {................}; and the calling like that : draw_array( (unsigned int *)pic, pic_w, pic_h, pic_viewer.display, ((WIDTH-pic_w)/2), ((HEIGHT-pic_h)/2), SPLASH_BG_MASK);