Lines Matching refs:PREFIX

42 #define DeclareByteIndexedLoadVars(PREFIX) \
43 jint *PREFIX ## Lut;
45 #define DeclareByteIndexedStoreVars(PREFIX) \
46 int PREFIX ## XDither, PREFIX ## YDither; \
47 char *PREFIX ## rerr, *PREFIX ## gerr, *PREFIX ## berr; \
48 unsigned char *PREFIX ## InvLut;
50 #define SetByteIndexedStoreVarsYPos(PREFIX, pRasInfo, LOC) \
52 PREFIX ## YDither = ((LOC & 7) << 3); \
55 #define SetByteIndexedStoreVarsXPos(PREFIX, pRasInfo, LOC) \
57 PREFIX ## rerr = (pRasInfo)->redErrTable + PREFIX ## YDither; \
58 PREFIX ## gerr = (pRasInfo)->grnErrTable + PREFIX ## YDither; \
59 PREFIX ## berr = (pRasInfo)->bluErrTable + PREFIX ## YDither; \
60 PREFIX ## XDither = (LOC & 7); \
63 #define InitByteIndexedLoadVars(PREFIX, pRasInfo) \
64 PREFIX ## Lut = (pRasInfo)->lutBase
69 #define InitByteIndexedStoreVarsY(PREFIX, pRasInfo) \
71 SetByteIndexedStoreVarsYPos(PREFIX, pRasInfo, (pRasInfo)->bounds.y1); \
72 PREFIX ## InvLut = (pRasInfo)->invColorTable; \
75 #define InitByteIndexedStoreVarsX(PREFIX, pRasInfo) \
76 SetByteIndexedStoreVarsXPos(PREFIX, pRasInfo, (pRasInfo)->bounds.x1);
79 #define NextByteIndexedStoreVarsX(PREFIX) \
80 PREFIX ## XDither = (PREFIX ## XDither + 1) & 7
82 #define NextByteIndexedStoreVarsY(PREFIX) \
83 PREFIX ## YDither = (PREFIX ## YDither + (1 << 3)) & (7 << 3)
101 #define CopyByteIndexedBmToIntArgbPre(pRGB, i, PREFIX, pRow, x) \
103 jint argb = PREFIX ## Lut[pRow[x]]; \
115 #define DeclareByteIndexedPixelData(PREFIX)
116 #define ExtractByteIndexedPixelData(PIXEL, PREFIX)
118 #define StoreByteIndexedPixelData(pPix, x, pixel, PREFIX) \
129 #define LoadByteIndexedTo1IntRgb(pRas, PREFIX, x, rgb) \
130 (rgb) = PREFIX ## Lut[pRas[x]]
132 #define LoadByteIndexedTo1IntArgb(pRas, PREFIX, x, argb) \
133 (argb) = PREFIX ## Lut[pRas[x]]
135 #define LoadByteIndexedTo3ByteRgb(pRas, PREFIX, x, r, g, b) \
137 jint rgb = PREFIX ## Lut[pRas[x]]; \
141 #define LoadByteIndexedTo4ByteArgb(pRas, PREFIX, x, a, r, g, b) \
143 jint argb = PREFIX ## Lut[pRas[x]]; \
159 #define StoreByteIndexedFrom1IntRgb(pRas, PREFIX, x, rgb) \
163 StoreByteIndexedFrom3ByteRgb(pRas, PREFIX, x, r, g, b); \
166 #define StoreByteIndexedFrom1IntArgb(pRas, PREFIX, x, argb) \
167 StoreByteIndexedFrom1IntRgb(pRas, PREFIX, x, argb)
169 #define StoreByteIndexedFrom3ByteRgb(pRas, PREFIX, x, r, g, b) \
171 r += PREFIX ## rerr[PREFIX ## XDither]; \
172 g += PREFIX ## gerr[PREFIX ## XDither]; \
173 b += PREFIX ## berr[PREFIX ## XDither]; \
175 (pRas)[x] = SurfaceData_InvColorMap(PREFIX ## InvLut, r, g, b); \
178 #define StoreByteIndexedFrom4ByteArgb(pRas, PREFIX, x, a, r, g, b) \
179 StoreByteIndexedFrom3ByteRgb(pRas, PREFIX, x, r, g, b)
181 #define CopyByteIndexedToIntArgbPre(pRGB, i, PREFIX, pRow, x) \
183 jint argb = PREFIX ## Lut[pRow[x]]; \
200 #define DeclareByteIndexedAlphaLoadData(PREFIX) \
201 jint *PREFIX ## Lut; \
202 jint PREFIX ## rgb;
204 #define InitByteIndexedAlphaLoadData(PREFIX, pRasInfo) \
205 PREFIX ## Lut = (pRasInfo)->lutBase
207 #define LoadAlphaFromByteIndexedFor4ByteArgb(pRas, PREFIX, COMP_PREFIX) \
209 PREFIX ## rgb = PREFIX ## Lut[(pRas)[0]]; \
210 COMP_PREFIX ## A = ((juint) PREFIX ## rgb) >> 24; \
213 #define Postload4ByteArgbFromByteIndexed(pRas, PREFIX, COMP_PREFIX) \
215 COMP_PREFIX ## R = (PREFIX ## rgb >> 16) & 0xff; \
216 COMP_PREFIX ## G = (PREFIX ## rgb >> 8) & 0xff; \
217 COMP_PREFIX ## B = (PREFIX ## rgb >> 0) & 0xff; \
223 #define StoreByteIndexedFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX) \
224 StoreByteIndexedFrom4ByteArgb(pRas, PREFIX, x, \