/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 39 static bool computeAllocationSize(size_t rowBytes, int height, size_t* size) { in computeAllocationSize() argument 40 int32_t rowBytes32 = SkToS32(rowBytes); in computeAllocationSize() 50 typedef sk_sp<Bitmap> (*AllocPixelRef)(size_t allocSize, const SkImageInfo& info, size_t rowBytes); 63 const size_t rowBytes = bitmap->rowBytes(); in allocateBitmap() local 64 if (!computeAllocationSize(rowBytes, bitmap->height(), &size)) { in allocateBitmap() 68 auto wrapper = alloc(size, info, rowBytes); in allocateBitmap() 79 static sk_sp<Bitmap> allocateHeapBitmap(size_t size, const SkImageInfo& info, size_t rowBytes) { in allocateHeapBitmap() argument 84 return sk_sp<Bitmap>(new Bitmap(addr, size, info, rowBytes)); in allocateHeapBitmap() 104 sk_sp<Bitmap> Bitmap::allocateAshmemBitmap(size_t size, const SkImageInfo& info, size_t rowBytes) { in allocateAshmemBitmap() argument 122 return sk_sp<Bitmap>(new Bitmap(addr, fd, size, info, rowBytes)); in allocateAshmemBitmap() [all …]
|
D | Bitmap.h | 56 size_t rowBytes); 62 Bitmap(void* address, size_t allocSize, const SkImageInfo& info, size_t rowBytes); 64 size_t rowBytes); 65 Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info, size_t rowBytes); 69 return rowBytes() >> mInfo.shiftPerPixel(); in rowBytesAsPixels() 72 void reconfigure(const SkImageInfo& info, size_t rowBytes);
|
/frameworks/base/libs/hwui/ |
D | GradientCache.cpp | 219 const GLsizei rowBytes = width * sourceBytesPerPixel(); in generateTexture() local 220 uint8_t pixels[rowBytes * height]; in generateTexture() 258 memcpy(pixels + rowBytes, pixels, rowBytes); in generateTexture()
|
D | TextureCache.cpp | 104 texture->bitmapSize = bitmap->rowBytes() * bitmap->height(); in createTexture() 134 const uint32_t size = bitmap->rowBytes() * bitmap->height(); in getCachedTexture()
|
D | FontRenderer.cpp | 287 int srcStride = glyph.rowBytes(); in cacheBitmap() 356 int rowBytes = srcStride; in cacheBitmap() local 361 while (--rowBytes >= 0) { in cacheBitmap()
|
D | Texture.cpp | 257 rgbaBitmap.getPixels(), rgbaBitmap.rowBytes(), 0, 0); in uploadToN32()
|
/frameworks/base/core/jni/android/graphics/ |
D | Graphics.cpp | 455 const size_t rowBytes = bitmap->rowBytes(); in mapAshmemBitmap() local 457 auto wrapper = new android::Bitmap(addr, fd, size, info, rowBytes); in mapAshmemBitmap() 647 const size_t rowBytes = maxInfo.minRowBytes(); in allocPixelRef() local 648 const size_t bytesNeeded = maxInfo.computeByteSize(rowBytes); in allocPixelRef() 659 rowBytes); in allocPixelRef() 664 bitmap->setInfo(bitmap->info(), rowBytes); in allocPixelRef() 694 const size_t dstRowBytes = mRecycledBitmap->rowBytes(); in copyIfNecessary()
|
D | Bitmap.cpp | 58 mRowBytes = mBitmap->rowBytes(); in freePixels() 113 size_t rowBytes() const { in rowBytes() function in android::BitmapWrapper 115 return mBitmap->rowBytes(); in rowBytes() 250 info->stride = localBitmap->rowBytes(); in imageInfo() 459 dst = (char*)dst + dstBitmap.rowBytes(); in SetPixels() 476 dst = (char*)dst + dstBitmap.rowBytes(); in SetPixels() 711 srcPM.rowBytes()); in bitmapCopyTo() 958 return static_cast<jint>(bitmap->rowBytes()); in Bitmap_rowBytes() 1059 const int rowBytes = p->readInt32(); in Bitmap_createFromParcel() local 1073 rowBytes)) { in Bitmap_createFromParcel() [all …]
|
D | BitmapFactory.cpp | 139 const size_t size = info.computeByteSize(bitmap->rowBytes()); in allocPixelRef() 151 mBitmap->reconfigure(info, bitmap->rowBytes()); in allocPixelRef() 391 decodingBitmap.rowBytes(), &codecOptions); in doDecode()
|
D | ImageDecoder.cpp | 292 auto result = codec->getAndroidPixels(decodeInfo, bm.getPixels(), bm.rowBytes(), &options); in ImageDecoder_nDecodeBitmap()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaOpenGLPipeline.cpp | 160 if (tmpImage->readPixels(surfaceInfo, bitmap->getPixels(), bitmap->rowBytes(), 0, 0)) { in copyLayerInto() 172 tmpBitmap.rowBytes(), 0, 0)) { in copyLayerInto() 378 bitmap.getPixels(), bitmap.rowBytes(), 0, 0); in allocateHardwareBitmap()
|
D | SkiaOpenGLReadback.cpp | 130 if (image->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), 0, 0)) { in copyImageInto()
|
/frameworks/base/libs/hwui/utils/ |
D | TestWindowContext.cpp | 143 success = nativeWrapper.readPixels(destinationConfig, bmp->getPixels(), bmp->rowBytes(), 0, in capturePixels()
|
/frameworks/base/libs/input/ |
D | SpriteController.h | 69 bitmap.readPixels(bitmapCopy.info(), bitmapCopy.getPixels(), bitmapCopy.rowBytes(), in copy()
|
D | SpriteController.cpp | 383 bitmapCopy->rowBytes(), 0, 0); in setIcon()
|
/frameworks/base/tools/aapt2/compile/ |
D | Png.cpp | 148 const uint32_t rowBytes = png_get_rowbytes(readPtr, infoPtr); in readPng() local 151 outInfo->rows[i] = new png_byte[rowBytes]; in readPng()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 617 uint8_t* rowBytes = row.editArray(); in writeToStream() local 624 ssize_t bytesRead = mInput->read(rowBytes, rowFillAmt, rowSize); in writeToStream() 648 if (stream.write(rowBytes, 0, mBytesPerSample * mSamplesPerPixel * mWidth) != OK || in writeToStream()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 172 bitmapCopy->rowBytes(), 0, 0); in loadSystemIconAsSpriteWithPointerIcon() 1642 spriteIcon.bitmap.rowBytes(), 0, 0); in nativeSetCustomPointerIcon()
|