4bpp visuals?

Hey everyone,

Has anyone worked on 4bpp X11 visuals?  Any plans to support them?  If not, is it a feasible project, and where do I start?

Ross Vandegrift
coolio at tmbg.org
@Ross_Vandegrift

Hey everyone,

Has anyone worked on 4bpp X11 visuals? Any plans to support them? If not, is it a feasible project, and where do I start?

I’d like to see if supported; PDAs… yummy :slight_smile:

-bill!

Has anyone worked on 4bpp X11 visuals? Any plans to support
them? If not, is it a feasible project, and where do I start?

for <8bpp formats you need a couple of more format parameters, namely
bit order (in what order pixels are packed into a bitmap unit) and the
size of the bitmap unit those pixels are packed into (usually 1, 2 or 4 bytes).
The SDL_Surface structure doesn’t have either of these right now

it could be solved in three ways:

  1. add those parameters (preferrably not in SDL 1.2)
  2. decide upon fixed values by fiat (say, MSB first and 8-bit unit)
  3. let the user bother about it (which means we can’t support BlitSurface
    or FillRect, just direct pixel access from the user)