< 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  * SrcOver ## TYPE ## BlendFactor
 196  * Returns appropriate blend value for use in blending calculations.
 197  */
 198 #define SrcOverFourByteAbgrBlendFactor(dF, dA) \
 199     (dA)
 200 
 201 #endif /* FourByteAbgr_h_Included */
< prev index next >