JohnSantaFe
asked on
rotate a frame buffer
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)
e.g.
*(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.
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)
e.g.
*(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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER