[SDL] new video driver...
dima at cc.hut.fi
Thu Oct 24 03:06:00 PDT 2002
I'm sort of writing a new video driver for sdl, it will support t6963c
based lcd display connected over parallel port. So I figure I'd share
what I intend to do and get some food for thought in return :)
now the lcd display is essentialy 1 bpp (as in dark grey or light green)
and as I already noticed SDL doesn't support 1bpp natively, so I guess I
should either pretend the display is actually 8 or whatever bpp and use or
force a specific colourmap, or perform dithering.
In case of colourmap or whatever everything should be pretty simple, just
set what is "black" and "white" and if some other colours comes along just
force it to some default value.
In case of dithering - as far as I understand SDL would not dither
anything for me, so I'd have to use some external library, say imagemagik
or something. I'd have to dither every frame separately and since I
reached 40fps in display redraw tests (simple fill with alternating
colours), so I dunno if dithering can keep up.
Either way the display is reasonably dumb so I intend to make all the
changes in a software buffer and send it over to the display on Flip().
Any experience is welcome :)
P.S. if someone here can gimme an idea of what I should be using instead
of SDL, well tell me too :)
More information about the SDL