Searched refs:pixel (Results 1 - 25 of 139) sorted by relevance

123456

/openjdk7/jdk/src/share/native/sun/java2d/loops/
H A DIntDcm.h32 #define SwapIntDcmComponentsX123ToX321(pixel) \
33 (((pixel) << 16) | \
34 ((pixel) & 0xff00) | \
35 (((pixel) >> 16) & 0xff))
37 #define SwapIntDcmComponentsX123ToC321(pixel) \
38 (((pixel & 0xff) << 16) | \
39 ((pixel) & 0xff00) | \
40 (((pixel) >> 16) & 0xff))
42 #define SwapIntDcmComponentsX123ToS321(pixel) \
44 ((pixel) << 1
[all...]
H A DDrawPath.h31 jint pixel; member in struct:__anon913
H A DUshort555Rgbx.h63 #define Ushort555RgbxPixelFromArgb(pixel, rgb, pRasInfo) \
64 (pixel) = IntArgbToUshort555Rgbx(rgb)
66 #define StoreUshort555RgbxPixel(pRas, x, pixel) \
67 ((pRas)[x] = (jushort) (pixel))
69 #define StoreUshort555RgbxPixelData(pPix, x, pixel, PREFIX) \
70 StoreUshort555RgbxPixel(pPix, x, pixel)
75 jushort pixel = (pRas)[x]; \
76 (r) = ((pixel) >> 11) & 0x1f; \
78 (g) = ((pixel) >> 6) & 0x1f; \
80 (b) = ((pixel) >>
[all...]
H A DIntArgbBm.h76 #define IntArgbBmPixelFromArgb(pixel, rgb, pRasInfo) \
77 (pixel) = ((rgb) | (((rgb) >> 31) << 24))
79 #define StoreIntArgbBmPixel(pRas, x, pixel) \
80 (pRas)[x] = (pixel)
86 #define StoreIntArgbBmPixelData(pPix, x, pixel, PREFIX) \
87 (pPix)[x] = (pixel)
101 jint pixel = (pRas)[x]; \
102 ExtractIntDcmComponentsX123(pixel, r, g, b); \
107 jint pixel = (pRas)[x]; \
108 pixel
[all...]
H A DIntBgr.h61 #define IntBgrPixelFromArgb(pixel, rgb, pRasInfo) \
62 (pixel) = SwapIntDcmComponentsX123ToX321(rgb)
64 #define StoreIntBgrPixel(pRas, x, pixel) \
65 (pRas)[x] = (pixel)
71 #define StoreIntBgrPixelData(pPix, x, pixel, PREFIX) \
72 StoreIntBgrPixel(pPix, x, pixel)
77 jint pixel = (pRas)[x]; \
78 (rgb) = SwapIntDcmComponentsX123ToX321(pixel); \
83 jint pixel = (pRas)[x]; \
84 (argb) = SwapIntDcmComponentsX123ToS321(pixel); \
[all...]
H A DIntArgb.h59 #define IntArgbPixelFromArgb(pixel, rgb, pRasInfo) \
60 (pixel) = (rgb)
62 #define StoreIntArgbPixel(pRas, x, pixel) \
63 (pRas)[x] = (pixel)
69 #define StoreIntArgbPixelData(pPix, x, pixel, PREFIX) \
70 (pPix)[x] = (pixel)
81 jint pixel = (pRas)[x]; \
82 ExtractIntDcmComponentsX123(pixel, r, g, b); \
87 jint pixel = (pRas)[x]; \
88 ExtractIntDcmComponents1234(pixel,
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DPixelConverter.java32 * rgb colorspace specification and the equivalent value for a pixel
34 * SurfaceType objects, since the conversion between pixel values
39 * we can calculate the pixel values in these generic cases as well.
91 public int pixelToRgb(int pixel, ColorModel cm) { argument
93 return pixel;
108 * an alpha != 1 cannot be converted to an Xrgb pixel
114 * low order byte of a packed-byte pixel will be the first
119 * pixels[0] = b; // low order byte of an Xrgb pixel
121 * pixels[2] = r; // high order byte of an Xrgb pixel
133 public int pixelToRgb(int pixel, ColorMode argument
146 pixelToRgb(int pixel, ColorModel cm) argument
161 pixelToRgb(int pixel, ColorModel cm) argument
176 pixelToRgb(int pixel, ColorModel cm) argument
198 pixelToRgb(int pixel, ColorModel cm) argument
220 pixelToRgb(int pixel, ColorModel cm) argument
249 pixelToRgb(int pixel, ColorModel cm) argument
276 pixelToRgb(int pixel, ColorModel cm) argument
294 pixelToRgb(int pixel, ColorModel cm) argument
312 pixelToRgb(int pixel, ColorModel cm) argument
338 pixelToRgb(int pixel, ColorModel cm) argument
374 pixelToRgb(int pixel, ColorModel cm) argument
397 pixelToRgb(int pixel, ColorModel cm) argument
419 pixelToRgb(int pixel, ColorModel cm) argument
442 pixelToRgb(int pixel, ColorModel cm) argument
[all...]
/openjdk7/jdk/src/share/native/sun/awt/image/cvutils/
H A Dimg_icm.h30 * This implementation can decode the pixel information associated
66 #define PixelICMDecode(CM, pixel, red, green, blue, alpha) \
68 VerifyPixelRange(pixel, mapsize); \
69 pixel = cmrgb[pixel]; \
70 IfAlpha(alpha = (pixel >> ALPHASHIFT) & 0xff;) \
71 red = (pixel >> REDSHIFT) & 0xff; \
72 green = (pixel >> GREENSHIFT) & 0xff; \
73 blue = (pixel >> BLUESHIFT) & 0xff; \
H A Dimg_anycm.h30 * This implementation can decode the pixel information associated
33 * optimally handle pixel data coming from IndexColorModel and
93 #define PixelAnyDecode(CM, pixel, red, green, blue, alpha) \
97 PixelICMDecode(CM, pixel, red, green, blue, alpha); \
100 PixelDCMDecode(CM, pixel, red, green, blue, alpha); \
103 pixel = do_execute_java_method(ee, (void *) CM, \
105 FALSE, pixel); \
109 IfAlpha(alpha = pixel >> ALPHASHIFT;) \
110 red = (pixel >> REDSHIFT) & 0xff; \
111 green = (pixel >> GREENSHIF
[all...]
H A Dimg_dcm8.h30 * This implementation can decode the pixel information associated
73 #define PixelDCM8Decode(CM, pixel, red, green, blue, alpha) \
77 : (pixel >> alpha_off) & 0xff);) \
78 red = (pixel >> red_off) & 0xff; \
79 green = (pixel >> green_off) & 0xff; \
80 blue = (pixel >> blue_off) & 0xff; \
H A Dimg_nodither.h31 * and is only useful for output pixel formats which consist of 3
32 * bytes per pixel containing the red, green and blue components.
35 * pixel first. The value of the "pixel" variable will be undefined
48 #define DitherPixel(dstX, dstY, pixel, red, green, blue) \
H A Dimg_output8_16_32.h31 * array of bytes, shorts, or longs such that the pixel for (srcX, srcY)
55 #define PutPixelInc(pixel, red, green, blue) \
59 *dstP.bp++ = ((unsigned char) pixel); \
62 *dstP.sp++ = ((unsigned short) pixel); \
65 *dstP.ip++ = pixel; \
H A Dimg_dir8dither.h32 * bits of the 32-bit output pixel should contain the red, green,
49 #define DitherPixel(dstX, dstY, pixel, red, green, blue) \
51 pixel = ((red << red_dither_shift) | \
H A Dimg_dcm.h30 * This implementation can decode the pixel information associated
86 #define PixelDCMDecode(CM, pixel, red, green, blue, alpha) \
90 : ((pixel & alpha_mask) >> alpha_off));) \
91 red = ((pixel & red_mask) >> red_off); \
92 green = ((pixel & green_mask) >> green_off); \
93 blue = ((pixel & blue_mask) >> blue_off); \
H A Dimg_fsdither.h87 #define AnyDitherPixel(dstX, dstY, pixel, red, green, blue) \
90 GrayDitherPixel(dstX, dstY, pixel, red, green, blue); \
92 ColorDitherPixel(dstX, dstY, pixel, red, green, blue); \
H A Dimg_orddither.h94 #define AnyDitherPixel(dstX, dstY, pixel, red, green, blue) \
97 GrayDitherPixel(dstX, dstY, pixel, red, green, blue); \
99 ColorDitherPixel(dstX, dstY, pixel, red, green, blue); \
H A Dimg_output16_32.h31 * array of shorts, or longs such that the pixel for (srcX, srcY)
54 #define PutPixelInc(pixel, red, green, blue) \
58 *dstP.sp++ = ((unsigned short) pixel); \
61 *dstP.ip++ = pixel; \
H A Dimg_output8_32.h31 * of either bytes or longs such that the pixel for (srcX, srcY) is
54 #define PutPixelInc(pixel, red, green, blue) \
57 *dstP.ip++ = pixel; \
59 *dstP.bp++ = ((unsigned char) pixel); \
H A Dimg_dirdither.h32 * specify which bits of the output pixel should contain the red,
38 * Encoding macros for direct pixel type displays with any size up to
59 #define DitherPixel(dstX, dstY, pixel, red, green, blue) \
61 pixel = (((red >> red_dither_scale) \
H A Dimg_input32.h31 * where the data for pixel (srcX, srcY) is loaded from index
54 #define VerifyPixelRange(pixel, mapsize) \
56 if (((unsigned int) pixel) >= mapsize) { \
H A Dimg_input8.h31 * where the data for pixel (srcX, srcY) is loaded from index
54 #define VerifyPixelRange(pixel, mapsize) \
56 img_check(((unsigned int) pixel) <= 255); \
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DDirectColorModel.java33 * class that works with pixel values that represent RGB
35 * samples for a single pixel into a single int, short, or byte quantity.
42 * There must be three color samples in the pixel values and there can
44 * pixel representation of type <code>transferType</code>, the array
51 * the single int pixel representation used by other methods. The
61 * The translation from pixel values to color/alpha components for
70 * of pixel data will be done according to the masks of the
73 * A single int pixel representation is valid for all objects of this
74 * class, since it is always possible to represent pixel values used with
77 * due to an invalid pixel valu
313 getDefaultRGBComponents(int pixel) argument
321 getsRGBComponentFromsRGB(int pixel, int idx) argument
335 getsRGBComponentFromLinearRGB(int pixel, int idx) argument
368 getRed(int pixel) argument
391 getGreen(int pixel) argument
414 getBlue(int pixel) argument
431 getAlpha(int pixel) argument
453 getRGB(int pixel) argument
758 getDataElements(int rgb, Object pixel) argument
926 getComponents(int pixel, int[] components, int offset) argument
977 getComponents(Object pixel, int[] components, int offset) argument
[all...]
H A DComponentColorModel.java32 * A <CODE>ColorModel</CODE> class that works with pixel values that
36 * color samples in the pixel values must be same as the number of
41 * a primitive array pixel representation of type <CODE>transferType</CODE>,
49 * The translation from pixel sample values to color/alpha components for
53 * <code>ComponentColorModel</code>, the pixel sample values
71 * and <CODE>DataBuffer.TYPE_INT</CODE> have pixel sample values which
73 * The number of bits in a color or alpha sample of a pixel value might not
108 * <CODE>DataBuffer.TYPE_DOUBLE</CODE> have pixel sample values which
148 * responsibility of applications to appropriately scale pixel data before
156 * Methods that use a single int pixel representatio
609 getRGBComponent(int pixel, int idx) argument
669 getRed(int pixel) argument
691 getGreen(int pixel) argument
713 getBlue(int pixel) argument
730 getAlpha(int pixel) argument
762 getRGB(int pixel) argument
1185 getDataElements(int rgb, Object pixel) argument
1681 getComponents(int pixel, int[] components, int offset) argument
1741 getComponents(Object pixel, int[] components, int offset) argument
2343 getNormalizedComponents(Object pixel, float[] normComponents, int normOffset) argument
[all...]
/openjdk7/jdk/test/sun/java2d/cmm/ColorConvertOp/
H A DImageFactory.java163 int [] pixel = new int[3];
166 pixel[0] = i;
167 pixel[1] = j;
168 pixel[2] = ((i + j)>>1);
169 sm.setPixel(i, j, pixel, data);
173 int [] pixel = new int[3];
176 pixel[0] = (i<<7);
177 pixel[1] = (j<<7);
178 pixel[2] = ((i + j)<<6);
179 sm.setPixel(i, j, pixel, dat
[all...]
/openjdk7/jdk/src/solaris/native/sun/java2d/loops/
H A Djava2d_Mlib.h165 #define EXTRACT_CONST_1(pixel) \
166 mlib_s32 pixel##0 = pixel
168 #define EXTRACT_CONST_3(pixel) \
169 mlib_s32 pixel##0 = pixel; \
170 mlib_s32 pixel##1 = pixel >> 8; \
171 mlib_s32 pixel##2 = pixel >> 1
[all...]

Completed in 93 milliseconds

123456