Searched refs:outputBitmap (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilterTest.java | 157 Bitmap outputBitmap = outputImage.toBitmap(); in testFaceSquareFilter() local 158 int[] outputPixels = new int[outputBitmap.getByteCount()]; in testFaceSquareFilter() 159 outputBitmap.getPixels(outputPixels, 0, outputBitmap.getWidth(), 0, 0, in testFaceSquareFilter() 160 outputBitmap.getWidth(), outputBitmap.getHeight()); in testFaceSquareFilter() 162 for ( int i = 0; i < outputBitmap.getByteCount(); i++) { in testFaceSquareFilter() 167 if (equalCount + (0.05f*outputBitmap.getByteCount()) < outputBitmap.getByteCount()) { in testFaceSquareFilter() 169 assertEquals(equalCount, outputBitmap.getByteCount()); in testFaceSquareFilter()
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapFactory.cpp | 268 SkBitmap* outputBitmap = NULL; in doDecode() local 271 outputBitmap = (SkBitmap*) env->GetLongField(javaBitmap, gBitmap_nativeBitmapFieldID); in doDecode() 272 if (outputBitmap->isImmutable()) { in doDecode() 275 outputBitmap = NULL; in doDecode() 281 SkAutoTDelete<SkBitmap> adb(outputBitmap == NULL ? new SkBitmap : NULL); in doDecode() 282 if (outputBitmap == NULL) outputBitmap = adb.get(); in doDecode() 288 RecyclingPixelAllocator recyclingAllocator(outputBitmap->pixelRef(), existingBufferSize); in doDecode() 398 outputBitmap->setInfo(SkImageInfo::Make(scaledWidth, scaledHeight, in doDecode() 400 if (!outputBitmap->allocPixels(outputAllocator, NULL)) { in doDecode() 407 outputBitmap->eraseColor(0); in doDecode() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 551 private static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument 552 if (outputBitmap == null || opts == null) return; in setDensityFromOptions() 556 outputBitmap.setDensity(density); in setDensityFromOptions() 562 byte[] np = outputBitmap.getNinePatchChunk(); in setDensityFromOptions() 565 outputBitmap.setDensity(targetDensity); in setDensityFromOptions() 569 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()
|