Welcome, Guest. Please login or register.

Author Topic: Netsurf 68k 16/24bit screen support?  (Read 2608 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline chris

Re: Netsurf 68k 16/24bit screen support?
« on: October 03, 2009, 12:59:13 PM »
Quote from: Karlos;524555
24-bit packed pixel modes are a bit of pain to support, but without knowing how the rendering is carried out, it's a bit difficult to say how feasible it is to fix.

An indirect rendering strategy that renders to a 32-bit BitMap in fast ram that is then copied to any freshly exposed or updated bit using BlitBitMap() might work since the bottleneck is likely to be transferring the data over the bus rather than any conversion overhead. However, since I don't know how the browsers rendering engine works, that might be a completely stupid suggestion.


Internally all NetSurf bitmaps and colour definitions are 32-bit.  To support 24-bit/16-bit you need to down-convert the 32-bit bitmap just before display (this down-converted version could be cached for later writes to speed things up).

However, I don't know anything about SDL, it might be there where the problems lie.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz