/external/skia/src/core/ |
D | SkBitmap_scroll.cpp | 81 int rowBytes = this->rowBytes(); // need rowBytes to be signed in scrollRect() local 84 src -= dy * rowBytes; in scrollRect() 87 dst += dy * rowBytes; in scrollRect() 90 src += (height - 1) * rowBytes; in scrollRect() 91 dst += (height - 1) * rowBytes; in scrollRect() 93 rowBytes = -rowBytes; in scrollRect() 113 dst += rowBytes; in scrollRect() 114 src += rowBytes; in scrollRect()
|
D | SkBitmap.cpp | 188 Sk64 rowBytes; in ComputeRowBytes() local 189 rowBytes.setZero(); in ComputeRowBytes() 196 rowBytes.set(width); in ComputeRowBytes() 197 rowBytes.add(7); in ComputeRowBytes() 198 rowBytes.shiftRight(3); in ComputeRowBytes() 202 rowBytes.set(width); in ComputeRowBytes() 206 rowBytes.set(width); in ComputeRowBytes() 207 rowBytes.shiftLeft(1); in ComputeRowBytes() 210 rowBytes.set(width); in ComputeRowBytes() 211 rowBytes.shiftLeft(2); in ComputeRowBytes() [all …]
|
D | SkSpriteBlitter_ARGB32.cpp | 42 size_t dstRB = fDevice->rowBytes(); in blitRect() 43 size_t srcRB = fSource->rowBytes(); in blitRect() 130 unsigned dstRB = fDevice->rowBytes(); in blitRect() 131 unsigned srcRB = fSource->rowBytes(); in blitRect() 177 unsigned dstRB = fDevice->rowBytes(); in blitRect() 178 unsigned srcRB = fSource->rowBytes(); in blitRect() 224 unsigned dstRB = fDevice->rowBytes(); in blitRect() 225 unsigned srcRB = fSource->rowBytes(); in blitRect() 253 unsigned dstRB = fDevice->rowBytes(); in blitRect() 254 unsigned srcRB = fSource->rowBytes(); in blitRect()
|
D | SkBlitter_A8.cpp | 169 device += fDevice.rowBytes(); in blitMask() 183 int rowBytes = fDevice.rowBytes(); in blitV() local 188 device += rowBytes; in blitV() 195 device += rowBytes; in blitV() 215 device += fDevice.rowBytes(); in blitRect() 224 device += fDevice.rowBytes(); in blitRect() 342 device += fDevice.rowBytes(); in blitMask()
|
D | SkBlitter_ARGB32.cpp | 36 dstRow = (SkPMColor*)((char*)dstRow + device.rowBytes()); in SkARGB32_Blit32() 198 uint32_t rowBytes = fDevice.rowBytes(); in blitV() local 201 device = (uint32_t*)((char*)device + rowBytes); in blitV() 214 size_t rowBytes = fDevice.rowBytes(); in blitRect() local 218 device = (uint32_t*)((char*)device + rowBytes); in blitRect() 404 const size_t dstRB = fDevice.rowBytes(); in blitMask()
|
D | SkProcSpriteBlitter.cpp | 21 size_t dstRB = fDevice.rowBytes(); 22 size_t srcRB = fSource.rowBytes();
|
/external/skia/include/gpu/ |
D | GrContext.h | 136 void* srcData, size_t rowBytes); 218 size_t rowBytes); 487 size_t rowBytes) { in readRenderTargetPixels() argument 491 rowBytes, 0); in readRenderTargetPixels() 511 size_t rowBytes) { in writeRenderTargetPixels() argument 513 config, buffer, rowBytes, 0); in writeRenderTargetPixels() 534 size_t rowBytes) { in readTexturePixels() argument 537 config, buffer, rowBytes, 0); in readTexturePixels() 555 size_t rowBytes) { in writeTexturePixels() argument 557 config, buffer, rowBytes, 0); in writeTexturePixels() [all …]
|
/external/skia/src/pdf/ |
D | SkPDFImage.cpp | 35 const int rowBytes = srcRect.width(); in extractImageData() local 36 image = new SkMemoryStream(rowBytes * srcRect.height()); in extractImageData() 39 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes); in extractImageData() 40 dst += rowBytes; in extractImageData() 45 const int rowBytes = srcRect.width(); in extractImageData() local 46 image = new SkMemoryStream(rowBytes * srcRect.height()); in extractImageData() 51 SkPackBits::Unpack8(dst, srcRect.fLeft, rowBytes, in extractImageData() 53 dst += rowBytes; in extractImageData() 59 const int rowBytes = (srcRect.width() * 3 + 1) / 2; in extractImageData() local 61 image = new SkMemoryStream(rowBytes * srcRect.height()); in extractImageData() [all …]
|
/external/skia/src/gpu/ |
D | GrTexture.cpp | 18 size_t rowBytes) { in readPixels() argument 27 config, buffer, rowBytes); in readPixels() 32 size_t rowBytes) { in writePixels() argument 41 config, buffer, rowBytes); in writePixels()
|
D | GrRenderTarget.cpp | 18 size_t rowBytes) { in readPixels() argument 27 config, buffer, rowBytes); in readPixels() 32 size_t rowBytes) { in writePixels() argument 41 config, buffer, rowBytes); in writePixels()
|
D | SkGr.cpp | 42 if (bitmap.width() == bitmap.rowBytes()) { in build_compressed_data() 47 size_t rowBytes = bitmap.rowBytes(); in build_compressed_data() local 51 src += rowBytes; in build_compressed_data() 119 bitmap->rowBytes()); in sk_gr_create_bitmap_texture() 127 bitmap->rowBytes()); in sk_gr_create_bitmap_texture()
|
D | GrGpu.h | 122 const void* srcData, size_t rowBytes); 234 size_t rowBytes) const = 0; 267 GrPixelConfig config, void* buffer, size_t rowBytes, 285 size_t rowBytes); 408 size_t rowBytes) = 0; 439 size_t rowBytes, 446 size_t rowBytes) = 0;
|
/external/skia/src/effects/ |
D | SkEmbossMask.cpp | 99 int rowBytes = mask->fRowBytes; in Emboss() local 105 int next_row = neq_to_mask(y, maxy) & rowBytes; in Emboss() 158 alpha += rowBytes; in Emboss() 159 multiply += rowBytes; in Emboss() 160 additive += rowBytes; in Emboss() 161 prev_row = rowBytes; in Emboss()
|
/external/skia/src/animator/ |
D | SkDrawBitmap.cpp | 51 SK_MEMBER(rowBytes, Int), 60 rowBytes(0), width(-1), fColor(0), fColorSet(false) { in SkDrawBitmap() 73 if (rowBytes > 0) in dump() 74 SkDebugf("rowBytes=\"%d\" ", rowBytes); in dump() 92 SkASSERT(rowBytes >= 0); in onEndElement() 93 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement()
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
D | ImageBufferDataCG.cpp | 78 src.rowBytes = scanlineData->srcRowBytes; in convertScanline() 84 dest.rowBytes = scanlineData->destRowBytes; in convertScanline() 163 src.rowBytes = srcBytesPerRow; in getData() 169 dst.rowBytes = destBytesPerRow; in getData() 212 src.rowBytes = srcBytesPerRow; in getData() 218 dest.rowBytes = destBytesPerRow; in getData() 300 src.rowBytes = srcBytesPerRow; in putData() 306 dst.rowBytes = destBytesPerRow; in putData() 349 src.rowBytes = srcBytesPerRow; in putData() 355 dest.rowBytes = destBytesPerRow; in putData()
|
/external/skia/src/gpu/gl/ |
D | GrGpuGL.h | 46 size_t rowBytes) const SK_OVERRIDE; 103 size_t rowBytes); 124 size_t rowBytes, 130 size_t rowBytes) SK_OVERRIDE; 230 size_t rowBytes);
|
D | GrGpuGL.cpp | 561 size_t rowBytes) { in onWriteTexturePixels() argument 578 config, buffer, rowBytes); in onWriteTexturePixels() 587 size_t* rowBytes) { in adjust_pixel_ops_params() argument 588 if (!*rowBytes) { in adjust_pixel_ops_params() 589 *rowBytes = *width * bpp; in adjust_pixel_ops_params() 599 (subRect.fTop - *top) * *rowBytes + (subRect.fLeft - *left) * bpp); in adjust_pixel_ops_params() 614 size_t rowBytes) { in uploadTexData() argument 619 &width, &height, &data, &rowBytes)) { in uploadTexData() 677 if (rowBytes != trimRowBytes) { in uploadTexData() 678 GrGLint rowLength = static_cast<GrGLint>(rowBytes / bpp); in uploadTexData() [all …]
|
/external/webkit/Tools/DumpRenderTree/cg/ |
D | ImageDiffCG.cpp | 96 size_t rowBytes = width * 4; in createDifferenceImage() local 99 void* baseBuffer = calloc(height, rowBytes); in createDifferenceImage() 100 …aseContext(AdoptCF, CGBitmapContextCreate(baseBuffer, width, height, 8, rowBytes, CGImageGetColorS… in createDifferenceImage() 104 void* buffer = calloc(height, rowBytes); in createDifferenceImage() 105 …xtRef> context(AdoptCF, CGBitmapContextCreate(buffer, width, height, 8, rowBytes, CGImageGetColorS… in createDifferenceImage()
|
/external/skia/tests/ |
D | WritePixelsTest.cpp | 138 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in fillCanvas() 234 size_t canvasRowBytes = devBmp.rowBytes(); in checkWrite() 299 size_t rowBytes = c.fTightRowBytes ? 0 : 4 * DEV_W + 100; in setupCanvas() local 300 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H, rowBytes); in setupCanvas() 305 if (rowBytes) { in setupCanvas() 324 size_t rowBytes = tightRowBytes ? 0 : 4 * w + 60; in setupBitmap() local 325 bitmap->setConfig(SkBitmap::kARGB_8888_Config, w, h, rowBytes); in setupBitmap() 333 uint32_t* pixel = reinterpret_cast<uint32_t*>(pixels + y * bitmap->rowBytes() + x * 4); in setupBitmap()
|
D | ReadPixelsTest.cpp | 110 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in fillCanvas() 132 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->byte… in fillBitmap() 187 …uint32_t pixel = *reinterpret_cast<SkPMColor*>(pixels + by * bitmap.rowBytes() + bx * bitmap.bytes… in checkRead() 230 int rowBytes = 0; in init_bitmap() local 238 rowBytes = w * sizeof(SkPMColor) + 16 * sizeof(SkPMColor); in init_bitmap() 244 bitmap->setConfig(SkBitmap::kARGB_8888_Config, w, h, rowBytes); in init_bitmap()
|
D | BitmapCopyTest.cpp | 327 REPORTER_ASSERT(reporter, copy.rowBytes() <= 4); in TestBitmapCopy() 509 subset.copyPixelsTo(buf, bufSize, bufBm.rowBytes() * 3) in TestBitmapCopy() 524 subset.rowBytes()); in TestBitmapCopy() 538 subset.rowBytes()+1); in TestBitmapCopy() 543 subset.rowBytes()+1) == successExpected); in TestBitmapCopy() 556 subset.copyPixelsTo(buf, bufSize, bufBm.rowBytes()-1) in TestBitmapCopy() 583 subset.copyPixelsFrom(buf, bufSize, bufBm.rowBytes()) == in TestBitmapCopy() 593 subset.copyPixelsFrom(buf, 1, subset.rowBytes()) == in TestBitmapCopy()
|
/external/webkit/Tools/DumpRenderTree/mac/ |
D | PixelDumpSupportMac.mm | 108 …Context> createBitmapContext(size_t pixelsWide, size_t pixelsHigh, size_t& rowBytes, void*& buffer) 110 rowBytes = (4 * pixelsWide + 63) & ~63; // Use a multiple of 64 bytes to improve CG performance 112 buffer = calloc(pixelsHigh, rowBytes); 128 …CGContextRef context = CGBitmapContextCreate(buffer, pixelsWide, pixelsHigh, 8, rowBytes, colorSpa… 149 size_t rowBytes = 0; 151 …RefPtr<BitmapContext> bitmapContext = createBitmapContext(pixelsWide, pixelsHigh, rowBytes, buffer… 211 void *flipBuffer = calloc(pixelsHigh, rowBytes); 213 glPixelStorei(GL_PACK_ROW_LENGTH, rowBytes / 4); 222 …bcopy((char*)flipBuffer + rowBytes * i, (char*)buffer + rowBytes * (pixelsHigh - i - 1), pixelsWid… 273 size_t rowBytes = 0; [all …]
|
/external/webkit/Source/WebKit/android/plugins/ |
D | SkANP.cpp | 74 dst->setConfig(config, src.width, src.height, src.rowBytes); in SetBitmap() 99 dst->rowBytes = src.rowBytes(); in SetBitmap()
|
/external/skia/src/images/ |
D | SkImageDecoder_libgif.cpp | 251 const int rowBytes = bm->rowBytes(); in onDecode() local 277 scanline += desc.Top * rowBytes + desc.Left; in onDecode() 286 uint8_t* row = scanline + iter.currY() * rowBytes; in onDecode() 300 scanline += rowBytes; in onDecode()
|
/external/webkit/Tools/WebKitTestRunner/cg/ |
D | TestInvocationCG.cpp | 53 size_t rowBytes = (4 * pixelsWide + 63) & ~63; in createCGContextFromImage() local 54 void* buffer = calloc(pixelsHigh, rowBytes); in createCGContextFromImage() 57 …CGContextRef context = CGBitmapContextCreate(buffer, pixelsWide, pixelsHigh, 8, rowBytes, colorSpa… in createCGContextFromImage()
|