Searched refs:samplesPerPixel (Results 1 - 12 of 12) sorted by relevance

/openjdk9/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/
H A DTIFFLZWCompressor.java55 int samplesPerPixel = bitsPerSample.length;
57 for (int i = 0; i < samplesPerPixel; i++) {
76 for(int j = bytesPerRow - 1; j >= samplesPerPixel; j--) {
77 rowBuf[j] -= rowBuf[j - samplesPerPixel];
H A DTIFFDeflater.java75 int samplesPerPixel = bitsPerSample.length;
77 for (int i = 0; i < samplesPerPixel; i++) {
88 for(int j = bytesPerRow - 1; j >= samplesPerPixel; j--) {
89 rowBuf[j] -= rowBuf[j - samplesPerPixel];
H A DTIFFLZWUtil.java53 public byte[] decode(byte[] data, int predictor, int samplesPerPixel, argument
104 count = samplesPerPixel * (j * width + 1);
106 for (int i = samplesPerPixel; i < width * samplesPerPixel; i++) {
108 dstData[count] += dstData[count - samplesPerPixel];
H A DTIFFOldJPEGDecompressor.java386 short sval = (short)(8 + 3*samplesPerPixel); // Length
396 baos.write((byte)samplesPerPixel); // Number of components
397 if(samplesPerPixel == 1) {
455 new byte[tables.length + 10 + 3*samplesPerPixel];
463 short sval = (short)(8 + 3*samplesPerPixel); // Length
473 tables[tmpOffset++] = (byte)samplesPerPixel; // Number of components
474 if(samplesPerPixel == 1) {
511 SOSMarker = new byte[2 + 6 + 2*samplesPerPixel];
515 short sval = (short)(6 + 2*samplesPerPixel); // Length
519 SOSMarker[SOSMarkerIndex++] = (byte)samplesPerPixel;
[all...]
H A DTIFFDeflateDecompressor.java104 int step = planar || samplesPerPixel == 1 ? 1 : samplesPerPixel;
H A DTIFFDecompressor.java166 protected int samplesPerPixel; field in class:TIFFDecompressor
725 * @param samplesPerPixel the value of the
738 int samplesPerPixel,
765 if (samplesPerPixel == 1 &&
829 if (samplesPerPixel == 2 &&
846 if (samplesPerPixel == 2 &&
869 if (samplesPerPixel == 3 &&
898 if (samplesPerPixel == 4 &&
935 if (samplesPerPixel == 3 &&
955 if (samplesPerPixel
736 getRawImageTypeSpecifier(int photometricInterpretation, int compression, int samplesPerPixel, int[] bitsPerSample, int[] sampleFormat, int[] extraSamples, char[] colorMap) argument
1339 setSamplesPerPixel(int samplesPerPixel) argument
[all...]
H A DTIFFImageReader.java111 private int samplesPerPixel; field in class:TIFFImageReader
460 for (int i = 1; i < samplesPerPixel; i++) {
506 * samplesPerPixel
553 samplesPerPixel = f.getAsInt(0);
555 samplesPerPixel = 1;
579 this.samplesPerPixel =
594 if (samplesPerPixel < 1) {
596 } else if (samplesPerPixel > SAMPLES_PER_PIXEL_MAX) {
598 ("Samples per pixel (" + samplesPerPixel
604 numBands = samplesPerPixel;
[all...]
H A DTIFFLZWDecompressor.java182 int step = planar || samplesPerPixel == 1 ? 1 : samplesPerPixel;
H A DTIFFYCbCrDecompressor.java133 public void setSamplesPerPixel(int samplesPerPixel) { argument
135 decompressor.setSamplesPerPixel(samplesPerPixel);
137 super.setSamplesPerPixel(samplesPerPixel);
H A DTIFFIFD.java483 int samplesPerPixel =
485 if (samplesPerPixel < 0) {
486 samplesPerPixel = 1;
488 bitsPerSample = new int[samplesPerPixel];
H A DTIFFImageMetadata.java828 int samplesPerPixel = isPaletteColor ?
830 f = new TIFFField(tag, samplesPerPixel);
/openjdk9/jdk/src/java.desktop/share/classes/sun/awt/image/
H A DPNGImageDecoder.java331 int samplesPerPixel = ((colorType&PALETTE)!=0 ? 1
333 int bitsPerPixel = samplesPerPixel*bitDepth;

Completed in 176 milliseconds