2008-01-04

Badger - again

Getting Qtopia up and running on the BADGER board was really just a matter of compilation. However, Qtopia’s built-in framebuffer driver automatically assumed that 16 bits per pixel was a 5/6/5 format. This resulted in some rather funny looking colours as it works with a 4/4/4 setup – but at least the framebuffer works as expected.

Even if BADGER works with 4/4/4 right now, it can easily be reconfigured and synthesized for pretty much any other conceivable pixel formats. However, the standard reference design uses 4/4/4 right now, so I'll work with that.

Spending a few more hours, an unaccelerated driver operating directly on the screen was created. The driver simply provides a screen class initializing the hardware, a dummy surface and a paint device simply returning a paint engine inheriting the QRasterPaintEngine. By implementing the drawBufferSpan and drawColorSpans we get something on the screen.

And, hey, the drawColorSpans is a simple draw-horizontal-line-function so we can accelerate it right away. The drawBufferSpan is also accelerated – we simply plot the data to a buffer in the video memory and then use the blitting capabilites of BADGE to have it handle the alpha blending – neat :-)

4 Comments:

At 5:58 PM, Blogger Chani said...

444? heh, and I thought 555/565 was quite annoying enough...

 
At 5:59 PM, Blogger Johan Thelin said...

Actually, it is 4/4/4/4 with the last 4 being an alpha channel when blitting between different areas.

 
At 6:45 PM, Anonymous Anonymous said...

What's the approximate price tag for a badger including display ?
I'm looking for a not-to-expensive board with an ARM9, an FPGA would be an added bonus.

Alex

 
At 9:33 PM, Blogger Johan Thelin said...

They have been built in very limited numbers this far, so I would not call them cheap. However, we sell them at our cost, so they are worth the money. If you contact me (e8johan -at- gmail -dot- com) I can provide you with the details or point you to other similar platforms that I have experienced.

 

Post a Comment

<< Home