/external/skia/bench/ |
H A D | DecodingBench.cpp | 71 const size_t rowBytes = bm.info().minRowBytes(); local 72 fPixelStorage.reset(bm.info().getSafeSize(rowBytes)); 86 fPixelStorage, bm->rowBytes(), ct))->unref();
|
H A D | nanobench.cpp | 692 const size_t rowBytes = info.minRowBytes(); local 693 SkAutoMalloc storage(info.getSafeSize(rowBytes)); 700 info, storage.get(), rowBytes, NULL, colors,
|
/external/skia/debugger/QT/ |
H A D | SkDrawCommandGeometryWidget.cpp | 45 size_t rowBytes; local 46 if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) { 64 rowBytes, local
|
H A D | SkRasterWidget.cpp | 52 size_t rowBytes; local 53 if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) { 57 rowBytes, local
|
/external/skia/example/ |
H A D | HelloWorld.cpp | 161 size_t rowBytes; local 163 const void* pixels = snap->peekPixels(&info, &rowBytes); 169 rowBytes,
|
/external/skia/gm/ |
H A D | peekpixels.cpp | 47 size_t rowBytes; variable 48 const void* addr = surfCanvas->peekPixels(&info, &rowBytes); 49 if (addr && bitmap.installPixels(info, const_cast<void*>(addr), rowBytes)) {
|
/external/skia/include/codec/ |
H A D | 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) { argument 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/include/core/ |
H A D | SkBitmap.h | 115 size_t rowBytes() const { return fRowBytes; } function in class:SkBitmap 132 /** Return the byte size of the pixels, based on the height and rowBytes. 217 bool setInfo(const SkImageInfo&, size_t rowBytes = 0); 235 * rowBytes. If the request cannot be met (e.g. the info is invalid or 236 * the requested rowBytes are not compatible with the info 237 * (e.g. rowBytes < info.minRowBytes() or rowBytes is not aligned with 241 bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo& info, size_t rowBytes); 243 void allocPixels(const SkImageInfo& info, size_t rowBytes) { argument 244 if (!this->tryAllocPixels(info, rowBytes)) { 284 installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) argument [all...] |
H A D | SkCanvas.h | 75 static SkCanvas* NewRasterDirectN32(int width, int height, SkPMColor* pixels, size_t rowBytes) { argument 76 return NewRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels, rowBytes); 194 * return the ImageInfo, rowBytes and origin. The returned address is only valid 199 * On failure, returns NULL and the info, rowBytes, and origin parameters are ignored. 201 void* accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin = NULL); 207 * return the ImageInfo and rowBytes. The returned address is only valid 212 * On failure, returns NULL and the info and rowBytes parameters are 215 const void* peekPixels(SkImageInfo* info, size_t* rowBytes); 218 * Copy the pixels from the base-layer into the specified buffer (pixels + rowBytes), 263 * then we have two sets of pixels (of equal size), the "src" specified by info+pixels+rowBytes 1473 size_t rowBytes() const { return fRowBytes; } function in class:SkAutoROCanvasPixels [all...] |
H A D | SkPixelRef.h | 71 size_t rowBytes() const { return fRec.fRowBytes; } function in class:SkPixelRef 201 * If any planes or rowBytes is NULL, this should output the sizes and return true 204 * If all planes and rowBytes are not NULL, then it should copy the associated Y,U,V data 211 bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], argument 213 return this->onGetYUV8Planes(sizes, planes, rowBytes, colorSpace); 289 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], 310 void setPreLocked(void*, size_t rowBytes, SkColorTable*); 362 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) = 0;
|
H A D | SkPixelSerializer.h | 35 SkData* encodePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes) { argument 36 return this->onEncodePixels(info, pixels, rowBytes); 50 virtual SkData* onEncodePixels(const SkImageInfo&, const void* pixels, size_t rowBytes) = 0;
|
/external/skia/samplecode/ |
H A D | SampleApp.cpp | 298 bm.rowBytes(), 1249 size_t rowBytes; local 1250 void* addr = orig->accessTopLayerPixels(&info, &rowBytes); 1261 p += y * n.height() * rowBytes; 1263 surfs[index] = SkSurface::NewRasterDirect(n, p, rowBytes);
|
/external/skia/src/animator/ |
H A D | 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); local
|
H A D | SkDrawBitmap.h | 46 int32_t rowBytes; member in class:SkDrawBitmap
|
/external/skia/src/c/ |
H A D | sk_surface.cpp | 202 size_t rowBytes) { 207 return (sk_image_t*)SkImage::NewRasterCopy(info, pixels, rowBytes); 402 size_t rowBytes) { 407 return (sk_surface_t*)SkSurface::NewRasterDirect(info, pixels, rowBytes); 201 sk_image_new_raster_copy(const sk_imageinfo_t* cinfo, const void* pixels, size_t rowBytes) argument 401 sk_surface_new_raster_direct(const sk_imageinfo_t* cinfo, void* pixels, size_t rowBytes) argument
|
/external/skia/src/codec/ |
H A D | SkCodec_libbmp.cpp | 749 const size_t rowBytes = SkAlign4(compute_row_bytes(width, fBitsPerPixel)); local 753 srcBuffer(SkNEW_ARRAY(uint8_t, height*rowBytes)); 765 if (stream()->read(srcRow, rowBytes) != rowBytes) { 784 srcRow = SkTAddOffset<uint8_t>(srcRow, rowBytes); 802 srcRow = SkTAddOffset<uint8_t>(srcRow, rowBytes); 973 const size_t rowBytes = compute_row_bytes(numPixels, local 979 (int) totalBytes - currByte < SkAlign2(rowBytes)) { 1020 if (!SkIsAlign2(rowBytes)) { 1083 const size_t rowBytes [all...] |
H A D | SkCodec_wbmp.cpp | 105 size_t rowBytes, 147 dst += rowBytes; 103 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options&, SkPMColor ctable[], int* ctableCount) argument
|
H A D | SkSwizzler.cpp | 31 const size_t rowBytes = compute_row_bytes_ppb(width, pixelsPerByte); local 34 for (uint32_t byte = 0; byte < rowBytes; byte++) { 54 const size_t rowBytes = compute_row_bytes_ppb(width, pixelsPerByte); local 57 for (uint32_t byte = 0; byte < rowBytes; byte++) { 416 size_t rowBytes) 422 , fDstRowBytes(rowBytes) 414 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc, const SkImageInfo& info, void* dst, size_t rowBytes) argument
|
/external/skia/src/core/ |
H A D | SkBitmap.cpp | 107 bool SkBitmap::setInfo(const SkImageInfo& info, size_t rowBytes) { argument 114 // require that rowBytes fit in 31bits 119 if ((int64_t)rowBytes != (int32_t)rowBytes) { 128 rowBytes = 0; 129 } else if (0 == rowBytes) { 130 rowBytes = (size_t)mrb; 131 } else if (!info.validRowBytes(rowBytes)) { 138 fRowBytes = SkToU32(rowBytes); 280 bool SkBitmap::tryAllocPixels(const SkImageInfo& requestedInfo, size_t rowBytes) { argument 464 size_t rowBytes = fInfo.minRowBytes(); local 680 const int rowBytes = fRowBytes; local 1020 uint32_t rowBytes; local [all...] |
H A D | SkBitmapDevice.cpp | 139 void* SkBitmapDevice::onAccessPixels(SkImageInfo* info, size_t* rowBytes) { argument 142 *rowBytes = fBitmap.rowBytes(); 161 size_t dstRowBytes = fBitmap.rowBytes(); 357 const void* SkBitmapDevice::peekPixels(SkImageInfo* info, size_t* rowBytes) { argument 363 if (rowBytes) { 364 *rowBytes = fBitmap.rowBytes();
|
H A D | SkBitmap_scroll.cpp | 67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed local 70 src -= dy * rowBytes; 73 dst += dy * rowBytes; 76 src += (height - 1) * rowBytes; 77 dst += (height - 1) * rowBytes; 79 rowBytes = -rowBytes; 99 dst += rowBytes; [all...] |
H A D | SkBlitter.cpp | 87 U8CPU left_mask, int rowBytes, 92 while (--rowBytes >= 0) { 94 if (rowBytes == 0) { 85 bits_to_runs(SkBlitter* blitter, int x, int y, const uint8_t bits[], U8CPU left_mask, int rowBytes, U8CPU right_mask) argument
|
H A D | SkBlitter_A8.cpp | 169 device += fDevice.rowBytes(); 183 size_t rowBytes = fDevice.rowBytes(); local 188 device += rowBytes; 195 device += rowBytes; 215 device += fDevice.rowBytes(); 224 device += fDevice.rowBytes(); 349 device += fDevice.rowBytes(); 396 const size_t dstRB = fDevice.rowBytes(); 405 const size_t dstRB = fDevice.rowBytes(); [all...] |
H A D | SkBlitter_ARGB32.cpp | 36 dstRow = (SkPMColor*)((char*)dstRow + device.rowBytes()); 121 device = (uint32_t*)((char*)device + fDevice.rowBytes()); 212 device = (uint32_t*)((char*)device + fDevice.rowBytes()); 231 size_t rowBytes = fDevice.rowBytes(); local 234 device = (uint32_t*)((char*)device + rowBytes); 247 size_t rowBytes = fDevice.rowBytes(); local 251 device = (uint32_t*)((char*)device + rowBytes); 305 device = (uint32_t*)((char*)device + fDevice.rowBytes()); [all...] |
H A D | SkCanvas.cpp | 717 if (bm.getPixels() && this->readPixels(bm.info(), bm.getPixels(), bm.rowBytes(), x, y)) { 739 if (!this->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), r.x(), r.y())) { 746 bool SkCanvas::readPixels(const SkImageInfo& dstInfo, void* dstP, size_t rowBytes, int x, int y) { argument 753 SkReadPixelsRec rec(dstInfo, dstP, rowBytes, x, y); 769 return this->writePixels(bm.info(), bm.getPixels(), bm.rowBytes(), x, y); 774 bool SkCanvas::writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes, argument 783 if (NULL == pixels || rowBytes < origInfo.minRowBytes()) { 809 pixels = ((const char*)pixels - y * rowBytes - x * info.bytesPerPixel()); 815 return device->writePixels(info, pixels, rowBytes, target.x(), target.y()); 1132 const void* SkCanvas::peekPixels(SkImageInfo* info, size_t* rowBytes) { argument 1136 onPeekPixels(SkImageInfo* info, size_t* rowBytes) argument 1141 accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin) argument 1149 onAccessTopLayerPixels(SkImageInfo* info, size_t* rowBytes) argument 2660 NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) argument [all...] |