/openjdk7/jdk/src/share/native/sun/awt/image/ |
H A D | awt_ImageRep.c | 38 static int findIdx(unsigned int rgb, unsigned int *lut, int numLut1); 396 unsigned int rgb; local 415 rgb = lut2[i]; 417 if ((rgb & ALPHA_MASK) == 0) { 433 if ((idx = findIdx(rgb, lut1, numLut1)) == -1) { 435 lut1[numLut1] = rgb; 461 static int findIdx(unsigned int rgb, unsigned int *lut, int numLut) { argument 464 if ((rgb&0xff000000)==0) { 471 if (lut[i] == rgb) return i;
|
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_Palette.cpp | 163 COLORREF rgb; local 165 rgb = ::GetNearestColor(hDC, PALETTEINDEX(iEntry)); 166 pPalEntries[iEntry].peRed = GetRValue(rgb); 167 pPalEntries[iEntry].peGreen = GetGValue(rgb); 168 pPalEntries[iEntry].peBlue = GetBValue(rgb);
|
/openjdk7/jdk/src/share/native/sun/java2d/loops/ |
H A D | FourByteAbgr.c | 119 jint PixelForFourByteAbgr(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 121 return ((rgb << 8) | (((juint) rgb) >> 24));
|
H A D | Ushort555Rgbx.c | 95 jint PixelForUshort555Rgbx(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 97 return IntArgbToUshort555Rgbx(rgb);
|
H A D | IntRgbx.c | 118 jint PixelForIntRgbx(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 120 return (rgb << 8);
|
H A D | Ushort555Rgb.c | 124 jint PixelForUshort555Rgb(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 126 return IntArgbToUshort555Rgb(rgb);
|
H A D | Ushort565Rgb.c | 127 jint PixelForUshort565Rgb(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 129 return IntArgbToUshort565Rgb(rgb);
|
H A D | UshortGray.c | 114 jint PixelForUshortGray(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 117 ExtractIntDcmComponentsX123(rgb, r, g, b);
|
H A D | UshortIndexed.c | 115 extern jint PixelForByteIndexed(SurfaceDataRasInfo *pRasInfo, jint rgb); 126 jint PixelForUshortIndexed(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 128 return PixelForByteIndexed(pRasInfo, rgb);
|
H A D | TransformHelper.c | 293 } rgb; local 434 &clipInfo, &itxInfo, rgb.data, pEdges, 487 rgb.data, numpix, 493 (*pInterpFunc)(rgb.data, numpix, 504 (*pMaskBlitPrim->funcs.maskblit)(pDst, rgb.data, 782 int rgb; \ 783 rgb = pRGB[index]; \ 784 accumB += BC_CompToV((rgb >> 0) & 0xff) * factor; \ 785 accumG += BC_CompToV((rgb >> 8) & 0xff) * factor; \ 786 accumR += BC_CompToV((rgb >> 1 [all...] |
H A D | AnyByteBinary.h | 99 #define ByteBinaryPixelFromArgb(TYPE, pixel, rgb, pRasInfo) \ 102 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 113 #define LoadByteBinaryTo1IntRgb(TYPE, pRas, PREFIX, x, rgb) \ 114 (rgb) = PREFIX ## Lut[CurrentPixelByteBinary(TYPE, PREFIX)] 121 jint rgb = PREFIX ## Lut[CurrentPixelByteBinary(TYPE, PREFIX)]; \ 122 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 131 #define StoreByteBinaryFrom1IntRgb(TYPE, pRas, PREFIX, x, rgb) \ 134 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 153 jint PREFIX ## rgb; 160 PREFIX ## rgb [all...] |
H A D | ByteGray.c | 136 jint PixelForByteGray(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 139 ExtractIntDcmComponentsX123(rgb, r, g, b);
|
H A D | ByteIndexed.c | 119 jint PixelForByteIndexed(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 122 ExtractIntDcmComponentsX123(rgb, r, g, b);
|
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/ |
H A D | IIOTests.java | 148 int rgb = (int)(Math.random() * 0xffffff); 150 rgb |= 0x7f000000; 152 image.setRGB(x, y, rgb);
|
/openjdk7/jdk/test/javax/imageio/plugins/shared/ |
H A D | BitDepth.java | 67 int rgb = bi2.getRGB(x, y); 68 if (rgb != 0xffffffff) { 196 int[] rgb = new int[3];
|
/openjdk7/jdk/test/sun/awt/image/ImageRepresentation/ |
H A D | LUTCompareTest.java | 124 int rgb = buf.getRGB(w/2, h/2); 126 System.out.printf("Result color: %x\n", rgb); 132 if (rgb != 0xff0000ff) {
|
/openjdk7/jdk/test/sun/java2d/DirectX/SwingOnScreenScrollingTest/ |
H A D | SwingOnScreenScrollingTest.java | 115 int rgb = bi.getRGB(x, y); 118 x, y, rgb);
|
/openjdk7/jdk/src/share/classes/java/awt/image/ |
H A D | ComponentColorModel.java | 646 float[] rgb = colorSpace.toRGB(norm); 648 return (int) (rgb[idx] * 255.0f + 0.5f); 909 float[] rgb = colorSpace.toRGB(norm); 910 return (int) (rgb[idx] * 255.0f + 0.5f); 1144 float[] rgb = colorSpace.toRGB(norm); 1146 | (((int) (rgb[0] * 255.0f + 0.5f)) << 16) 1147 | (((int) (rgb[1] * 255.0f + 0.5f)) << 8) 1148 | (((int) (rgb[2] * 255.0f + 0.5f)) << 0); 1165 * @param rgb the integer representation of the pixel in the RGB 1185 public Object getDataElements(int rgb, Objec argument [all...] |
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/ |
H A D | BufferedPaints.java | 329 int rgb = c.getRGB(); 330 if (!linear && ((rgb >> 24) == -1)) { 331 return rgb; 333 int a = rgb >>> 24; 334 int r = (rgb >> 16) & 0xff; 335 int g = (rgb >> 8) & 0xff; 336 int b = (rgb ) & 0xff;
|
/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WPrinterJob.java | 958 float[] rgb = color.getRGBColorComponents(null); 961 (int) (rgb[0] * MAX_WCOLOR), 962 (int) (rgb[1] * MAX_WCOLOR), 963 (int) (rgb[2] * MAX_WCOLOR)); 1001 float[] rgb = color.getRGBColorComponents(null); 1004 (int) (rgb[0] * MAX_WCOLOR), 1005 (int) (rgb[1] * MAX_WCOLOR), 1006 (int) (rgb[2] * MAX_WCOLOR)); 1012 float[] rgb = color.getRGBColorComponents(null); 1015 (int) (rgb[ [all...] |
/openjdk7/jdk/test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/ |
H A D | SourceClippingBlitTest.java | 229 int rgb = 0; 231 rgb = Color.red.getRGB(); 233 rgb = Color.green.getRGB(); 235 if (grabbedBI.getRGB(x, y) != rgb) { 238 System.out.println(" expected: "+Integer.toHexString(rgb)+
|
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/ |
H A D | XRPaints.java | 298 int rgb = c.getRGB(); 300 int a = rgb >>> 24; 301 int r = (rgb >> 16) & 0xff; 302 int g = (rgb >> 8) & 0xff; 303 int b = (rgb) & 0xff;
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/ |
H A D | GTKColorChooserPanel.java | 386 * Resets the rgb values. 388 private void setRGB(int rgb) { argument 389 Color color = new Color(rgb); 868 int rgb = colorWheelLocationToRGB(x, y, rad) | 870 image.setRGB(x + size, y + size, rgb); 1163 int rgb; 1168 rgb = 0xFF0000 | Math.min(255, 1173 rgb = 0xFF0000 | Math.min(255, 1181 rgb = 0x00FF00 | Math.max(0, 255 - 1186 rgb [all...] |
/openjdk7/jdk/src/share/classes/java/awt/ |
H A D | MultipleGradientPaintContext.java | 490 private int convertEntireColorLinearRGBtoSRGB(int rgb) { argument 495 a1 = (rgb >> 24) & 0xff; 496 r1 = (rgb >> 16) & 0xff; 497 g1 = (rgb >> 8) & 0xff; 498 b1 = (rgb ) & 0xff;
|
/openjdk7/jdk/src/share/native/sun/java2d/cmm/lcms/ |
H A D | lcms2_internal.h | 124 #define FROM_8_TO_16(rgb) (cmsUInt16Number) ((((cmsUInt16Number) (rgb)) << 8)|(rgb)) 125 #define FROM_16_TO_8(rgb) (cmsUInt8Number) ((((rgb) * 65281 + 8388608) >> 24) & 0xFF)
|