/external/skia/src/core/ |
SkMallocPixelRef.cpp | 42 size_t rowBytes, 48 (info, addr, rowBytes, ctable, NULL, NULL)); 59 // only want to permit 31bits of rowBytes 65 return NULL; // cannot meet requested rowbytes 68 int32_t rowBytes; 70 rowBytes = SkToS32(requestedRowBytes); 72 rowBytes = minRB; 75 int64_t bigSize = (int64_t)info.height() * rowBytes; 81 SkASSERT(size >= info.getSafeSize(rowBytes)); 88 (info, addr, rowBytes, ctable [all...] |
SkImageGenerator.cpp | 11 size_t rowBytes, const Options* options, 19 if (rowBytes < info.minRowBytes()) { 40 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, ctable, ctableCount); 49 size_t rowBytes) { 54 return this->getPixels(info, pixels, rowBytes, NULL, NULL, NULL); 57 bool SkImageGenerator::getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], 63 bool isValidWithPlanes = (planes) && (rowBytes) && 65 (0 != rowBytes[0]) && (0 != rowBytes[1]) && (0 != rowBytes[2])) [all...] |
SkBitmap_scroll.cpp | 67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed 70 src -= dy * rowBytes; 73 dst += dy * rowBytes; 76 src += (height - 1) * rowBytes; 77 dst += (height - 1) * rowBytes; 78 // now invert rowbytes so we copy backwards in the loop 79 rowBytes = -rowBytes; [all...] |
SkDistanceFieldGen.h | 34 * @param rowBytes Size of each row in the image, in bytes 38 int w, int h, size_t rowBytes); 47 * @param rowBytes Size of each row in the image, in bytes 51 int w, int h, size_t rowBytes);
|
/external/skia/tests/ |
ImageGeneratorTest.cpp | 23 size_t rowBytes[3] = { 0 }; 30 ig.getYUV8Planes(sizes, NULL, rowBytes, NULL); 31 ig.getYUV8Planes(sizes, planes, rowBytes, NULL); 32 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace); 36 rowBytes[0] = rowBytes[1] = rowBytes[2] = 250; 38 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace);
|
MallocPixelRefTest.cpp | 29 // rowbytes too small. 33 size_t rowBytes = info.minRowBytes() - 1; 34 size_t size = info.getSafeSize(rowBytes); 37 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data)); 38 // rowbytes too small. 42 size_t rowBytes = info.minRowBytes() + 2; 43 size_t size = info.getSafeSize(rowBytes) - 1; 46 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data)); 50 size_t rowBytes = info.minRowBytes() + 7; 51 size_t size = info.getSafeSize(rowBytes) + 9 [all...] |
BitmapTest.cpp | 33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 41 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); 43 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); 46 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); 50 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 53 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 69 // for a 4-byte config, this width will compute a rowbytes of 0x80000000, 72 // TODO: perhaps skia can relax this, and only require that rowBytes fi [all...] |
/external/skia/src/image/ |
SkImage_Raster.cpp | 19 static bool ValidArgs(const Info& info, size_t rowBytes) { 42 if (rowBytes < SkImageMinRowBytes(info)) { 46 int64_t size = (int64_t)info.height() * rowBytes; 58 const void* onPeekPixels(SkImageInfo*, size_t* /*rowBytes*/) const override; 62 SkImage_Raster(const SkImageInfo&, SkPixelRef*, const SkIPoint& pixelRefOrigin, size_t rowBytes, 92 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes, 100 fBitmap.installPixels(info, addr, rowBytes, ctable, release_data, data); 106 size_t rowBytes, const SkSurfaceProps* props) 109 fBitmap.setInfo(info, rowBytes); 137 *rowBytesPtr = fBitmap.rowBytes(); [all...] |
SkReadPixelsRec.h | 17 SkReadPixelsRec(const SkImageInfo& info, void* pixels, size_t rowBytes, int x, int y) 19 , fRowBytes(rowBytes)
|
SkSurface_Raster.cpp | 40 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { 62 if (kIgnoreRowBytesValue == rowBytes) { 67 if (minRB > rowBytes) { 71 size_t alignedRowBytes = rowBytes >> shift << shift; 72 if (alignedRowBytes != rowBytes) { 76 uint64_t size = sk_64_mul(info.height(), rowBytes); 162 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, 164 return NewRasterDirectReleaseProc(info, pixels, rowBytes, NULL, NULL, props);
|
/external/skia/include/core/ |
SkMallocPixelRef.h | 21 * Return a new SkMallocPixelRef with the provided pixel storage, rowBytes, 31 size_t rowBytes, SkColorTable*); 35 * pixels. If rowBytes are 0, an optimal value will be chosen automatically. 36 * If rowBytes is > 0, then it will be respected, or NULL will be returned 37 * if rowBytes is invalid for the specified info. 44 size_t rowBytes, SkColorTable*); 48 * rowBytes, and optional colortable. On destruction, ReleaseProc 62 size_t rowBytes, SkColorTable*, 68 * SkData, rowBytes, and optional colortable as pixel storage. 77 size_t rowBytes, [all...] |
SkImageGenerator.h | 96 * Parameters (besides info) are invalid. e.g. NULL pixels, rowBytes 145 * least (info.fHeight - 1) * rowBytes + (info.fWidth * 172 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*, 179 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes); 182 * If planes or rowBytes is NULL or if any entry in planes is NULL or if any entry in rowBytes 185 * rowBytes are both fully defined and non NULL/non 0 or they are both NULL or have NULL or 0 186 * entries only. Having only partial planes/rowBytes information is not supported. 188 * If all planes and rowBytes entries are non NULL or non 0, then it should copy the 192 bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3] [all...] |
SkPixelSerializer.h | 35 SkData* encodePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes) { 36 return this->onEncodePixels(info, pixels, rowBytes); 50 virtual SkData* onEncodePixels(const SkImageInfo&, const void* pixels, size_t rowBytes) = 0;
|
/external/skia/src/opts/ |
SkTextureCompression_opts_neon.h | 12 int width, int height, size_t rowBytes);
|
/external/skia/src/ports/ |
SkImageGenerator_skia.cpp | 19 BareMemoryAllocator(const SkImageInfo& info, void* memory, size_t rowBytes) 20 : fInfo(info), fMemory(memory), fRowBytes(rowBytes) 50 virtual Result onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, 55 (info, pixels, rowBytes))); 85 bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], 88 return fDecoder->decodeYUV8Planes(&stream, sizes, planes, rowBytes, colorSpace);
|
/external/skia/include/codec/ |
SkScanlineDecoder.h | 26 * scanlines of size rowBytes. 28 * @param rowBytes Number of bytes per row. Must be large enough to hold 31 SkImageGenerator::Result getScanlines(void* dst, int countLines, size_t rowBytes) { 32 if ((rowBytes < fDstInfo.minRowBytes() && countLines > 1 ) || countLines <= 0 36 const SkImageGenerator::Result result = this->onGetScanlines(dst, countLines, rowBytes); 89 // Note that we pass 0 to rowBytes so we continue to use the same memory. 90 // Also note that while getScanlines checks that rowBytes is big enough, 98 size_t rowBytes) = 0;
|
/external/skia/src/lazy/ |
SkCachingPixelRef.cpp | 24 (info, generator, dst->rowBytes()))); 31 size_t rowBytes) 35 , fRowBytes(rowBytes) { 75 rec->fRowBytes = fLockedBitmap.rowBytes();
|
SkDiscardablePixelRef.h | 49 size_t rowBytes, 54 size_t rowBytes[3], 61 return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace);
|
/external/skia/src/utils/ |
SkTextureCompressor_ASTC.h | 18 int width, int height, size_t rowBytes);
|
SkTextureCompressor_LATC.h | 18 int width, int height, size_t rowBytes);
|
SkTextureCompressor_R11EAC.h | 18 int width, int height, size_t rowBytes);
|
/external/skia/debugger/QT/ |
SkRasterWidget.cpp | 52 size_t rowBytes; 53 if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) { 57 rowBytes,
|
/external/skia/gm/ |
peekpixels.cpp | 47 size_t rowBytes; 48 const void* addr = surfCanvas->peekPixels(&info, &rowBytes); 49 if (addr && bitmap.installPixels(info, const_cast<void*>(addr), rowBytes)) {
|
/frameworks/base/core/jni/android/graphics/ |
Bitmap.h | 51 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable); 53 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable); 54 Bitmap(void* address, int fd, const SkImageInfo& info, size_t rowBytes, 67 size_t rowBytes() const; 72 void reconfigure(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
|
/external/skia/src/animator/ |
SkDrawBitmap.cpp | 51 SK_MEMBER(rowBytes, Int), 60 rowBytes(0), width(-1), fColor(0), fColorSet(false) { 73 if (rowBytes > 0) 74 SkDebugf("rowBytes=\"%d\" ", rowBytes); 90 SkASSERT(rowBytes >= 0); 93 rowBytes);
|