200 201 #define DeclareFourByteAbgrPreBlendFillVars(PREFIX) 202 203 #define ClearFourByteAbgrPreBlendFillVars(PREFIX, argb) 204 205 #define InitFourByteAbgrPreBlendFillVarsNonPre(PREFIX, argb, COMP_PREFIX) 206 207 #define InitFourByteAbgrPreBlendFillVarsPre(PREFIX, argb, COMP_PREFIX) 208 209 #define StoreFourByteAbgrPreBlendFill(pRas, PREFIX, x, argb, COMP_PREFIX) \ 210 StoreFourByteAbgrPreFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX) 211 212 #define StoreFourByteAbgrPreFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX)\ 213 do { \ 214 (pRas)[4*(x)+0] = (jubyte) COMP_PREFIX ## A; \ 215 (pRas)[4*(x)+1] = (jubyte) COMP_PREFIX ## B; \ 216 (pRas)[4*(x)+2] = (jubyte) COMP_PREFIX ## G; \ 217 (pRas)[4*(x)+3] = (jubyte) COMP_PREFIX ## R; \ 218 } while (0) 219 220 #endif /* FourByteAbgrPre_h_Included */ | 200 201 #define DeclareFourByteAbgrPreBlendFillVars(PREFIX) 202 203 #define ClearFourByteAbgrPreBlendFillVars(PREFIX, argb) 204 205 #define InitFourByteAbgrPreBlendFillVarsNonPre(PREFIX, argb, COMP_PREFIX) 206 207 #define InitFourByteAbgrPreBlendFillVarsPre(PREFIX, argb, COMP_PREFIX) 208 209 #define StoreFourByteAbgrPreBlendFill(pRas, PREFIX, x, argb, COMP_PREFIX) \ 210 StoreFourByteAbgrPreFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX) 211 212 #define StoreFourByteAbgrPreFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX)\ 213 do { \ 214 (pRas)[4*(x)+0] = (jubyte) COMP_PREFIX ## A; \ 215 (pRas)[4*(x)+1] = (jubyte) COMP_PREFIX ## B; \ 216 (pRas)[4*(x)+2] = (jubyte) COMP_PREFIX ## G; \ 217 (pRas)[4*(x)+3] = (jubyte) COMP_PREFIX ## R; \ 218 } while (0) 219 220 /* 221 * DeclareAndInit ## TYPE ## SrcOverDstBlendFactor 222 * Declares and initializes the appropriate blend factor to be used for 223 * blending destination color components with source color. 224 */ 225 #define DeclareAndInitFourByteAbgrPreSrcOverDstBlendFactor(dF, dA, PREFIX) \ 226 jint PREFIX = dF; 227 228 #endif /* FourByteAbgrPre_h_Included */ |