coverage.h 774 Bytes

/* coverage.h: subpixel coverage mask decode tables */

/* note that the tables are constructed so that the subpixel coordinate
        must be  incremented if the subpixel fraction is not zero.
	the beginning (left or upper) subpixel is covered if the resulting
	coordinate is less than or equal, while the ending (right or lower)
	is covered _only_ if greater than. Thus subpixels on shared edges
	are covered only exactly once.
  note that the first subpixel is in the MSB.
*/
#ifndef MAIN
extern int sp_decode_b[], sp_decode_e[];
#else
/* ??? how to generate this based on AA_SP_COUNT */
int sp_decode_b[AA_SP_COUNT+1] = {	/* beginning */
                0xF, 7, 3, 1, 0 };
int sp_decode_e[AA_SP_COUNT+1] = {	/* ending */
                0, 8, 0xC, 0xE, 0xF };
#endif