/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/png/ |
H A D | PNGImageWriterSpi.java | 96 int numBands = sampleModel.getNumBands(); 97 if (numBands < 1 || numBands > 4) { 104 // numBands == 1 && hasAlpha == true, thus causing 109 if ((numBands == 1 || numBands == 3) && hasAlpha) { 112 if ((numBands == 2 || numBands == 4) && !hasAlpha) {
|
H A D | PNGImageWriter.java | 293 int numBands; field in class:PNGImageWriter 785 xOffset *= numBands; 786 xSkip *= numBands; 790 int numSamples = width*numBands; 793 int bytesPerRow = hpixels*numBands; 874 if (numBands == 1) { 884 for (int b = 0; b < numBands; b++) { 893 for (int b = 0; b < numBands; b++) { 988 scale = new byte[numBands][]; 989 for (int b = 0; b < numBands; [all...] |
/openjdk7/jdk/src/share/classes/java/awt/image/ |
H A D | PixelInterleavedSampleModel.java | 128 int numBands = bandOffsets.length; 129 for (int i=1; i < numBands; i++) { 136 bandOff = new int[numBands]; 137 for (int i=0; i < numBands; i++) {
|
H A D | LookupOp.java | 127 int numBands = srcCM.getNumColorComponents(); 188 if (numBands-1 == numComponents || numComponents == 1) { 191 int[] bands = new int[numBands-1]; 192 for (int i=0; i < numBands-1; i++) { 208 int[] bands = new int[numBands-1]; 209 for (int i=0; i < numBands-1; i++) { 254 int numBands = src.getNumBands(); 258 int srcPix[] = new int[numBands]; 272 if (numBands != dstLength) { 275 + numBands 475 byteFilter(ByteLookupTable lookup, Raster src, WritableRaster dst, int width, int height, int numBands) argument 522 shortFilter(ShortLookupTable lookup, Raster src, WritableRaster dst, int width, int height, int numBands) argument [all...] |
H A D | RescaleOp.java | 329 int numBands = srcCM.getNumColorComponents(); 337 if (length != 1 && length != numBands && 349 if (length > numBands && srcCM.hasAlpha()) { 350 length = numBands+1; 396 if (numBands-1 == length || length == 1) { 399 int[] bands = new int[numBands-1]; 400 for (int i=0; i < numBands-1; i++) { 416 int[] bands = new int[numBands-1]; 417 for (int i=0; i < numBands-1; i++) { 464 int numBands [all...] |
H A D | BandedSampleModel.java | 80 * @param numBands The number of bands for the image data. 84 public BandedSampleModel(int dataType, int w, int h, int numBands) { argument 86 BandedSampleModel.createIndicesArray(numBands), 87 BandedSampleModel.createOffsetArray(numBands)); 384 pixels = new int [numBands]; 388 for (int i=0; i<numBands; i++) { 425 pixels = new int[w*h*numBands]; 428 for (int k = 0; k < numBands; k++) { 437 srcOffset += numBands; 677 for (int i=0; i<numBands; 829 createOffsetArray(int numBands) argument 837 createIndicesArray(int numBands) argument [all...] |
H A D | SinglePixelPackedSampleModel.java | 155 this.bitOffsets = new int[numBands]; 156 this.bitSizes = new int[numBands]; 161 for (int i=0; i<numBands; i++) { 310 if (bands.length > numBands) 312 numBands + 436 pixels = new int [numBands]; 442 for (int i=0; i<numBands; i++) { 477 pixels = new int [w*h*numBands]; 485 for (int k=0; k < numBands; k++) { 645 for (int i=0; i < numBands; [all...] |
H A D | ComponentSampleModel.java | 88 protected int numBands = 1; field in class:ComponentSampleModel 133 * @throws IllegalArgumentException if <code>numBands</code> 151 numBands = this.bandOffsets.length; 159 if (numBands < 1) { 166 bankIndices = new int[numBands]; 167 for (int i=0; i<numBands; i++) { 242 numBands = this.bandOffsets.length; 478 int sampleSize[] = new int [numBands]; 481 for (int i=0; i<numBands; i++) 716 pixels = new int [numBands]; [all...] |
H A D | SampleModel.java | 95 protected int numBands; field in class:SampleModel 113 * @param numBands The number of bands of the image data. 122 public SampleModel(int dataType, int w, int h, int numBands) argument 142 if (numBands <= 0) { 149 this.numBands = numBands; 173 return numBands; 244 pixels = new int[numBands]; 246 for (int i=0; i<numBands; i++) { 709 pixels = new float[numBands]; [all...] |
H A D | BufferedImage.java | 646 int numBands = raster.getNumBands(); 664 ((ComponentSampleModel)sm).getPixelStride() != numBands) { 684 (numBands == 3 || numBands == 4)) { 723 else if ((cm instanceof IndexColorModel) && (numBands == 1) && 739 } // else if (cm instanceof IndexColorModel) && (numBands == 1)) 743 && (numBands == 3) 759 } // else if ((cm instanceof IndexColorModel) && (numBands == 1)) 764 && (numBands == 3 || numBands [all...] |
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/bmp/ |
H A D | BMPImageWriterSpi.java | 88 int numBands = sm.getNumBands(); 89 if (!(numBands == 1 || numBands == 3)) 92 if (numBands == 1 && dataType != DataBuffer.TYPE_BYTE)
|
H A D | BMPImageWriter.java | 249 int numBands = sampleModel.getNumBands(); 255 numBands = sampleModel.getNumBands(); 257 sourceBands = new int[numBands]; 258 for (int i = 0; i < numBands; i++) 295 bandOffsets = new int[numBands]; 296 for (int i = 0; i < numBands; i++) 307 int destScanlineBytes = w * numBands; 435 if (numBands == 1) { 563 int scanlineBytes = w * numBands; 718 if (scaleX != 1 || maxBandOffset != numBands 762 writePixels(int l, int scanlineBytes, int bitsPerPixel, int pixels[], int padding, int numBands, IndexColorModel icm) argument [all...] |
/openjdk7/jdk/test/java/awt/image/ |
H A D | GetSamplesTest.java | 47 public static int numBands = 4; field in class:GetSamplesTest 68 int[] iArray = new int[ width * height + numBands]; 69 float[] fArray = new float[ width * height + numBands]; 70 double[] dArray = new double[ width * height + numBands]; 116 res = new BandedSampleModel(dataType, width, height, numBands);
|
H A D | GetDataElementsTest.java | 42 public static int numBands = 4; field in class:GetDataElementsTest
|
/openjdk7/jdk/src/share/classes/javax/imageio/ |
H A D | ImageReadParam.java | 285 int numBands = destinationBands.length; 286 for (int i = 0; i < numBands; i++) { 291 for (int j = i + 1; j < numBands; j++) {
|
H A D | IIOParam.java | 427 int numBands = sourceBands.length; 428 for (int i = 0; i < numBands; i++) { 433 for (int j = i + 1; j < numBands; j++) {
|
H A D | ImageTypeSpecifier.java | 241 int numBands, 248 int[] numBits = new int[numBands]; 251 for (int i = 0; i < numBands; i++) { 283 int numBands = colorSpace.getNumComponents() + 285 if (bandOffsets.length != numBands) { 444 int numBands = colorSpace.getNumComponents() + 446 if (bandOffsets.length != numBands) { 612 int numBands = hasAlpha ? 2 : 1; 617 int[] nBits = new int[numBands]; 619 if (numBands 240 createComponentCM(ColorSpace colorSpace, int numBands, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) argument [all...] |
/openjdk7/jdk/src/share/native/sun/java2d/opengl/ |
H A D | OGLBufImgOps.h | 43 jint numBands, jint bandLength, jint offset,
|
H A D | OGLBufImgOps.c | 623 jint numBands, jint bandLength, jint offset, 637 shortData, numBands, bandLength, offset); 648 if (numBands != 4) { 697 if (numBands == 1) { 703 } else if (numBands == 3) { 709 } else if (numBands == 4) { 621 OGLBufImgOps_EnableLookupOp(OGLContext *oglc, jlong pSrcOps, jboolean nonPremult, jboolean shortData, jint numBands, jint bandLength, jint offset, void *tableValues) argument
|
/openjdk7/jdk/src/share/native/sun/awt/image/ |
H A D | awt_parseImage.c | 196 rasterP->numBands = (*env)->GetIntField(env, jraster, 217 if (rasterP->numBands <= 0 || 218 rasterP->numBands > MAX_NUMBANDS) 251 rasterP->numBands, rasterP->sppsm.maskArray); 253 rasterP->numBands, rasterP->sppsm.offsets); 255 rasterP->numBands, rasterP->sppsm.nBits); 606 if (cmodelP->numComponents != rasterP->numBands) { 753 rasterP->numBands != cmodelP->numComponents) 766 for (i=0; i < rasterP->numBands; i++) { 821 int numBands local 915 int numBands = rasterP->numBands; local 1003 int numBands = rasterP->numBands; local 1089 int numBands = rasterP->numBands; local [all...] |
/openjdk7/jdk/src/windows/native/sun/java2d/d3d/ |
H A D | D3DBufImgOps.h | 74 jint numBands, jint bandLength, jint offset,
|
H A D | D3DBufImgOps.cpp | 191 jint numBands, jint bandLength, jint offset, 206 shortData, numBands, bandLength, offset); 214 if (numBands != 4) { 237 if (numBands == 1) { 243 } else if (numBands == 3) { 249 } else if (numBands == 4) { 189 D3DBufImgOps_EnableLookupOp(D3DContext *d3dc, jboolean nonPremult, jboolean shortData, jint numBands, jint bandLength, jint offset, void *tableValues) argument
|
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/ |
H A D | ImageUtil.java | 171 int numBands = sampleModel.getNumBands(); 175 if(numBands <= 2) { 177 } else if(numBands <= 4) { 180 colorSpace = new BogusColorSpace(numBands); 183 boolean hasAlpha = (numBands == 2) || (numBands == 4); 205 int numBands = bitMasks.length; 206 if (numBands <= 2) { 208 if (numBands == 2) { 215 if (numBands [all...] |
/openjdk7/jdk/src/share/native/sun/awt/medialib/ |
H A D | awt_ImagingLib.c | 1556 src_nbands = srcRasterP->numBands; 1557 dst_nbands = dstRasterP->numBands; 2313 if (rasterP->numBands <= 0 || rasterP->numBands > 4) { 2387 if (!(SAFE_TO_ALLOC_2(width, rasterP->numBands) && 2396 width * rasterP->numBands > rasterP->scanlineStride || 2407 *mlibImagePP = (*sMlibSysFns.createStructFP)(MLIB_BYTE, rasterP->numBands, 2415 SAFE_TO_ALLOC_3(width, rasterP->numBands, 2) && 2424 width * rasterP->numBands > rasterP->scanlineStride || 2436 rasterP->numBands, 3010 int numBands = rasterP->numBands - (forceAlpha ? 0 : 1); local 3198 int numBands = rasterP->numBands - (forceAlpha ? 0 : 1); local 3392 int numBands = rasterP->numBands - (forceAlpha ? 0 : 1); local [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/image/ |
H A D | ByteInterleavedRaster.java | 134 int numBands = sampleModel.getNumBands(); 135 if (numBands == 1) { 141 for (int i = 0; i < numBands; i++) { 151 for (int i = 1; i < numBands; i++) { 966 pixels = new int[w*h*numBands]; 977 for (int k = 0; k < numBands; k++) { 988 if (numBands == 1) { 997 } else if (numBands == 2) { 1008 } else if (numBands == 3) { 1021 } else if (numBands [all...] |