by Digby » Jan 23, 2002 @ 8:20am
I used a 4x4 dither matrix. I unable to locate the code right now but I should be able to find it later this week.
Per-pixel, the ordered dither requires two ANDs, one table lookup, 3 adds, and 3 clamps, then a pixel pack.
Have you tried just creating a generic halftone palette and generating a 64K lookup table?
Don't perform the color conversion per-frame. Only do it when the app locks/unlocks a surface.
Personally, unless I had to choose between supporting palettized displays and a having a root canal, I'd do nothing to support these dead devices. They are well over a year old now and there are no future devices being made with 8-bpp displays.