/frameworks/base/awt/java/awt/image/ |
H A D | ImageConsumer.java | 36 * The Constant RANDOMPIXELORDER indicates that the pixels are delivered in 42 * The Constant TOPDOWNLEFTRIGHT indicates that the pixels are delivered in 48 * The Constant COMPLETESCANLINES indicates that the pixels are delivered in 54 * The Constant SINGLEPASS indicates that pixels are delivered in a single 104 * Sets the pixels for the specified rectangular area of the image. 115 * the specified ColorModel to be used for pixels converting. 116 * @param pixels 117 * the array of pixels. 119 * the offset of pixels array. 121 * the distance from the one row of pixels t 124 setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) argument 148 setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) argument [all...] |
H A D | AreaAveragingScaleFilter.java | 113 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument 116 super.setPixels(x, y, w, h, model, pixels, off, scansize); 118 setFilteredPixels(x, y, w, h, model, pixels, off, scansize); 123 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument 126 super.setPixels(x, y, w, h, model, pixels, off, scansize); 128 setFilteredPixels(x, y, w, h, model, pixels, off, scansize); 143 * the area which source pixels will occupy in destination image. Then that 145 * image) for receiving average values of destination pixels. 148 * the source pixels X coordinate. 150 * the source pixels 164 setFilteredPixels(int x, int y, int w, int h, ColorModel model, Object pixels, int off, int scansize) argument [all...] |
H A D | RGBImageFilter.java | 25 * The RGBImageFilter class represents a filter which modifies pixels of an 117 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument 121 consumer.setPixels(x, y, w, h, newmodel, pixels, off, scansize); 127 rgbPixels[idx] = model.getRGB(pixels[pixelsOff + idx]); 135 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument 139 consumer.setPixels(x, y, w, h, newmodel, pixels, off, scansize); 145 rgbPixels[idx] = model.getRGB(pixels[pixelsOff + idx] & 0xff); 153 * Filters a region of pixels in the default RGB ColorModel by calling the 164 * @param pixels 165 * the pixels arra 171 filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) argument [all...] |
H A D | RescaleOp.java | 251 float[] pixels = null; 252 pixels = src.getPixels(srcMinX, srcMinY, srcWidth, srcHeight, pixels); 254 // Cycle over pixels to be calculated 257 for (int i = 0; i < pixels.length;) { 259 pixels[i] = pixels[i] * scaleFactors[bandIdx] + offsets[bandIdx]; 261 if (((int)pixels[i] & masks[bandIdx]) != 0) { 262 if (pixels[i] < 0) { 263 pixels[ [all...] |
H A D | ImageFilter.java | 112 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument 114 consumer.setPixels(x, y, w, h, model, pixels, off, scansize); 117 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument 119 consumer.setPixels(x, y, w, h, model, pixels, off, scansize);
|
H A D | BufferedImageFilter.java | 119 // Stop image consuming if no pixels expected. 136 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument 138 setPixels(x, y, w, h, model, pixels, off, scansize, true); 142 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument 144 setPixels(x, y, w, h, model, pixels, off, scansize, false); 179 * Sets the pixels. 191 * @param pixels 192 * the pixels. 200 private void setPixels(int x, int y, int w, int h, ColorModel model, Object pixels, int off, argument 203 // Need to copy only the pixels tha [all...] |
H A D | LookupOp.java | 300 int[] pixels = null; 305 pixels = src.getPixels(minSrcX, minSrcY, srcWidth, srcHeight, pixels); 308 for (int i = 0; i < pixels.length; i += numBands) { 310 pixels[i + b] = byteData[b][pixels[i + b] - offset] & 0xFF; 314 for (int i = 0; i < pixels.length; i += numBands) { 316 pixels[i + b] = byteData[0][pixels[i + b] - offset] & 0xFF; 321 dst.setPixels(minDstX, minDstY, srcWidth, srcHeight, pixels); [all...] |
H A D | PixelGrabber.java | 93 ColorModel model, byte[] pixels, int srcOff, int srcScan) { 146 System.arraycopy(pixels, srcOff, bData, realOff, srcW); 156 iData[realOff + x] = cm.getRGB(pixels[srcOff + x] & 0xff); 167 ColorModel model, int[] pixels, int srcOff, int srcScan) { 219 System.arraycopy(pixels, srcOff, iData, realOff, srcW); 231 iData[realOff+x] = cm.getRGB(pixels[srcOff+x] & mask); 360 int pixels[], int off, int scansize, boolean forceRGB){ 367 iData = pixels; 368 dataType = (pixels == null) ? DATA_TYPE_UNDEFINED : DATA_TYPE_INT; 378 * Force pixels t 92 setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOff, int srcScan) argument 166 setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, int[] pixels, int srcOff, int srcScan) argument 359 initialize(ImageProducer ip, int x, int y, int w, int h, int pixels[], int off, int scansize, boolean forceRGB) argument [all...] |
H A D | CropImageFilter.java | 84 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument 134 consumer.setPixels(destX, destY, destWidth, destHeight, model, pixels, newOffset, scansize); 138 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument 188 consumer.setPixels(destX, destY, destWidth, destHeight, model, pixels, newOffset, scansize);
|
H A D | ReplicateScaleFilter.java | 30 * columns of pixels to scale up or omitting rows and columns of pixels to scale 116 // setPixels methods produce pixels according to Java API Spacification 119 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument 144 buff[dx] = pixels[srcOff + (sx - x)]; 154 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument 179 buff[dx] = pixels[srcOff + (sx - x)];
|
H A D | SampleModel.java | 31 * image data of such pixels representing red, green and blue components. 123 * Gets the array of pixel data for the specified rectangular area of pixels 142 * pixels of the specified DataBuffer object. 278 * Sets the data elements for a rectangular area of pixels in the specified 604 * Gets the samples of the specified rectangular area of pixels as an 608 * the X coordinate of the rectangle of pixels. 610 * the Y coordinate of the rectangle of pixels. 612 * the width of the rectangle of pixels. 614 * the height of the rectangle of pixels. 620 * area of pixels [all...] |
H A D | ConvolveOp.java | 44 * The Constant EDGE_ZERO_FILL indicates that pixels at the edge of the 50 * The Constant EDGE_NO_OP indicates that pixels at the edge of the source 51 * image are converted to the edge pixels in the destination without 235 float[] pixels = null; 236 pixels = src.getPixels(srcMinX, srcMinY, srcWidth, srcHeight, pixels); 237 float[] newPixels = new float[pixels.length]; 243 System.arraycopy(pixels, start, newPixels, start, length); 247 System.arraycopy(pixels, start, newPixels, start, length); 254 System.arraycopy(pixels, star [all...] |
H A D | IndexColorModel.java | 32 * of the pixels are read from a palette. 569 int pixels[] = null; 575 if (pixels == null) { 576 pixels = new int[ba.length]; 579 pixels[j] = colorMap[ba[j] & 0xff]; 583 if (pixels == null) { 584 pixels = new int[sa.length]; 587 pixels[j] = colorMap[sa[j] & 0xffff]; 592 if (pixels == null) { 593 pixels [all...] |
H A D | MemoryImageSource.java | 30 * The MemoryImageSource class is used to produces pixels of an image from an 112 * the width of the rectangular area of pixels. 114 * the height of the rectangular area of pixels. 136 * the width of the rectangular area of pixels. 138 * the height of the rectangular area of pixels. 161 * the width of the rectangular area of pixels. 163 * the height of the rectangular area of pixels. 182 * the width of the rectangular area of pixels. 184 * the height of the rectangular area of pixels. 203 * the width of the rectangular area of pixels 509 init(int width, int height, ColorModel model, byte pixels[], int off, int scan, Hashtable<?, ?> prop) argument 542 init(int width, int height, ColorModel model, int pixels[], int off, int scan, Hashtable<?, ?> prop) argument [all...] |
H A D | SinglePixelPackedSampleModel.java | 304 int pixels[]; 307 pixels = new int[w * h * this.numBands]; 309 pixels = iArray; 317 pixels[idx++] = getSample(j, i, n, data); 321 return pixels;
|
/frameworks/base/camera/libcameraservice/ |
H A D | FakeCamera.cpp | 106 * G = (pixels >> 3) & 0xFC; 107 * R = (pixels >> 8) & 0xF8; 108 * B = (pixels & 0x1f) << 3; 110 * R2 = (pixels >> 11) R = R2*8 111 * B2 = (pixels & 0x1f) B = B2*8 218 uint16_t pixels; local 236 pixels = inputRGB[i]; 237 temp = (ALPHA*(pixels & 0x001F) + BETA*(pixels>>11) ); 238 y0 = y_tab[(temp>>SHIFT1) + ((pixels>> [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/ |
H A D | IconLoader.java | 242 int[] pixels = new int[numOfPixels]; 253 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01); 259 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); 299 int[] pixels = new int[numOfPixels]; 316 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], 321 return Bitmap.createBitmap(pixels, width, height,
|
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/graphics/ |
H A D | BitmapTest.java | 87 int[] pixels = new int[100]; 88 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 91 assertEquals("getPixels", p, pixels[i]); 112 int[] pixels = new int[100]; 113 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 116 assertEquals("getPixels", p, pixels[i]);
|
/frameworks/base/awt/org/apache/harmony/awt/gl/image/ |
H A D | OffscreenImage.java | 163 * pixels are sending in DirectColorModel. 166 int[] pixels, int off, int scansize) { 195 System.arraycopy(pixels, lineOff, data, rof, w); 208 buff[idx] = model.getRGB(pixels[sOff + idx]); 216 int rgb = model.getRGB(pixels[sOff + idx]); 231 byte[] pixels, int off, int scansize) { 264 buff[idx] = colorMap[pixels[sOff + idx] & 0xff]; 273 buff[idx] = model.getRGB(pixels[sOff + idx] & 0xff); 287 System.arraycopy(pixels, lineOff, data, rof, w); 296 System.arraycopy(pixels, sOf 165 setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) argument 230 setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) argument [all...] |
H A D | BufferedImageSource.java | 118 int pixels[] = new int[width]; 123 pixels[x] = cm.getRGB(pix); 125 ic.setPixels(0, y, width, 1, rgbCM, pixels, 0, width);
|
/frameworks/base/libs/surfaceflinger/ |
H A D | LayerBlur.cpp | 151 // allocate enough memory for 4-bytes (2 pixels) aligned data 153 uint16_t* const pixels = (uint16_t*)malloc(s*h*2); local 158 glReadPixels(X, Y, w, h, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, pixels); 167 bl.data = (GGLubyte*)pixels; 173 GL_RGB, GL_UNSIGNED_SHORT_5_6_5, pixels); 175 free((void*)pixels);
|
/frameworks/base/awt/com/android/internal/awt/ |
H A D | AndroidJavaBlitter.java | 144 int[] pixels = data.getData(); 147 for (int i = 0; i < pixels.length; i++) { 148 pixels[i] = pixels[i] | 0xff000000; 151 bmap = Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); 344 int[] pixels = data.getData(); 347 for (int i = 0; i < pixels.length; i++) { 348 pixels[i] = pixels[i] | 0xff000000; 351 bmap = Bitmap.createBitmap(pixels, widt [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 148 * Free up the memory associated with this bitmap's pixels, and mark the 166 * to try to access its pixels, and the bitmap will not draw. 236 * Copy the bitmap's pixels into the specified buffer (allocated by the 238 * hold all of the pixels (taking into account the number of bytes per 259 throw new RuntimeException("Buffer not large enough for pixels"); 271 * Copy the pixels from the buffer, beginning at the current position, 272 * overwriting the bitmap's pixels. The data in the buffer is not changed 295 throw new RuntimeException("Buffer not large enough for pixels"); 304 * this bitmap's pixels into the new bitmap. If the conversion is not 310 * its pixels ca 742 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 781 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument 851 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 996 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | IccUtils.java | 353 int[] pixels = new int[numOfPixels]; 364 pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01); 370 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
|
/frameworks/base/opengl/libagl/ |
H A D | texture.cpp | 380 uint8_t const* pixels = (uint8_t *)data + paletteSize; local 384 pixels += h * ((w * indexBits) / 8); 395 int index = 2 * (*pixels++); 401 int v = *pixels++; 419 int index = 3 * (*pixels++); 426 int v = *pixels++; 446 int index = 4 * (*pixels++); 454 int v = *pixels++; 1016 GLenum format, GLenum type, const GLvoid *pixels) 1044 } else if (pixels [all...] |