Lines Matching refs:PREFIX
44 #define DeclareByteBinaryLoadVars(PREFIX) \
45 jint *PREFIX ## Lut;
47 #define DeclareByteBinaryStoreVars(PREFIX) \
48 unsigned char *PREFIX ## InvLut;
50 #define SetByteBinaryStoreVarsYPos(PREFIX, pRasInfo, LOC)
51 #define SetByteBinaryStoreVarsXPos(PREFIX, pRasInfo, LOC)
53 #define InitByteBinaryLoadVars(PREFIX, pRasInfo) \
54 PREFIX ## Lut = (pRasInfo)->lutBase
56 #define InitByteBinaryStoreVarsY(PREFIX, pRasInfo) \
57 PREFIX ## InvLut = (pRasInfo)->invColorTable
59 #define InitByteBinaryStoreVarsX(PREFIX, pRasInfo)
60 #define NextByteBinaryStoreVarsX(PREFIX)
61 #define NextByteBinaryStoreVarsY(PREFIX)
64 #define DeclareByteBinaryInitialLoadVars(TYPE, INFO, pRas, PREFIX, x) \
65 int PREFIX ## adjx = (x) + (INFO)->pixelBitOffset / TYPE ## BitsPerPixel; \
66 int PREFIX ## index = (PREFIX ## adjx) / TYPE ## PixelsPerByte; \
67 int PREFIX ## bits = TYPE ## MaxBitOffset - \
68 (((PREFIX ## adjx) % TYPE ## PixelsPerByte) * \
70 int PREFIX ## bbpix = (pRas)[PREFIX ## index];
72 #define InitialLoadByteBinary(TYPE, pRas, PREFIX) \
74 if (PREFIX ## bits < 0) { \
75 (pRas)[PREFIX ## index] = (jubyte) PREFIX ## bbpix; \
76 PREFIX ## bbpix = (pRas)[++(PREFIX ## index)]; \
77 PREFIX ## bits = TYPE ## MaxBitOffset; \
81 #define ShiftBitsByteBinary(TYPE, PREFIX) \
82 PREFIX ## bits -= TYPE ## BitsPerPixel
84 #define FinalStoreByteBinary(TYPE, pRas, PREFIX) \
85 (pRas)[PREFIX ## index] = (jubyte) PREFIX ## bbpix
87 #define CurrentPixelByteBinary(TYPE, PREFIX) \
88 ((PREFIX ## bbpix >> PREFIX ## bits) & TYPE ## PixelMask)
93 #define StoreByteBinaryPixelData(TYPE, pPix, x, pixel, PREFIX) \
95 PREFIX ## bbpix &= ~(TYPE ## PixelMask << PREFIX ## bits); \
96 PREFIX ## bbpix |= (pixel << PREFIX ## bits); \
107 #define XorByteBinaryPixelData(TYPE, pDst, x, PREFIX, \
109 PREFIX ## bbpix ^= ((((srcpixel) ^ (xorpixel)) & TYPE ## PixelMask) \
110 << PREFIX ## bits)
113 #define LoadByteBinaryTo1IntRgb(TYPE, pRas, PREFIX, x, rgb) \
114 (rgb) = PREFIX ## Lut[CurrentPixelByteBinary(TYPE, PREFIX)]
116 #define LoadByteBinaryTo1IntArgb(TYPE, pRas, PREFIX, x, argb) \
117 (argb) = PREFIX ## Lut[CurrentPixelByteBinary(TYPE, PREFIX)]
119 #define LoadByteBinaryTo3ByteRgb(TYPE, pRas, PREFIX, x, r, g, b) \
121 jint rgb = PREFIX ## Lut[CurrentPixelByteBinary(TYPE, PREFIX)]; \
125 #define LoadByteBinaryTo4ByteArgb(TYPE, pRas, PREFIX, x, a, r, g, b) \
127 jint argb = PREFIX ## Lut[CurrentPixelByteBinary(TYPE, PREFIX)]; \
131 #define StoreByteBinaryFrom1IntRgb(TYPE, pRas, PREFIX, x, rgb) \
135 StoreByteBinaryFrom3ByteRgb(TYPE, pRas, PREFIX, x, r, g, b); \
138 #define StoreByteBinaryFrom1IntArgb(TYPE, pRas, PREFIX, x, argb) \
139 StoreByteBinaryFrom1IntRgb(TYPE, pRas, PREFIX, x, argb)
141 #define StoreByteBinaryFrom3ByteRgb(TYPE, pRas, PREFIX, x, r, g, b) \
143 SurfaceData_InvColorMap(PREFIX ## InvLut, \
145 PREFIX)
147 #define StoreByteBinaryFrom4ByteArgb(TYPE, pRas, PREFIX, x, a, r, g, b) \
148 StoreByteBinaryFrom3ByteRgb(TYPE, pRas, PREFIX, x, r, g, b)
151 #define DeclareByteBinaryAlphaLoadData(TYPE, PREFIX) \
152 jint *PREFIX ## Lut; \
153 jint PREFIX ## rgb;
155 #define InitByteBinaryAlphaLoadData(TYPE, PREFIX, pRasInfo) \
156 PREFIX ## Lut = (pRasInfo)->lutBase
158 #define LoadAlphaFromByteBinaryFor4ByteArgb(TYPE, pRas, PREFIX, COMP_PREFIX) \
160 PREFIX ## rgb = PREFIX ## Lut[CurrentPixelByteBinary(TYPE, PREFIX)]; \
161 COMP_PREFIX ## A = ((juint) PREFIX ## rgb) >> 24; \
164 #define Postload4ByteArgbFromByteBinary(TYPE, pRas, PREFIX, COMP_PREFIX) \
166 COMP_PREFIX ## R = (PREFIX ## rgb >> 16) & 0xff; \
167 COMP_PREFIX ## G = (PREFIX ## rgb >> 8) & 0xff; \
168 COMP_PREFIX ## B = (PREFIX ## rgb >> 0) & 0xff; \
174 #define StoreByteBinaryFrom4ByteArgbComps(TYPE, pRas, PREFIX, x, COMP_PREFIX)\
175 StoreByteBinaryFrom4ByteArgb(TYPE, pRas, PREFIX, x, \