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/graphics/java/android/graphics/
DBitmapFactory.java551 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()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp370 SkBitmap outputBitmap; in doDecode() local
385 outputBitmap.setInfo(SkImageInfo::Make(scaledWidth, scaledHeight, in doDecode()
387 if (!outputBitmap.tryAllocPixels(outputAllocator, NULL)) { in doDecode()
394 outputBitmap.eraseColor(0); in doDecode()
400 SkCanvas canvas(outputBitmap); in doDecode()
405 outputBitmap.swap(decodingBitmap); in doDecode()
420 if (outputBitmap.pixelRef() == NULL) { in doDecode()
426 outputBitmap.setImmutable(); in doDecode()
431 GraphicsJNI::reinitBitmap(env, javaBitmap, outputBitmap.info(), isPremultiplied); in doDecode()
432 outputBitmap.notifyPixelsChanged(); in doDecode()