Home
last modified time | relevance | path

Searched refs:rowBytes (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/libs/hwui/hwui/
DBitmap.cpp39 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 …]
DBitmap.h56 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/
DGradientCache.cpp219 const GLsizei rowBytes = width * sourceBytesPerPixel(); in generateTexture() local
220 uint8_t pixels[rowBytes * height]; in generateTexture()
258 memcpy(pixels + rowBytes, pixels, rowBytes); in generateTexture()
DTextureCache.cpp104 texture->bitmapSize = bitmap->rowBytes() * bitmap->height(); in createTexture()
134 const uint32_t size = bitmap->rowBytes() * bitmap->height(); in getCachedTexture()
DFontRenderer.cpp287 int srcStride = glyph.rowBytes(); in cacheBitmap()
356 int rowBytes = srcStride; in cacheBitmap() local
361 while (--rowBytes >= 0) { in cacheBitmap()
DTexture.cpp257 rgbaBitmap.getPixels(), rgbaBitmap.rowBytes(), 0, 0); in uploadToN32()
/frameworks/base/core/jni/android/graphics/
DGraphics.cpp455 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()
DBitmap.cpp58 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 …]
DBitmapFactory.cpp139 const size_t size = info.computeByteSize(bitmap->rowBytes()); in allocPixelRef()
151 mBitmap->reconfigure(info, bitmap->rowBytes()); in allocPixelRef()
391 decodingBitmap.rowBytes(), &codecOptions); in doDecode()
DImageDecoder.cpp292 auto result = codec->getAndroidPixels(decodeInfo, bm.getPixels(), bm.rowBytes(), &options); in ImageDecoder_nDecodeBitmap()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaOpenGLPipeline.cpp160 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()
DSkiaOpenGLReadback.cpp130 if (image->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), 0, 0)) { in copyImageInto()
/frameworks/base/libs/hwui/utils/
DTestWindowContext.cpp143 success = nativeWrapper.readPixels(destinationConfig, bmp->getPixels(), bmp->rowBytes(), 0, in capturePixels()
/frameworks/base/libs/input/
DSpriteController.h69 bitmap.readPixels(bitmapCopy.info(), bitmapCopy.getPixels(), bitmapCopy.rowBytes(), in copy()
DSpriteController.cpp383 bitmapCopy->rowBytes(), 0, 0); in setIcon()
/frameworks/base/tools/aapt2/compile/
DPng.cpp148 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/
Dandroid_hardware_camera2_DngCreator.cpp617 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/
Dcom_android_server_input_InputManagerService.cpp172 bitmapCopy->rowBytes(), 0, 0); in loadSystemIconAsSpriteWithPointerIcon()
1642 spriteIcon.bitmap.rowBytes(), 0, 0); in nativeSetCustomPointerIcon()