/frameworks/base/awt/org/apache/harmony/x/imageio/plugins/png/ |
H A D | PNGImageWriterSpi.java | 65 int numBands = type.getSampleModel().getNumBands(); 69 int bitDepth = colorModel.getPixelSize() / numBands; 75 if (numBands != 1) { 79 else if (numBands == 1) { 84 else if (numBands == 2) { 89 else if (numBands == 3) { 94 else if (numBands == 4) {
|
H A D | PNGImageWriter.java | 148 int numBands = model.getNumBands(); 153 int bitDepth = pixelSize / numBands; 168 // Wrong bitDepth-numBands composition 171 if (numBands != 1) { 172 // Wrong bitDepth-numBands composition 181 else if (numBands == 1) { 183 // Wrong bitDepth-numBands composition 188 else if (numBands == 2) { 190 // Wrong bitDepth-numBands composition 195 else if (numBands [all...] |
/frameworks/base/media/libstagefright/codecs/aacdec/ |
H A D | sbr_update_freq_scale.cpp | 146 Int32 numBands = 0; local 191 numBands = tmp_q1 << 1; 194 CalcBands(d, k[0], k[1], numBands); /* CalcBands => d */ 195 shellsort(d, numBands); /* SortBands sort d */ 198 numBands, 201 *h_num_bands += numBands; /* Output nr of bands */ 215 if (d[numBands-1] > d2[0]) 218 Int32 change = d[numBands-1] - d2[0]; 250 numBands = (usb - lsbM) >> 1; 252 k2_achived = lsbM + numBands; [all...] |
/frameworks/base/awt/java/awt/image/ |
H A D | BandedSampleModel.java | 38 * @param numBands 42 private static int[] createIndices(int numBands) { argument 43 int indices[] = new int[numBands]; 44 for (int i = 0; i < numBands; i++) { 53 * @param numBands 57 private static int[] createOffsets(int numBands) { argument 58 int offsets[] = new int[numBands]; 59 for (int i = 0; i < numBands; i++) { 75 * @param numBands 78 public BandedSampleModel(int dataType, int w, int h, int numBands) { argument [all...] |
H A D | ComponentSampleModel.java | 59 protected int numBands; field in class:ComponentSampleModel 118 this.numBands = bandOffsets.length; 167 this.numBands = bandOffsets.length; 170 this.bankIndices = new int[numBands]; 171 for (int i = 0; i < numBands; i++) { 186 bdata = new byte[numBands]; 191 for (int i = 0; i < numBands; i++) { 202 sdata = new short[numBands]; 207 for (int i = 0; i < numBands; i++) { 217 idata = new int[numBands]; [all...] |
H A D | BandCombineOp.java | 185 int numBands = src.getNumBands(); 186 if (mxWidth != numBands && mxWidth != (numBands + 1) || numBands != mxHeight) { 191 numBands, mxWidth, mxHeight 199 int numBands = src.getNumBands(); 201 if (mxWidth != numBands && mxWidth != (numBands + 1)) { 206 numBands, mxWidth, mxHeight 385 int numBands [all...] |
H A D | SampleModel.java | 53 protected int numBands; field in class:SampleModel 70 * @param numBands 73 public SampleModel(int dataType, int w, int h, int numBands) { argument 91 if (numBands < 1) { 99 this.numBands = numBands; 409 pixel = new int[numBands]; 414 for (int i = 0; i < numBands; i++) { 438 for (int i = 0; i < numBands; i++) { 464 pixel = new float[numBands]; [all...] |
H A D | PixelInterleavedSampleModel.java | 105 for (int i = 1; i < numBands; i++) { 112 newOffsets = new int[numBands]; 113 for (int i = 0; i < numBands; i++) {
|
H A D | SinglePixelPackedSampleModel.java | 109 this.bitOffsets = new int[this.numBands]; 110 this.bitSizes = new int[this.numBands]; 114 for (int i = 0; i < this.numBands; i++) { 227 && this.numBands == model.numBands && this.dataType == model.dataType 236 if (bands.length > this.numBands) { 263 pixel = new int[this.numBands]; 268 for (int i = 0; i < this.numBands; i++) { 281 for (int i = 0; i < this.numBands; i++) { 307 pixels = new int[w * h * this.numBands]; [all...] |
H A D | RescaleOp.java | 232 int numBands = src.getNumBands(); 241 int[] maxValues = new int[numBands]; 242 int[] masks = new int[numBands]; 245 for (int i = 0; i < numBands; i++) { 258 for (int bandIdx = 0; bandIdx < numBands - 1; bandIdx++, i++) { 274 for (int bandIdx = 0; bandIdx < numBands - 1; bandIdx++, i++) { 292 for (int bandIdx = 0; bandIdx < numBands; bandIdx++, i++) { 306 for (int bandIdx = 0; bandIdx < numBands; bandIdx++, i++) { 389 // be numBands*4 395 * @param numBands 406 createLevels(SampleModel sm, int numBands, boolean skipAlpha, int levels[], int values[], int channelsOrder[]) argument [all...] |
H A D | ConvolveOp.java | 207 int numBands = src.getNumBands(); 225 int[] maxValues = new int[numBands]; 226 int[] masks = new int[numBands]; 229 for (int i = 0; i < numBands; i++) { 238 int rowLength = srcWidth * numBands; 249 length = xOrigin * numBands; 250 int length1 = (kWidth - xOrigin - 1) * numBands; 269 int pixelIndex = i * rowLength + j * numBands; 272 int curIndex = rasterHIdx * rowLength + rasterWIdx * numBands; 273 for (int idx = 0; idx < numBands; id [all...] |
H A D | MultiPixelPackedSampleModel.java | 202 && this.numBands == model.numBands && this.dataType == model.dataType 232 pixel = new int[numBands]; 345 hash ^= numBands;
|
H A D | LookupOp.java | 296 int numBands = src.getNumBands(); 308 for (int i = 0; i < pixels.length; i += numBands) { 314 for (int i = 0; i < pixels.length; i += numBands) { 327 for (int i = 0; i < pixels.length; i += numBands) { 333 for (int i = 0; i < pixels.length; i += numBands) {
|
H A D | Raster.java | 63 protected int numBands; field in class:Raster 908 this.numBands = sampleModel.getNumBands(); 1181 return numBands;
|
/frameworks/base/awt/org/apache/harmony/x/imageio/plugins/jpeg/ |
H A D | JPEGImageWriter.java | 130 int numBands = sourceRaster.getNumBands(); 192 DataBufferByte dbuffer = new DataBufferByte(numBands * srcWidth); 195 numBands * srcWidth, numBands, JPEGConsts.BAND_OFFSETS[numBands], null); 198 sourceIJGCs, destIJGCs, numBands, progressive, 298 * @param numBands - number of bands 307 int numBands, boolean progressive,
|