/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/base/native/webview/plat_support/ |
D | graphics_utils.cpp | 60 PixelInfo* pixels = new PixelInfo(nativeCanvas); in GetPixels() local 61 if (!pixels->state) { in GetPixels() 62 delete pixels; in GetPixels() 63 pixels = NULL; in GetPixels() 65 return pixels; in GetPixels() 68 void ReleasePixels(AwPixelInfo* pixels) { in ReleasePixels() argument 69 delete static_cast<PixelInfo*>(pixels); in ReleasePixels()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | HwBitmapInCompositeShader.cpp | 43 unsigned char* pixels = nullptr; in createContent() local 44 buffer->lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, ((void**)&pixels)); in createContent() 47 memset(pixels, 0, size); in createContent() 49 pixels[4000 + 4 * i + 0] = 255; in createContent() 50 pixels[4000 + 4 * i + 1] = 255; in createContent() 51 pixels[4000 + 4 * i + 2] = 0; in createContent() 52 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()
|
/frameworks/native/libs/renderengine/benchmark/ |
D | Codec.cpp | 73 void* pixels{nullptr}; in decode() local 75 if (auto status = buffer->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, &pixels, in decode() 82 result = AImageDecoder_decodeImage(decoder, pixels, static_cast<size_t>(stride), in decode() 99 void* pixels{nullptr}; in encodeToJpeg() local 101 if (auto status = buffer->lock(GRALLOC_USAGE_SW_READ_OFTEN, &pixels, in encodeToJpeg() 115 int result = AndroidBitmap_compress(&info, ADATASPACE_SRGB, pixels, in encodeToJpeg()
|
/frameworks/av/media/module/libmediaformatshaper/ |
D | CodecProperties.cpp | 237 point->pixels = width * height; in bppPoint() 245 } else if (point->pixels < mBppPoints->pixels) { in bppPoint() 252 if (point->pixels > after->next->pixels) { in bppPoint() 275 int32_t pixels = width * height; in getBpp() local 279 while (point && point->pixels < pixels) { in getBpp() 355 point->pixels = width * height; in qpMaxPoint() 363 } else if (point->pixels < mQpMaxPoints->pixels) { in qpMaxPoint() 370 if (point->pixels > after->next->pixels) { in qpMaxPoint() 393 int32_t pixels = width * height; in targetQpMax() local 397 while (point && point->pixels < pixels) { in targetQpMax()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | DisplayCreationArgs.h | 40 ui::Size pixels = ui::kInvalidSize; member 70 DisplayCreationArgsBuilder& setPixels(ui::Size pixels) { in setPixels() argument 71 mArgs.pixels = pixels; in setPixels()
|
/frameworks/base/packages/PrintSpooler/jni/ |
D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 110 void* pixels; in readBitmapPixels() local 111 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in readBitmapPixels() 119 read = readAllBytes(fd, (void*) pixels, byteCount); in readBitmapPixels() 149 void* pixels; in writeBitmapPixels() local 150 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in writeBitmapPixels() 158 written = writeAllBytes(fd, (void*) pixels, byteCount); in writeBitmapPixels()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | CelebiQuantizer.java | 43 public void quantize(int[] pixels, int maxColors) { in quantize() argument 45 wu.quantize(pixels, maxColors); in quantize() 48 kmeans.quantize(pixels, maxColors); in quantize()
|
D | VariationalKMeansQuantizer.java | 75 public void quantize(int[] pixels, int maxColors) { in quantize() argument 79 final float[][] hslPixels = new float[pixels.length][3]; in quantize() 80 for (int i = 0; i < pixels.length; i++) { in quantize() 81 ColorUtils.colorToHSL(pixels[i], hsl); in quantize()
|
/frameworks/base/native/graphics/jni/fuzz/ |
D | fuzz_imagedecoder.cpp | 29 void operator()(void* pixels) const { std::free(pixels); } in operator ()() 130 auto pixels = PixelPointer(std::malloc(pixelSize)); in LLVMFuzzerTestOneInput() local 131 if (!pixels.get()) { in LLVMFuzzerTestOneInput() 134 AImageDecoder_decodeImage(decoder, pixels.get(), stride, pixelSize); in LLVMFuzzerTestOneInput()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ColorExtractor.java | 76 int[] pixels = mTmpPixels; in findDominantColorByHue() local 77 Arrays.fill(pixels, 0); in findDominantColorByHue() 98 pixels[pixelCount++] = rgb; in findDominantColorByHue() 117 int rgb = pixels[i]; in findDominantColorByHue()
|
/frameworks/av/media/libstagefright/renderfright/tests/ |
D | RenderEngineTest.cpp | 102 uint8_t* pixels; in writeBufferToFile() local 104 reinterpret_cast<void**>(&pixels)); in writeBufferToFile() 115 const uint8_t* src = pixels + (mBuffer->getStride() * j) * 4; in writeBufferToFile() 153 uint8_t* pixels; in expectBufferColor() local 155 reinterpret_cast<void**>(&pixels)); in expectBufferColor() 160 pixels + (mBuffer->getStride() * (region.top + j) + region.left) * 4; in expectBufferColor() 418 uint8_t* pixels; in fillColor() local 420 reinterpret_cast<void**>(&pixels)); in fillColor() 423 uint8_t* iter = pixels + (buf->getStride() * j) * 4; in fillColor() 812 uint8_t* pixels; in fillRedBufferTextureTransform() local [all …]
|
/frameworks/native/libs/renderengine/tests/ |
D | RenderEngineTest.cpp | 220 uint8_t* pixels; in allocateAndFillSourceBuffer() local 222 reinterpret_cast<void**>(&pixels)); in allocateAndFillSourceBuffer() 224 uint8_t* dst = pixels + (buffer->getBuffer()->getStride() * j * 4); in allocateAndFillSourceBuffer() 281 uint8_t* pixels; in writeBufferToFile() local 283 reinterpret_cast<void**>(&pixels)); in writeBufferToFile() 295 const uint8_t* src = pixels + (mBuffer->getBuffer()->getStride() * j) * 4; in writeBufferToFile() 345 uint8_t* pixels; in expectBufferColor() local 347 reinterpret_cast<void**>(&pixels)); in expectBufferColor() 351 const uint8_t* src = pixels + in expectBufferColor() 647 uint8_t* pixels; in fillColor() local [all …]
|
/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/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);
|
/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/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | IconLoader.java | 249 int[] pixels = new int[numOfPixels]; in parseToBnW() local 260 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01); in parseToBnW() 266 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); in parseToBnW() 306 int[] pixels = new int[numOfPixels]; in parseToRGB() local 323 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], in parseToRGB() 328 return Bitmap.createBitmap(pixels, width, height, in parseToRGB()
|
/frameworks/base/native/graphics/jni/ |
D | bitmap.cpp | 100 const void* pixels, in AndroidBitmap_compress() argument 104 if (NULL == info || NULL == pixels || NULL == fn) { in AndroidBitmap_compress() 111 return ABitmap_compress(info, (ADataSpace) dataSpace, pixels, in AndroidBitmap_compress()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/ |
D | QrCodeGenerator.kt | 73 @ColorInt val pixels = IntArray(size * size) in encodeQrCode() constant 76 pixels[x * size + y] = if (qrBits[x, y]) setColor else unsetColor in encodeQrCode() 80 setPixels(pixels, 0, size, 0, 0, size, size) in encodeQrCode()
|
/frameworks/base/libs/hwui/hwui/ |
D | ImageDecoder.cpp | 352 bool ImageDecoder::handleRestorePrevious(const SkImageInfo& outputInfo, void* pixels, in handleRestorePrevious() argument 367 const uint8_t* srcRow = static_cast<uint8_t*>(pixels); in handleRestorePrevious() 368 uint8_t* dstRow = static_cast<uint8_t*>(mRestoreFrame->pixels()); in handleRestorePrevious() 381 const uint8_t* srcRow = static_cast<uint8_t*>(mRestoreFrame->pixels()); in handleRestorePrevious() 382 uint8_t* dstRow = static_cast<uint8_t*>(pixels); in handleRestorePrevious() 396 SkCodec::Result ImageDecoder::decode(void* pixels, size_t rowBytes) { in decode() argument 408 if (!handleRestorePrevious(outputInfo, pixels, rowBytes)) { in decode() 412 void* decodePixels = pixels; in decode() 461 priorFrame.installPixels(outputInfo, pixels, rowBytes); in decode() 485 if (!scaledBm.installPixels(outputInfo, pixels, rowBytes)) { in decode()
|