/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilter.java | 70 byte[] pixels = buffer.array(); in onProcess() 74 drawBoxes(pixels, faces, dims); in onProcess() 82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) { in drawBoxes() argument 114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 124 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes() 126 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes() 128 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes() 136 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) + in drawBoxes() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | DngCreator.java | 187 public DngCreator setThumbnail(@NonNull Bitmap pixels) { in setThumbnail() argument 188 if (pixels == null) { in setThumbnail() 192 int width = pixels.getWidth(); in setThumbnail() 193 int height = pixels.getHeight(); in setThumbnail() 201 ByteBuffer rgbBuffer = convertToRGB(pixels); in setThumbnail() 223 public DngCreator setThumbnail(@NonNull Image pixels) { in setThumbnail() argument 224 if (pixels == null) { in setThumbnail() 228 int format = pixels.getFormat(); in setThumbnail() 233 int width = pixels.getWidth(); in setThumbnail() 234 int height = pixels.getHeight(); in setThumbnail() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilterTest.java | 79 int[] pixels = new int[bitmap.getByteCount()]; in testFaceSquareFilter() local 80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), in testFaceSquareFilter() 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 126 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + in testFaceSquareFilter() 128 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + in testFaceSquareFilter() 130 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + in testFaceSquareFilter() 138 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter() 140 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter() [all …]
|
/frameworks/webview/chromium/plat_support/ |
D | graphics_utils.cpp | 62 PixelInfo* pixels = new PixelInfo(nativeCanvas); in GetPixels() local 63 if (!pixels->state) { in GetPixels() 64 delete pixels; in GetPixels() 65 pixels = NULL; in GetPixels() 67 return pixels; in GetPixels() 70 void ReleasePixels(AwPixelInfo* pixels) { in ReleasePixels() argument 71 delete static_cast<PixelInfo*>(pixels); in ReleasePixels()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | HwBitmapInCompositeShader.cpp | 44 unsigned char* pixels = nullptr; in createContent() local 45 buffer->lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, ((void**)&pixels)); in createContent() 48 memset(pixels, 0, size); in createContent() 50 pixels[4000 + 4 * i + 0] = 255; in createContent() 51 pixels[4000 + 4 * i + 1] = 255; in createContent() 52 pixels[4000 + 4 * i + 2] = 0; in createContent() 53 pixels[4000 + 4 * i + 3] = 255; in createContent()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | GLToolbox.java | 70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { in readFbo() argument 72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in readFbo() 76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { in readTarget() argument 78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in readTarget() 114 public static void setTexturePixels(int texId, int target, ByteBuffer pixels, in setTexturePixels() argument 119 if (pixels == null) { in setTexturePixels() 120 pixels = ByteBuffer.allocateDirect(width * height * 4); in setTexturePixels() 123 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in setTexturePixels()
|
D | BackingStore.java | 605 ByteBuffer pixels = (ByteBuffer) backing.lock(ACCESS_BYTES); in syncTo() local 606 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]); in syncTo() 627 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); in syncToAllocationBacking() local 628 allocation.copyTo(pixels.array()); in syncToAllocationBacking() 629 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]); in syncToAllocationBacking() 846 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); in syncTo() local 847 GLToolbox.readTarget(target, pixels, mDimensions[0], mDimensions[1]); in syncTo() 848 mAllocation.copyFrom(pixels.array()); in syncTo()
|
D | TextureSource.java | 69 public void allocateWithPixels(ByteBuffer pixels, int width, int height) { in allocateWithPixels() argument 71 GLToolbox.setTexturePixels(mTexId, mTarget, pixels, width, height); in allocateWithPixels()
|
/frameworks/base/packages/PrintSpooler/jni/ |
D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 115 void* pixels; in readBitmapPixels() local 116 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in readBitmapPixels() 124 read = readAllBytes(fd, (void*) pixels, byteCount); in readBitmapPixels() 154 void* pixels; in writeBitmapPixels() local 155 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in writeBitmapPixels() 163 written = writeAllBytes(fd, (void*) pixels, byteCount); in writeBitmapPixels()
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_gl_frame.cpp | 194 uint8_t* pixels = new uint8_t[frame->Size()]; in Java_android_filterfw_core_GLFrame_getNativeFloats() local 195 frame->CopyDataTo(pixels, frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeFloats() 198 ConvertRGBAToFloats(pixels, frame->Size(), float_array); in Java_android_filterfw_core_GLFrame_getNativeFloats() 201 delete[] pixels; in Java_android_filterfw_core_GLFrame_getNativeFloats() 214 uint8_t* pixels; in Java_android_filterfw_core_GLFrame_setNativeBitmap() local 215 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); in Java_android_filterfw_core_GLFrame_setNativeBitmap() 217 const bool success = frame->WriteData(pixels, size); in Java_android_filterfw_core_GLFrame_setNativeBitmap() 230 uint8_t* pixels; in Java_android_filterfw_core_GLFrame_getNativeBitmap() local 231 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); in Java_android_filterfw_core_GLFrame_getNativeBitmap() 233 frame->CopyDataTo(pixels, frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeBitmap()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | pixel_format_f32.rsh | 11 // whether or not a pixel is on the current target layer. For pixels that are 42 // For active pixels, dilated_depth is the same as actual depth; 43 // For inactive pixels with non-zero matte, dilated_depth is the depth of the 44 // closest active pixels; 45 // For other pixels, 0 (invalid depth).
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | VariationalKMeansQuantizer.java | 76 public void quantize(int[] pixels, int maxColors, Palette.Filter[] filters) { in quantize() argument 80 final float[][] hslPixels = new float[pixels.length][3]; in quantize() 81 for (int i = 0; i < pixels.length; i++) { in quantize() 82 ColorUtils.colorToHSL(pixels[i], hsl); in quantize()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 362 int[] pixels = new int[source.getWidth() * source.getHeight()]; in calculateDarkHints() local 364 final int maxDarkPixels = (int) (pixels.length * MAX_DARK_AREA); in calculateDarkHints() 366 source.getPixels(pixels, 0 /* offset */, source.getWidth(), 0 /* x */, 0 /* y */, in calculateDarkHints() 372 for (int i = 0; i < pixels.length; i++) { in calculateDarkHints() 373 ColorUtils.colorToHSL(pixels[i], tmpHsl); in calculateDarkHints() 375 final int alpha = Color.alpha(pixels[i]); in calculateDarkHints() 385 double meanLuminance = totalLuminance / pixels.length; in calculateDarkHints()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | IconLoader.java | 245 int[] pixels = new int[numOfPixels]; in parseToBnW() local 256 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01); in parseToBnW() 262 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); in parseToBnW() 302 int[] pixels = new int[numOfPixels]; in parseToRGB() local 319 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], in parseToRGB() 324 return Bitmap.createBitmap(pixels, width, height, in parseToRGB()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | gl_frame.h | 145 bool ReadTexturePixels(uint8_t* pixels) const; 148 bool ReadFboPixels(uint8_t* pixels) const; 151 bool UploadTexturePixels(const uint8_t* pixels);
|
D | gl_frame.cpp | 347 bool GLFrame::ReadFboPixels(uint8_t* pixels) const { in ReadFboPixels() 356 pixels); in ReadFboPixels() 362 bool GLFrame::ReadTexturePixels(uint8_t* pixels) const { in ReadTexturePixels() 388 return target.ReadFboPixels(pixels); in ReadTexturePixels() 448 bool GLFrame::UploadTexturePixels(const uint8_t* pixels) { in UploadTexturePixels() argument 454 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in UploadTexturePixels()
|
/frameworks/av/cmds/screenrecord/ |
D | FontBitmap.h | 10 static const uint8_t pixels[]; variable 14 const uint8_t FontBitmap::pixels[] = {
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/ |
D | Throughput.java | 30 public Throughput(int totalFrames, int periodFrames, int periodTime, int pixels) { in Throughput() argument 34 mPixels = pixels; in Throughput()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | BitmapTest.java | 90 int[] pixels = new int[100]; in testGetPixelsWithAlpha() local 91 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithAlpha() 94 assertEquals("getPixels", p, pixels[i]); in testGetPixelsWithAlpha() 115 int[] pixels = new int[100]; in testGetPixelsWithoutAlpha() local 116 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithoutAlpha() 119 assertEquals("getPixels", p, pixels[i]); in testGetPixelsWithoutAlpha()
|
/frameworks/base/libs/hwui/ |
D | GradientCache.cpp | 221 uint8_t pixels[rowBytes * height]; in generateTexture() local 242 uint8_t* dst = pixels; in generateTexture() 259 memcpy(pixels + rowBytes, pixels, rowBytes); in generateTexture() 262 texture->upload(GL_RGBA16F, width, height, GL_RGBA, GL_FLOAT, pixels); in generateTexture() 265 texture->upload(internalFormat, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in generateTexture()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatSpinner.java | 322 public void setDropDownVerticalOffset(int pixels) { in setDropDownVerticalOffset() argument 324 mPopup.setVerticalOffset(pixels); in setDropDownVerticalOffset() 326 super.setDropDownVerticalOffset(pixels); in setDropDownVerticalOffset() 341 public void setDropDownHorizontalOffset(int pixels) { in setDropDownHorizontalOffset() argument 343 mPopup.setHorizontalOffset(pixels); in setDropDownHorizontalOffset() 345 super.setDropDownHorizontalOffset(pixels); in setDropDownHorizontalOffset() 366 public void setDropDownWidth(int pixels) { in setDropDownWidth() argument 368 mDropDownWidth = pixels; in setDropDownWidth() 370 super.setDropDownWidth(pixels); in setDropDownWidth()
|
/frameworks/base/tests/touchlag/ |
D | touchlag.cpp | 46 uint32_t* pixels; member 51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4); in clearBuffer() 56 uint32_t* bits = buf->pixels + y * buf->s; in drawTwoPixels() 78 uint32_t* bits = buf->pixels + y * buf->s + x; in drawHLine() 97 uint32_t* bits = buf->pixels + y * buf->s + x; in drawRect()
|
/frameworks/ex/framesequence/jni/ |
D | FrameSequenceJNI.cpp | 124 void* pixels; in nativeGetFrame() local 131 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { in nativeGetFrame() 138 (Color8888*) pixels, pixelStride, previousFrameNr); in nativeGetFrame()
|
/frameworks/native/opengl/tools/glgen/specs/gles11/ |
D | checks.spec | 99 glTexImage2D nullAllowed pixels 100 glTexImage3D nullAllowed pixels 102 glTexSubImage2D nullAllowed pixels
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
D | ViewBindingAdapter.java | 219 private static int pixelsToDimensionPixelSize(float pixels) { in pixelsToDimensionPixelSize() argument 220 final int result = (int) (pixels + 0.5f); in pixelsToDimensionPixelSize() 223 } else if (pixels == 0) { in pixelsToDimensionPixelSize() 225 } else if (pixels > 0) { in pixelsToDimensionPixelSize()
|