Home
last modified time | relevance | path

Searched refs:outputBitmap (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java157 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/
DBitmapFactory.cpp286 SkBitmap* outputBitmap = NULL; in doDecode() local
289 outputBitmap = (SkBitmap*) env->GetIntField(javaBitmap, gBitmap_nativeBitmapFieldID); in doDecode()
290 if (outputBitmap->isImmutable()) { in doDecode()
293 outputBitmap = NULL; in doDecode()
299 SkAutoTDelete<SkBitmap> adb(outputBitmap == NULL ? new SkBitmap : NULL); in doDecode()
300 if (outputBitmap == NULL) outputBitmap = adb.get(); in doDecode()
308 RecyclingPixelAllocator recyclingAllocator(outputBitmap->pixelRef(), existingBufferSize); in doDecode()
421 outputBitmap->setConfig(config, scaledWidth, scaledHeight, 0, in doDecode()
423 if (!outputBitmap->allocPixels(outputAllocator, NULL)) { in doDecode()
430 outputBitmap->eraseColor(0); in doDecode()
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java536 private static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument
537 if (outputBitmap == null || opts == null) return; in setDensityFromOptions()
541 outputBitmap.setDensity(density); in setDensityFromOptions()
547 byte[] np = outputBitmap.getNinePatchChunk(); in setDensityFromOptions()
550 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
554 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()