Defines | |
#define | EVENODD_LINE_UNROLL_INIT() int __evenodd_line_xp__; |
#define | EVENODD_LINE_UNROLL_0(aScanline, aX, aSlope, aOffsets) |
#define | EVENODD_LINE_UNROLL_1(aScanline, aX, aSlope, aOffsets) |
#define | EVENODD_LINE_UNROLL_2(aScanline, aX, aSlope, aOffsets) |
#define | EVENODD_LINE_UNROLL_3(aScanline, aX, aSlope, aOffsets) |
#define | EVENODD_LINE_UNROLL_4(aScanline, aX, aSlope, aOffsets) |
#define | EVENODD_LINE_UNROLL_5(aScanline, aX, aSlope, aOffsets) |
#define | EVENODD_LINE_UNROLL_6(aScanline, aX, aSlope, aOffsets) |
#define | EVENODD_LINE_UNROLL_7(aScanline, aX, aSlope, aOffsets) |
#define | NONZERO_LINE_UNROLL_INIT() int __nonzero_line_xp__; |
#define | NONZERO_LINE_UNROLL_0(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
#define | NONZERO_LINE_UNROLL_1(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
#define | NONZERO_LINE_UNROLL_2(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
#define | NONZERO_LINE_UNROLL_3(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
#define | NONZERO_LINE_UNROLL_4(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
#define | NONZERO_LINE_UNROLL_5(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
#define | NONZERO_LINE_UNROLL_6(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
#define | NONZERO_LINE_UNROLL_7(aWindingBuffer, aX, aSlope, aOffsets, aWinding) |
Scanline edge-flag algorithm for antialiasing
Copyright (c) 2005-2007 Kiia Kallio
http://mlab.uiah.fi/~kkallio/antialiasing/
This code is distributed under the three-clause BSD license. Read the LICENSE file or visit the URL above for details.
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_0; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x01; |
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_1; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x02; |
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_2; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x04; |
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_3; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x08; |
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_4; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x10; |
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_5; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x20; |
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_6; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x40; |
|
Value: __evenodd_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_7; \ aX += aSlope; \ __evenodd_line_xp__ = FIXED_TO_INT(__evenodd_line_xp__); \ aScanline[__evenodd_line_xp__] ^= 0x80; |
|
|
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_0; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x01; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[0] += aWinding; |
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_1; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x02; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[1] += aWinding; |
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_2; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x04; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[2] += aWinding; |
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_3; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x08; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[3] += aWinding; |
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_4; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x10; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[4] += aWinding; |
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_5; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x20; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[5] += aWinding; |
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_6; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x40; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[6] += aWinding; |
|
Value: __nonzero_line_xp__ = aX + SUBPIXEL_OFFSET_FIXED_7; \ aX += aSlope; \ __nonzero_line_xp__ = FIXED_TO_INT(__nonzero_line_xp__); \ aWindingBuffer[__nonzero_line_xp__].mMask |= 0x80; \ aWindingBuffer[__nonzero_line_xp__].mBuffer[7] += aWinding; |
|
|