Home
last modified time | relevance | path

Searched refs:outputBitmap (Results 1 – 4 of 4) 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/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java138 /*package*/ static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument
139 if (outputBitmap == null || opts == null) return; in setDensityFromOptions()
143 outputBitmap.setDensity(density); in setDensityFromOptions()
155 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
159 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java663 private static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument
664 if (outputBitmap == null || opts == null) return; in setDensityFromOptions()
668 outputBitmap.setDensity(density); in setDensityFromOptions()
674 byte[] np = outputBitmap.getNinePatchChunk(); in setDensityFromOptions()
677 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
681 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp440 SkBitmap outputBitmap; in doDecode() local
454 outputBitmap.setInfo( in doDecode()
456 if (!outputBitmap.tryAllocPixels(outputAllocator)) { in doDecode()
470 SkCanvas canvas(outputBitmap, SkCanvas::ColorBehavior::kLegacy); in doDecode()
474 outputBitmap.swap(decodingBitmap); in doDecode()
482 if (outputBitmap.pixelRef() == NULL) { in doDecode()
488 outputBitmap.setImmutable(); in doDecode()
493 bitmap::reinitBitmap(env, javaBitmap, outputBitmap.info(), isPremultiplied); in doDecode()
494 outputBitmap.notifyPixelsChanged(); in doDecode()
504 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(outputBitmap); in doDecode()