/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 43 static bool computeAllocationSize(size_t rowBytes, int height, size_t* size) { in computeAllocationSize() argument 45 !__builtin_mul_overflow(rowBytes, (size_t)height, size) && in computeAllocationSize() 49 typedef sk_sp<Bitmap> (*AllocPixelRef)(size_t allocSize, const SkImageInfo& info, size_t rowBytes); 62 const size_t rowBytes = bitmap->rowBytes(); in allocateBitmap() local 63 if (!computeAllocationSize(rowBytes, bitmap->height(), &size)) { in allocateBitmap() 67 auto wrapper = alloc(size, info, rowBytes); in allocateBitmap() 78 sk_sp<Bitmap> Bitmap::allocateAshmemBitmap(size_t size, const SkImageInfo& info, size_t rowBytes) { in allocateAshmemBitmap() argument 96 return sk_sp<Bitmap>(new Bitmap(addr, fd, size, info, rowBytes)); in allocateAshmemBitmap() 116 sk_sp<Bitmap> Bitmap::allocateHeapBitmap(size_t size, const SkImageInfo& info, size_t rowBytes) { in allocateHeapBitmap() argument 121 return sk_sp<Bitmap>(new Bitmap(addr, size, info, rowBytes)); in allocateHeapBitmap() [all …]
|
D | Bitmap.h | 79 static sk_sp<Bitmap> createFrom(const SkImageInfo& info, size_t rowBytes, int fd, void* addr, 83 int rowBytesAsPixels() const { return rowBytes() >> mInfo.shiftPerPixel(); } in rowBytesAsPixels() 85 void reconfigure(const SkImageInfo& info, size_t rowBytes); 117 static BitmapPalette computePalette(const SkImageInfo& info, const void* addr, size_t rowBytes); 120 return computePalette(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes()); in computePalette() 125 mPalette = computePalette(info(), pixels(), rowBytes()); in palette() 132 static sk_sp<Bitmap> allocateAshmemBitmap(size_t size, const SkImageInfo& i, size_t rowBytes); 133 static sk_sp<Bitmap> allocateHeapBitmap(size_t size, const SkImageInfo& i, size_t rowBytes); 135 Bitmap(void* address, size_t allocSize, const SkImageInfo& info, size_t rowBytes); 137 size_t rowBytes); [all …]
|
/frameworks/base/libs/input/ |
D | SpriteIcon.h | 41 bitmap.readPixels(bitmapCopy.info(), bitmapCopy.getPixels(), bitmapCopy.rowBytes(), in copy()
|
D | SpriteController.cpp | 366 bitmapCopy->rowBytes(), 0, 0); in setIcon()
|
/frameworks/base/core/jni/android/graphics/ |
D | Bitmap.cpp | 54 mRowBytes = mBitmap->rowBytes(); in freePixels() 114 size_t rowBytes() const { in rowBytes() function in android::BitmapWrapper 116 return mBitmap->rowBytes(); in rowBytes() 249 info->stride = localBitmap->rowBytes(); in imageInfo() 598 return static_cast<jint>(bitmap->rowBytes()); in Bitmap_rowBytes() 697 const int rowBytes = p->readInt32(); in Bitmap_createFromParcel() local 711 rowBytes)) { in Bitmap_createFromParcel() 746 nativeBitmap = Bitmap::createFrom(bitmap->info(), bitmap->rowBytes(), dupFd, in Bitmap_createFromParcel() 824 p->writeInt32(bitmap.rowBytes()); in Bitmap_writeToParcel()
|
D | Graphics.cpp | 530 const size_t rowBytes = maxInfo.minRowBytes(); in allocPixelRef() local 531 const size_t bytesNeeded = maxInfo.computeByteSize(rowBytes); in allocPixelRef() 542 rowBytes); in allocPixelRef() 547 bitmap->setInfo(bitmap->info(), rowBytes); in allocPixelRef() 577 const size_t dstRowBytes = mRecycledBitmap->rowBytes(); in copyIfNecessary()
|
D | BitmapFactory.cpp | 142 const size_t size = info.computeByteSize(bitmap->rowBytes()); in allocPixelRef() 154 mBitmap->reconfigure(info, bitmap->rowBytes()); in allocPixelRef() 392 decodingBitmap.rowBytes(), &codecOptions); in doDecode()
|
D | ImageDecoder.cpp | 308 auto result = codec->getAndroidPixels(decodeInfo, bm.getPixels(), bm.rowBytes(), &options); in ImageDecoder_nDecodeBitmap()
|
/frameworks/base/libs/hwui/ |
D | Readback.cpp | 200 bitmap->rowBytes(), 0, 0)) { in copyLayerInto()
|
/frameworks/base/tools/aapt2/compile/ |
D | Png.cpp | 149 const uint32_t rowBytes = png_get_rowbytes(readPtr, infoPtr); in readPng() local 152 outInfo->rows[i] = new png_byte[rowBytes]; in readPng()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 618 uint8_t* rowBytes = row.editArray(); in writeToStream() local 625 ssize_t bytesRead = mInput->read(rowBytes, rowFillAmt, rowSize); in writeToStream() 649 if (stream.write(rowBytes, 0, mBytesPerSample * mSamplesPerPixel * mWidth) != OK || in writeToStream()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 167 bitmapCopy->rowBytes(), 0, 0); in loadSystemIconAsSpriteWithPointerIcon() 1714 spriteIcon.bitmap.rowBytes(), 0, 0); in nativeSetCustomPointerIcon()
|