< prev index next >

src/java.desktop/share/native/libawt/java2d/loops/FourByteAbgr.h

Print this page




 174         PREFIX ## 1 = (jubyte) COMP_PREFIX ## B; \
 175         PREFIX ## 2 = (jubyte) COMP_PREFIX ## G; \
 176         PREFIX ## 3 = (jubyte) COMP_PREFIX ## R; \
 177     } while (0)
 178 
 179 #define InitFourByteAbgrBlendFillVarsPre(PREFIX, argb, COMP_PREFIX)
 180 
 181 #define StoreFourByteAbgrBlendFill(pRas, PREFIX, x, argb, COMP_PREFIX) \
 182     do { \
 183         (pRas)[4*x+0] = PREFIX ## 0; \
 184         (pRas)[4*x+1] = PREFIX ## 1; \
 185         (pRas)[4*x+2] = PREFIX ## 2; \
 186         (pRas)[4*x+3] = PREFIX ## 3; \
 187     } while (0)
 188 
 189 #define StoreFourByteAbgrFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX) \
 190     StoreFourByteAbgrFrom4ByteArgb(pRas, PREFIX, x, \
 191                                    COMP_PREFIX ## A, COMP_PREFIX ## R, \
 192                                    COMP_PREFIX ## G, COMP_PREFIX ## B)
 193 








 194 #endif /* FourByteAbgr_h_Included */


 174         PREFIX ## 1 = (jubyte) COMP_PREFIX ## B; \
 175         PREFIX ## 2 = (jubyte) COMP_PREFIX ## G; \
 176         PREFIX ## 3 = (jubyte) COMP_PREFIX ## R; \
 177     } while (0)
 178 
 179 #define InitFourByteAbgrBlendFillVarsPre(PREFIX, argb, COMP_PREFIX)
 180 
 181 #define StoreFourByteAbgrBlendFill(pRas, PREFIX, x, argb, COMP_PREFIX) \
 182     do { \
 183         (pRas)[4*x+0] = PREFIX ## 0; \
 184         (pRas)[4*x+1] = PREFIX ## 1; \
 185         (pRas)[4*x+2] = PREFIX ## 2; \
 186         (pRas)[4*x+3] = PREFIX ## 3; \
 187     } while (0)
 188 
 189 #define StoreFourByteAbgrFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX) \
 190     StoreFourByteAbgrFrom4ByteArgb(pRas, PREFIX, x, \
 191                                    COMP_PREFIX ## A, COMP_PREFIX ## R, \
 192                                    COMP_PREFIX ## G, COMP_PREFIX ## B)
 193 
 194 /*
 195  * DeclareAndInit ## TYPE ## SrcOverDstBlendFactor
 196  * Declares and initializes the appropriate blend factor to be used for
 197  * blending destination color components with source color.
 198  */
 199 #define  DeclareAndInitFourByteAbgrSrcOverDstBlendFactor(dF, dA, PREFIX) \
 200     jint PREFIX = dA;
 201 
 202 #endif /* FourByteAbgr_h_Included */
< prev index next >