[OLPC-devel] Emulating the laptop display with Xephyr

Manu Cornet manu.cornet at gmail.com
Sat Jul 29 03:33:00 EDT 2006


Hi !

> Is the text antialiasing algorithm sub-pixel based, or does it
> assume non-swizzled pixels?

Basically, the antialiasing algorithm works as follows:

* For each pixel, first figure out which color it will be when
swizzled (e.g., red). Then sum up the corresponding color component
(e.g., red) from its four neighbors (up, down, left, right). At this
point the image hasn't been swizzled yet.

* Add one eighth of this sum to one half of the current pixel's
corresponding color value (e.g. red): that's the final value of the
pixel.

* Proceed with color swizzling.

That's about it :o) With this process, information that would be lost
while just swizzling (e.g., discarding the blue signal in a green
pixel) is spread around to the neighbors.

Cheers,
Manu



More information about the Devel mailing list