0 Members and 1 Guest are viewing this topic.
That could make it more speedy, I guess.
No, it isn't. The palette is used to look up color values, of which there are still only 15.
Remember we have 90MHz.
void dispBufIMG(unsigned char* buf, int xoff, int yoff, char* img, int width, int height, float inc){ int dwidth = width<<16, dheight = height<<16; int data_x = 0, data_y = 0; unsigned int x, y; int fixedinc = inc*(1<<16); int i, j; if(xoff < 0){ data_x = -xoff; xoff = 0; } if(yoff < 0){ data_y = -yoff; yoff = 0; } char* k; for(j=data_y, y=yoff; j < dheight && y < SCREEN_HEIGHT; j += fixedinc, y++) for(i=data_x, x=xoff, k=img+width*(j>>16); i < dwidth && x < SCREEN_WIDTH; i += fixedinc, x++) setBufPixel(buf, x, y, k[i>>16]);}
What?!? Does that same link on TI-Bank work for the latest version?
I was wondering, in the future, would it be possible to add support for other image file types?