/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/ |
H A D | Throughput.java | 30 public Throughput(int totalFrames, int periodFrames, int periodTime, int pixels) { argument 34 mPixels = pixels;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilter.java | 70 byte[] pixels = buffer.array(); 74 drawBoxes(pixels, faces, dims); 82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) { argument 114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + 116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + 118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + 124 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + 126 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + 128 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + 136 pixels[ImageConstant [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilterTest.java | 79 int[] pixels = new int[bitmap.getByteCount()]; 80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + 120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + 126 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + 128 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + 130 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + 138 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + 140 pixels[ImageConstant [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GLToolbox.java | 70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { argument 72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { argument 78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 114 public static void setTexturePixels(int texId, int target, ByteBuffer pixels, argument 118 // For some devices, "pixels" being null causes system error. 119 if (pixels == null) { 120 pixels = ByteBuffer.allocateDirect(width * height * 4); 123 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels);
|
H A D | TextureSource.java | 69 public void allocateWithPixels(ByteBuffer pixels, int width, int height) { argument 70 //Log.i("TextureSource", "Uploading pixels to texture " + mTexId + ": " + width + "x" + height + "."); 71 GLToolbox.setTexturePixels(mTexId, mTarget, pixels, width, height); 76 //Log.i("TextureSource", "Uploading pixels to texture " + mTexId + "!");
|
H A D | BackingStore.java | 605 ByteBuffer pixels = (ByteBuffer) backing.lock(ACCESS_BYTES); 606 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]); 627 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); 628 allocation.copyTo(pixels.array()); 629 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]); 846 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); 847 GLToolbox.readTarget(target, pixels, mDimensions[0], mDimensions[1]); 848 mAllocation.copyFrom(pixels.array());
|
H A D | RenderTarget.java | 265 public void readPixelData(ByteBuffer pixels, int width, int height) { argument 266 GLToolbox.readTarget(this, pixels, width, height); 270 ByteBuffer pixels = ByteBuffer.allocateDirect(width * height * 4); 271 GLToolbox.readTarget(this, pixels, width, height); 272 return pixels;
|
/frameworks/webview/chromium/plat_support/ |
H A D | graphics_utils.cpp | 73 UniquePtr<PixelInfo> pixels(new PixelInfo(canvas)); 74 return pixels->state ? pixels.release() : NULL; 77 void ReleasePixels(AwPixelInfo* pixels) { argument 78 delete static_cast<PixelInfo*>(pixels);
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.h | 66 // Copies the pixels from another GL frame to this frame. 141 // Copies pixels from texture or FBO to the specified buffer. 144 // Reads the pixels from the internal texture to the given buffer. 145 bool ReadTexturePixels(uint8_t* pixels) const; 147 // Reads the pixels from the internal FBO to the given buffer. 148 bool ReadFboPixels(uint8_t* pixels) const; 150 // Writes the specified pixels to the internal texture. 151 bool UploadTexturePixels(const uint8_t* pixels);
|
H A D | gl_frame.cpp | 347 bool GLFrame::ReadFboPixels(uint8_t* pixels) const { 356 pixels); 362 bool GLFrame::ReadTexturePixels(uint8_t* pixels) const { 363 // Read pixels from texture if we do not have an FBO 388 return target.ReadFboPixels(pixels); 448 bool GLFrame::UploadTexturePixels(const uint8_t* pixels) { argument 454 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapTest.java | 89 int[] pixels = new int[100]; 90 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 93 assertEquals("getPixels", p, pixels[i]); 114 int[] pixels = new int[100]; 115 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 118 assertEquals("getPixels", p, pixels[i]);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | IconLoader.java | 240 int[] pixels = new int[numOfPixels]; 251 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01); 257 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); 297 int[] pixels = new int[numOfPixels]; 314 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], 319 return Bitmap.createBitmap(pixels, width, height,
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 201 // Read the frame pixels 202 uint8_t* pixels = new uint8_t[frame->Size()]; local 203 frame->CopyDataTo(pixels, frame->Size()); 206 ConvertRGBAToFloats(pixels, frame->Size(), float_array); 209 delete[] pixels; 222 uint8_t* pixels; local 223 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); 225 const bool success = frame->WriteData(pixels, size); 238 uint8_t* pixels; local 239 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); [all...] |
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 245 uint8_t pixels[rowBytes * texture->height]; local 269 uint8_t* dst = pixels; 286 memcpy(pixels + rowBytes, pixels, rowBytes); 295 GL_RGBA, GL_FLOAT, pixels); 298 GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 46 uint32_t* pixels; member in union:Buffer::__anon1197 51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4); 56 uint32_t* bits = buf->pixels + y * buf->s; 78 uint32_t* bits = buf->pixels + y * buf->s + x; 97 uint32_t* bits = buf->pixels + y * buf->s + x;
|
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 170 ScreenshotPixelRef* pixels = new ScreenshotPixelRef(NULL); local 171 if (pixels->update(displayToken, width, height, 173 delete pixels; 177 uint32_t w = pixels->getWidth(); 178 uint32_t h = pixels->getHeight(); 179 uint32_t s = pixels->getStride(); 180 uint32_t f = pixels->getFormat(); 190 bitmap->setPixelRef(pixels)->unref(); 194 delete pixels;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 320 * to try to access its pixels, and the bitmap will not draw. 381 * how pixels are stored. This affects the quality (color depth) as 460 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the 462 * hold all of the pixels (taking into account the number of bytes per 466 * that if this bitmap stores its pixels pre-multiplied 490 throw new RuntimeException("Buffer not large enough for pixels"); 502 * <p>Copy the pixels from the buffer, beginning at the current position, 503 * overwriting the bitmap's pixels. The data in the buffer is not changed 530 throw new RuntimeException("Buffer not large enough for pixels"); 544 * this bitmap's pixels int 1309 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1349 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument 1423 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1587 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height, boolean isPremultiplied) argument [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 358 void *pixels = NULL; local 359 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); 361 if (pixels != NULL) { 364 pixels, GetBitmapSize(_env, jbitmap), usage); 374 void *pixels = NULL; local 375 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); 377 if (pixels != NULL) { 380 (uint32_t)usage, (uintptr_t)pixels); 389 void *pixels = NULL; local 390 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); 409 void *pixels = NULL; local 427 void *pixels = NULL; local [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Switch.java | 304 * @param pixels Amount of padding in pixels 308 public void setSwitchPadding(int pixels) { argument 309 mSwitchPadding = pixels; 316 * @return Amount of padding in pixels 325 * Set the minimum width of the switch in pixels. The switch's width will be the maximum 328 * @param pixels Minimum width of the switch in pixels 332 public void setSwitchMinWidth(int pixels) { argument 333 mSwitchMinWidth = pixels; 356 setThumbTextPadding(int pixels) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IccUtils.java | 395 int[] pixels = new int[numOfPixels]; 406 pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01); 412 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | IccUtils.java | 395 int[] pixels = new int[numOfPixels]; 406 pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01); 412 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.h | 73 void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);
|
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 486 uint8_t const* pixels = (uint8_t *)data + paletteSize; local 490 pixels += h * ((w * indexBits) / 8); 501 int index = 2 * (*pixels++); 507 int v = *pixels++; 525 int index = 3 * (*pixels++); 532 int v = *pixels++; 552 int index = 4 * (*pixels++); 560 int v = *pixels++; 1169 GLenum format, GLenum type, const GLvoid *pixels) 1197 if (pixels) { [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | AutoFixFilter.java | 279 int pixels = (width - 2 * x_border_thickness) * (height - 2 * y_border_thickness); 296 long temp = (256 * 256 - 1l) * histArray[i] / pixels;
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 117 const unsigned int pixels[] = local 131 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|