/external/skia/samplecode/ |
H A D | SampleApp.cpp | 302 bm.rowBytes());
|
H A D | SampleHairline.cpp | 65 size_t rb = bm.rowBytes(); 233 bm.getAddr32(MARGIN, MARGIN), bm.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); 92 fBitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType), rowBytes); local
|
H A D | SkDrawBitmap.h | 46 int32_t rowBytes; member in class:SkDrawBitmap
|
/external/skia/src/core/ |
H A D | SkBitmap.cpp | 132 int64_t rowBytes = sk_64_mul(SkColorTypeBytesPerPixel(ct), width); local 133 return rowBytes * height; 186 bool SkBitmap::setInfo(const SkImageInfo& origInfo, size_t rowBytes) { argument 194 // require that rowBytes fit in 31bits 199 if ((int64_t)rowBytes != (int32_t)rowBytes) { 208 rowBytes = 0; 209 } else if (0 == rowBytes) { 210 rowBytes = (size_t)mrb; 211 } else if (rowBytes < inf 223 setConfig(Config config, int width, int height, size_t rowBytes, SkAlphaType alphaType) argument 524 size_t rowBytes = fInfo.minRowBytes(); local 739 const int rowBytes = fRowBytes; local 1045 uint32_t rowBytes; local 1301 size_t rowBytes = buffer.readInt(); local [all...] |
H A D | SkBitmapDevice.cpp | 149 void* SkBitmapDevice::onAccessPixels(SkImageInfo* info, size_t* rowBytes) { argument 152 *rowBytes = fBitmap.rowBytes(); 223 size_t dstRowBytes = fBitmap.rowBytes(); 253 const size_t srcRowBytes = fBitmap.rowBytes(); 442 const void* SkBitmapDevice::peekPixels(SkImageInfo* info, size_t* rowBytes) { argument 448 if (rowBytes) { 449 *rowBytes = fBitmap.rowBytes();
|
H A D | SkBitmapProcState_sample.h | 52 size_t rb = s.fBitmap->rowBytes(); 100 xy[0] * s.fBitmap->rowBytes()); 149 size_t rb = s.fBitmap->rowBytes(); 195 size_t rb = s.fBitmap->rowBytes();
|
H A D | SkBitmapProcState_shaderproc.h | 47 size_t rb = s.fBitmap->rowBytes();
|
H A D | SkBitmapScaler.cpp | 307 BGRAConvolve2D(sourceSubset, static_cast<int>(source.rowBytes()), 309 static_cast<int>(result.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 | SkBlitBWMaskTemplate.h | 34 size_t bitmap_rowBytes = bitmap.rowBytes();
|
H A D | SkBlitMask_D32.cpp | 273 proc(device.getAddr32(x, y), device.rowBytes(), mask.getAddr(x, y),
|
H A D | SkBlitRow_D32.cpp | 194 size_t rowBytes, SkPMColor color) { 210 dst = (SkPMColor*) ((char*)dst + rowBytes); 217 dst = (SkPMColor*) ((char*)dst + rowBytes); 223 dst = (SkPMColor*) ((char*)dst + rowBytes); 229 dst = (SkPMColor*) ((char*)dst + rowBytes); 235 dst = (SkPMColor*) ((char*)dst + rowBytes); 193 ColorRect32(SkPMColor* dst, int width, int height, size_t rowBytes, SkPMColor color) argument
|
H A D | SkBlitter.cpp | 86 U8CPU left_mask, int rowBytes, 91 while (--rowBytes >= 0) { 93 if (rowBytes == 0) { 84 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()); 199 size_t rowBytes = fDevice.rowBytes(); local 202 device = (uint32_t*)((char*)device + rowBytes); 215 size_t rowBytes = fDevice.rowBytes(); local 218 fColorRect32Proc(device, width, height, rowBytes, color); 222 device = (uint32_t*)((char*)device + rowBytes); 341 size_t deviceRB = fDevice.rowBytes(); 517 const size_t dstRB = fDevice.rowBytes(); [all...] |
H A D | SkBlitter_RGB16.cpp | 216 size_t deviceRB = fDevice.rowBytes() - (width << 1); 386 size_t deviceRB = fDevice.rowBytes() - (width << 1); 476 size_t deviceRB = fDevice.rowBytes(); 492 size_t deviceRB = fDevice.rowBytes(); 636 size_t deviceRB = fDevice.rowBytes() - (width << 1); 657 size_t deviceRB = fDevice.rowBytes(); 673 size_t deviceRB = fDevice.rowBytes(); 710 size_t dstRB = fDevice.rowBytes(); 852 size_t dstRB = fDevice.rowBytes();
|
H A D | SkCanvas.cpp | 631 if (bm.getPixels() && this->readPixels(bm.info(), bm.getPixels(), bm.rowBytes(), x, y)) { 653 if (!this->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), r.x(), r.y())) { 660 bool SkCanvas::readPixels(const SkImageInfo& origInfo, void* dstP, size_t rowBytes, int x, int y) { argument 668 if (NULL == dstP || rowBytes < origInfo.minRowBytes()) { 699 dstP = ((char*)dstP - y * rowBytes - x * info.bytesPerPixel()); 702 return device->readPixels(info, dstP, rowBytes, srcR.x(), srcR.y()); 712 return this->writePixels(bm.info(), bm.getPixels(), bm.rowBytes(), x, y); 717 bool SkCanvas::writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes, argument 726 if (NULL == pixels || rowBytes < origInfo.minRowBytes()) { 754 pixels = ((const char*)pixels - y * rowBytes 1045 peekPixels(SkImageInfo* info, size_t* rowBytes) argument 1049 onPeekPixels(SkImageInfo* info, size_t* rowBytes) argument 1054 accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin) argument 1062 onAccessTopLayerPixels(SkImageInfo* info, size_t* rowBytes) argument 2587 NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) argument [all...] |
H A D | SkDevice.cpp | 80 bool SkBaseDevice::readPixels(const SkImageInfo& info, void* dstP, size_t rowBytes, int x, int y) { argument 84 SkASSERT(rowBytes >= info.minRowBytes()); 91 return this->onReadPixels(info, dstP, rowBytes, x, y); 94 bool SkBaseDevice::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, argument 99 SkASSERT(rowBytes >= info.minRowBytes()); 106 return this->onWritePixels(info, pixels, rowBytes, x, y); 117 void* SkBaseDevice::accessPixels(SkImageInfo* info, size_t* rowBytes) { argument 123 if (NULL == rowBytes) { 124 rowBytes = &tmpRowBytes; 126 return this->onAccessPixels(info, rowBytes); 129 onAccessPixels(SkImageInfo* info, size_t* rowBytes) argument [all...] |
H A D | SkDistanceFieldGen.cpp | 464 int width, int height, int rowBytes) { 479 memcpy(currDestPtr, currSrcScanLine, rowBytes); 480 currSrcScanLine += rowBytes; 492 int width, int height, int rowBytes) { 515 currSrcScanLine += rowBytes; 462 SkGenerateDistanceFieldFromA8Image(unsigned char* distanceField, const unsigned char* image, int width, int height, int rowBytes) argument 490 SkGenerateDistanceFieldFromBWImage(unsigned char* distanceField, const unsigned char* image, int width, int height, int rowBytes) argument
|
H A D | SkDistanceFieldGen.h | 34 * @param rowBytes Size of each row in the image, in bytes 38 int w, int h, int rowBytes); 47 * @param rowBytes Size of each row in the image, in bytes 51 int w, int h, int rowBytes);
|
H A D | SkDraw.cpp | 242 const size_t rowBytes = bitmap.rowBytes(); local 246 pixels += rect.fTop * rowBytes + (rect.fLeft << shiftPerPixel); 249 pixels += rowBytes; 337 size_t rb = bitmap->rowBytes(); 358 size_t rb = bitmap->rowBytes(); 1133 mask.fRowBytes = SkToU32(bitmap.rowBytes()); 1449 mask.fRowBytes = glyph.rowBytes(); 1479 mask.fRowBytes = glyph.rowBytes();
|
H A D | SkGlyph.h | 63 unsigned rowBytes() const { function in struct:SkGlyph
|
H A D | SkGlyphCache.cpp | 115 imageUsed += g.fHeight * g.rowBytes(); 386 glyph.rowBytes()); 393 glyph.rowBytes());
|
H A D | SkImageGenerator.cpp | 19 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument 27 if (rowBytes < info.minRowBytes()) { 43 bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount); 51 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { argument 56 return this->getPixels(info, pixels, rowBytes, NULL, NULL);
|