I'm using an Embedded Artists development board for a ARM 9 processor (LPC3250). The development board includes a simple 320 x 240 screen. I need to rotate everything on the screen 180 degrees. Contacting the vendor there's no support in their driver for rotating, so it's left up to the user.
During setup of the display, you setup a frame buffer where 2 bytes is used to describe each pixel. The API has basic capability like write a line, box, text, etc. The provided driver updates the screen by dereferencing the desired pixel address in the frame buffer and setting it equal to a 16 bit color. (this is the lpc swim library if that means much to someone)
*(framebuffer + offset) = pen_color;
Any suggestions on how to rotate the what is being displayed before ever writing it to the frame buffer?
I have plenty of memory and can create a second intermediate frame buffer if needed.