/external/skia/src/lazy/ |
SkDiscardablePixelRef.cpp | 14 size_t rowBytes, 19 , fRowBytes(rowBytes) 129 (info, autoGenerator.detach(), dst->rowBytes(), factory)));
|
/external/skia/src/core/ |
SkBitmap.cpp | 107 bool SkBitmap::setInfo(const SkImageInfo& info, size_t rowBytes) { 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) { [all...] |
SkDevice.cpp | 187 bool SkBaseDevice::readPixels(const SkImageInfo& info, void* dstP, size_t rowBytes, int x, int y) { 191 SkASSERT(rowBytes >= info.minRowBytes()); 198 return this->onReadPixels(info, dstP, rowBytes, x, y); 201 bool SkBaseDevice::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, 206 SkASSERT(rowBytes >= info.minRowBytes()); 213 return this->onWritePixels(info, pixels, rowBytes, x, y); 224 void* SkBaseDevice::accessPixels(SkImageInfo* info, size_t* rowBytes) { 230 if (NULL == rowBytes) { 231 rowBytes = &tmpRowBytes; 233 return this->onAccessPixels(info, rowBytes); [all...] |
SkSpriteBlitterTemplate.h | 25 size_t dstRB = fDevice->rowBytes(); 26 size_t srcRB = fSource->rowBytes();
|
SkBitmapDevice.cpp | 114 fBitmap = bm; // intent is to use bm's pixelRef (and rowbytes/config) 139 void* SkBitmapDevice::onAccessPixels(SkImageInfo* info, size_t* rowBytes) { 142 *rowBytes = fBitmap.rowBytes(); 161 size_t dstRowBytes = fBitmap.rowBytes(); 357 const void* SkBitmapDevice::peekPixels(SkImageInfo* info, size_t* rowBytes) { 363 if (rowBytes) { 364 *rowBytes = fBitmap.rowBytes();
|
SkBlitter_A8.cpp | 169 device += fDevice.rowBytes(); 183 size_t rowBytes = fDevice.rowBytes(); 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...] |
/external/skia/include/utils/mac/ |
SkCGUtils.h | 36 * Copy the pixels from src into the memory specified by info/rowBytes/dstPixels. On failure, 39 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* dstPixels,
|
/external/skia/src/codec/ |
SkCodec_libpng.h | 53 size_t rowBytes, const Options&, SkPMColor*, int* ctableCount);
|
SkCodec_libpng.cpp | 428 void* dst, size_t rowBytes, 473 dst, rowBytes, options.fZeroInitialized)); 515 size_t rowBytes, const Options& options, 528 const Result result = this->initializeSwizzler(requestedInfo, dst, rowBytes, 548 const size_t rowBytes = width * bpp; 558 row += rowBytes; 566 row += rowBytes; 605 SkImageGenerator::Result onGetScanlines(void* dst, int count, size_t rowBytes) override { 615 dst = SkTAddOffset<void>(dst, rowBytes); 663 // Note: We set dst to NULL since we do not know it yet. rowBytes is not needed [all...] |
/external/skia/src/image/ |
SkImage.cpp | 28 const void* SkImage::peekPixels(SkImageInfo* info, size_t* rowBytes) const { 34 if (NULL == rowBytes) { 35 rowBytes = &rowBytesStorage; 37 return as_IB(this)->onPeekPixels(info, rowBytes);
|
SkImage_Gpu.cpp | 54 dst->getPixels(), dst->rowBytes())) { 64 static void apply_premul(const SkImageInfo& info, void* pixels, size_t rowBytes) { 85 bool SkImage_Gpu::onReadPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, 95 pixels, rowBytes, flags)) { 107 apply_premul(info, pixels, rowBytes);
|
/external/skia/include/core/ |
SkBitmap.h | 84 * Return the rowbytes expressed as a number of pixels (like width and height). 115 size_t rowBytes() const { return fRowBytes; } 132 /** Return the byte size of the pixels, based on the height and rowBytes. 154 * than computeSize64() if there is any rowbytes padding beyond the width. 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); [all...] |
SkImageInfo.h | 260 int64_t getSafeSize64(size_t rowBytes) const { 264 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel(); 267 size_t getSafeSize(size_t rowBytes) const { 268 return (size_t)this->getSafeSize64(rowBytes); 271 bool validRowBytes(size_t rowBytes) const { 273 return rowBytes >= rb;
|
SkDevice.h | 83 bool writePixels(const SkImageInfo&, const void*, size_t rowBytes, int x, int y); 85 void* accessPixels(SkImageInfo* info, size_t* rowBytes); 244 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y); 287 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes); 308 virtual void* onAccessPixels(SkImageInfo* info, size_t* rowBytes); 381 // used to change the backend's pixels (and possibly config/rowbytes)
|
/external/skia/src/images/ |
SkImageEncoder.cpp | 54 SkData* SkImageEncoder::EncodeData(const SkImageInfo& info, const void* pixels, size_t rowBytes, 57 if (!bm.installPixels(info, const_cast<void*>(pixels), rowBytes)) {
|
/external/skia/src/utils/mac/ |
SkCreateCGImageRef.cpp | 148 bitmap->rowBytes(), colorSpace, info, dataRef, 228 bitsPerComponent, bitmap.rowBytes(), 243 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* pixels, 262 rowBytes, cs, cg_bitmap_info); 287 if (!SkCopyPixelsFromCGImage(tmp.info(), tmp.rowBytes(), tmp.getPixels(), image)) {
|
/external/skia/tests/ |
CodexTest.cpp | 55 codec->getPixels(info, bm.getPixels(), bm.rowBytes(), NULL, NULL, NULL); 64 codec->getPixels(info, bm.getPixels(), bm.rowBytes(), NULL, NULL, NULL); 179 size_t rowBytes = scaledDims.width() * sizeof(SkPMColor); 180 size_t totalBytes = scaledInfo.getSafeSize(rowBytes); 184 codec->getPixels(scaledInfo, pixels.get(), rowBytes, NULL, NULL, NULL);
|
/external/skia/example/ |
HelloWorld.cpp | 161 size_t rowBytes; 163 const void* pixels = snap->peekPixels(&info, &rowBytes); 169 rowBytes,
|
/external/skia/src/gpu/ |
GrTextureProvider.cpp | 21 const void* srcData, size_t rowBytes) { 34 srcData, rowBytes)) { 43 return fGpu->createTexture(desc, budgeted, srcData, rowBytes);
|
GrGpu.cpp | 67 const void* srcData, size_t rowBytes) { 121 tex = this->onCreateTexture(desc, lifeCycle, srcData, rowBytes); 227 size_t rowBytes) { 230 config, buffer, rowBytes); 236 size_t rowBytes) { 239 config, buffer, rowBytes)) {
|
/external/skia/src/opts/ |
SkBitmapProcState_opts_mips_dsp.cpp | 24 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes()); 155 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes());
|
/external/skia/src/utils/ios/ |
SkImageDecoder_iOS.mm | 46 8, bm->rowBytes(), cs, BITMAP_INFO);
|
/external/skia/src/ports/ |
SkFontHost_FreeType_common.cpp | 380 target.pitch = glyph.rowBytes(); 385 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight); 437 unscaledBitmapAlias.fRowBytes = unscaledBitmap.rowBytes(); 447 bitmapRowBytes = glyph.rowBytes(); 474 packA8ToA1(dstMask, dstBitmap.getAddr8(0, 0), dstBitmap.rowBytes()); 483 dst = (uint16_t*)((char*)dst + glyph.rowBytes()); 484 src += dstBitmap.rowBytes(); 492 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight); 501 unsigned rowBytes = glyph.rowBytes(); [all...] |
/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 37 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) 41 reconfigure(info, rowBytes, ctable); 51 void reconfigure(const SkImageInfo& newInfo, size_t rowBytes, SkColorTable* ctable) { 55 mRowBytes = rowBytes; 84 // Can't mark as override since SkPixelRef::rowBytes isn't virtual 86 // on calling rowBytes() on an unlocked pixelref, which it will be 89 size_t rowBytes() const { return mRowBytes; } 129 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) 134 mPixelRef.reset(new WrappedPixelRef(this, address, info, rowBytes, ctable)); 141 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable [all...] |
/external/skia/bench/ |
WritePixelsBench.cpp | 60 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
|