< prev index next >

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

Print this page




 189                                 COMP_PREFIX ## G, COMP_PREFIX ## B)
 190 
 191 #define Extract4ByteArgbCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
 192     Extract3ByteRgbCompsAndAlphaFromArgb(pixel, COMP_PREFIX)
 193 
 194 #define Extract1ByteGrayCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
 195     do { \
 196         int r, g, b; \
 197         ExtractIntDcmComponents1234(pixel, COMP_PREFIX ## A, r, g, b); \
 198         COMP_PREFIX ## G = ComposeByteGrayFrom3ByteRgb(r, g, b); \
 199     } while (0)
 200 
 201 #define Extract1ShortGrayCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
 202     do { \
 203         int r, g, b; \
 204         ExtractIntDcmComponents1234(pixel, COMP_PREFIX ## A, r, g, b); \
 205         COMP_PREFIX ## G = ComposeUshortGrayFrom3ByteRgb(r, g, b); \
 206         COMP_PREFIX ## A = (COMP_PREFIX ## A << 8) + COMP_PREFIX ## A; \
 207     } while (0)
 208 








 209 #endif /* IntArgbBm_h_Included */


 189                                 COMP_PREFIX ## G, COMP_PREFIX ## B)
 190 
 191 #define Extract4ByteArgbCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
 192     Extract3ByteRgbCompsAndAlphaFromArgb(pixel, COMP_PREFIX)
 193 
 194 #define Extract1ByteGrayCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
 195     do { \
 196         int r, g, b; \
 197         ExtractIntDcmComponents1234(pixel, COMP_PREFIX ## A, r, g, b); \
 198         COMP_PREFIX ## G = ComposeByteGrayFrom3ByteRgb(r, g, b); \
 199     } while (0)
 200 
 201 #define Extract1ShortGrayCompsAndAlphaFromArgb(pixel, COMP_PREFIX) \
 202     do { \
 203         int r, g, b; \
 204         ExtractIntDcmComponents1234(pixel, COMP_PREFIX ## A, r, g, b); \
 205         COMP_PREFIX ## G = ComposeUshortGrayFrom3ByteRgb(r, g, b); \
 206         COMP_PREFIX ## A = (COMP_PREFIX ## A << 8) + COMP_PREFIX ## A; \
 207     } while (0)
 208 
 209 /*
 210  * DeclareAndInit ## TYPE ## SrcOverDstBlendFactor
 211  * Declares and initializes the appropriate blend factor to be used for
 212  * blending destination color components with source color.
 213  */
 214 #define  DeclareAndInitIntArgbBmSrcOverDstBlendFactor(dF, dA, PREFIX) \
 215     jint PREFIX = dA;
 216 
 217 #endif /* IntArgbBm_h_Included */
< prev index next >