< 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  * SrcOver ## TYPE ## BlendFactor
 211  * Returns appropriate blend value for use in blending calculations.
 212  */
 213 #define SrcOverIntArgbBmBlendFactor(dF, dA) \
 214     (dA)
 215 
 216 #endif /* IntArgbBm_h_Included */
< prev index next >