Searched defs:rowBytes (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/libs/hwui/hwui/
H A DBitmap.h54 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 DBitmap.cpp42 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 DGradientCache.cpp219 const GLsizei rowBytes = width * sourceBytesPerPixel(); local
220 uint8_t pixels[rowBytes * height];
258 memcpy(pixels + rowBytes, pixels, rowBytes);
H A DFontRenderer.cpp289 int srcStride = glyph.rowBytes();
358 int rowBytes = srcStride; local
363 while (--rowBytes >= 0) {
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp58 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 DGraphics.cpp455 // 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...]
/frameworks/base/core/jni/
H A Dandroid_view_SurfaceControl.cpp230 const size_t rowBytes = local
239 screenshotInfo, rowBytes, nullptr);
H A Dandroid_hardware_camera2_DngCreator.cpp616 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 DPng.cpp148 const uint32_t rowBytes = png_get_rowbytes(readPtr, infoPtr); local
151 outInfo->rows[i] = new png_byte[rowBytes];

Completed in 1491 milliseconds