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.java140 /*package*/ static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument
141 if (outputBitmap == null || opts == null) return; in setDensityFromOptions()
145 outputBitmap.setDensity(density); in setDensityFromOptions()
157 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
161 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp439 SkBitmap outputBitmap; in doDecode() local
453 outputBitmap.setInfo( in doDecode()
455 if (!outputBitmap.tryAllocPixels(outputAllocator)) { in doDecode()
469 SkCanvas canvas(outputBitmap, SkCanvas::ColorBehavior::kLegacy); in doDecode()
473 outputBitmap.swap(decodingBitmap); in doDecode()
481 if (outputBitmap.pixelRef() == NULL) { in doDecode()
487 outputBitmap.setImmutable(); in doDecode()
492 bitmap::reinitBitmap(env, javaBitmap, outputBitmap.info(), isPremultiplied); in doDecode()
493 outputBitmap.notifyPixelsChanged(); in doDecode()
503 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(outputBitmap); in doDecode()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java696 private static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument
697 if (outputBitmap == null || opts == null) return; in setDensityFromOptions()
701 outputBitmap.setDensity(density); in setDensityFromOptions()
707 byte[] np = outputBitmap.getNinePatchChunk(); in setDensityFromOptions()
710 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
714 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()