/frameworks/base/libs/hwui/hwui/ |
H A D | Bitmap.h | 54 size_t rowBytes, SkColorTable* ctable); 63 Bitmap(void* address, size_t allocSize, const SkImageInfo& info, size_t rowBytes, 66 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable); 68 size_t rowBytes, SkColorTable* ctable); 73 // Can't mark as override since SkPixelRef::rowBytes isn't virtual 75 // on calling rowBytes() on an unlocked pixelref, which it will be 78 size_t rowBytes() const { return mRowBytes; } function in class:android::Bitmap 84 void reconfigure(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
|
H A D | Bitmap.cpp | 42 static bool computeAllocationSize(size_t rowBytes, int height, size_t* size) { argument 43 int32_t rowBytes32 = SkToS32(rowBytes); 53 typedef sk_sp<Bitmap> (*AllocPixeRef)(size_t allocSize, const SkImageInfo& info, size_t rowBytes, 65 // we must respect the rowBytes value already set on the bitmap instead of 67 const size_t rowBytes = bitmap->rowBytes(); local 68 if (!computeAllocationSize(rowBytes, bitmap->height(), &size)) { 72 auto wrapper = alloc(size, info, rowBytes, ctable); 86 static sk_sp<Bitmap> allocateHeapBitmap(size_t size, const SkImageInfo& info, size_t rowBytes, argument 92 return sk_sp<Bitmap>(new Bitmap(addr, size, info, rowBytes, ctabl 278 allocateAshmemBitmap(size_t size, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 331 reconfigure(const SkImageInfo& newInfo, size_t rowBytes, SkColorTable* ctable) argument 362 Bitmap(void* address, size_t size, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 370 Bitmap(void* address, void* context, FreeFunc freeFunc, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 380 Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.cpp | 106 texture->bitmapSize = bitmap->rowBytes() * bitmap->height(); 136 const uint32_t size = bitmap->rowBytes() * bitmap->height();
|
H A D | GradientCache.cpp | 219 const GLsizei rowBytes = width * sourceBytesPerPixel(); local 220 uint8_t pixels[rowBytes * height]; 258 memcpy(pixels + rowBytes, pixels, rowBytes);
|
H A D | FontRenderer.cpp | 289 int srcStride = glyph.rowBytes(); 358 int rowBytes = srcStride; local 363 while (--rowBytes >= 0) {
|
H A D | Texture.cpp | 258 rgbaBitmap.getPixels(), rgbaBitmap.rowBytes(), 0, 0);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaOpenGLReadback.cpp | 106 if (image->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(),
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Graphics.cpp | 455 // we must respect the rowBytes value already set on the bitmap instead of 457 const size_t rowBytes = bitmap->rowBytes(); local 459 auto wrapper = new android::Bitmap(addr, fd, size, info, rowBytes, ctable); 653 const size_t rowBytes = maxInfo.minRowBytes(); local 654 const size_t bytesNeeded = maxInfo.getSafeSize(rowBytes); 656 // Here we take advantage of reconfigure() to reset the rowBytes and ctable 665 rowBytes, ctable); 668 // skbug.com/4538: We also need to make sure that the rowBytes on the pixel ref 669 // match the rowBytes o [all...] |
H A D | Bitmap.cpp | 58 mRowBytes = mBitmap->rowBytes(); 113 size_t rowBytes() const { function in class:android::BitmapWrapper 115 return mBitmap->rowBytes(); 250 info->stride = localBitmap->rowBytes(); 462 dst = (char*)dst + dstBitmap.rowBytes(); 479 dst = (char*)dst + dstBitmap.rowBytes(); 957 return static_cast<jint>(bitmap->rowBytes()); 1058 const int rowBytes = p->readInt32(); local 1073 rowBytes)) { 1209 p->writeInt32(bitmap.rowBytes()); [all...] |
H A D | BitmapFactory.cpp | 185 const int64_t size64 = info.getSafeSize64(bitmap->rowBytes()); 198 mBitmap->reconfigure(info, bitmap->rowBytes(), ctable); 447 // should only only fail if the calculated value for rowBytes is too 462 decodingBitmap.rowBytes(), &codecOptions);
|
/frameworks/base/libs/hwui/utils/ |
H A D | TestWindowContext.cpp | 154 nativeWrapper.readPixels(destinationConfig, bmp->getPixels(), bmp->rowBytes(), 0, 0);
|
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 230 const size_t rowBytes = local 239 screenshotInfo, rowBytes, nullptr);
|
H A D | android_hardware_camera2_DngCreator.cpp | 616 uint8_t* rowBytes = row.editArray(); local 623 ssize_t bytesRead = mInput->read(rowBytes, rowFillAmt, rowSize); 647 if (stream.write(rowBytes, 0, mBytesPerSample * mSamplesPerPixel * mWidth) != OK ||
|
/frameworks/base/tools/aapt2/compile/ |
H A D | Png.cpp | 148 const uint32_t rowBytes = png_get_rowbytes(readPtr, infoPtr); local 151 outInfo->rows[i] = new png_byte[rowBytes];
|