HomeSort by relevance Sort by last modified time
    Searched defs:rowBytes (Results 1 - 25 of 42) sorted by null

1 2

  /external/skia/legacy/src/core/
SkBitmap_scroll.cpp 81 int rowBytes = this->rowBytes(); // need rowBytes to be signed
84 src -= dy * rowBytes;
87 dst += dy * rowBytes;
90 src += (height - 1) * rowBytes;
91 dst += (height - 1) * rowBytes;
92 // now invert rowbytes so we copy backwards in the loop
93 rowBytes = -rowBytes;
    [all...]
SkBlitter_A8.cpp 169 device += fDevice.rowBytes();
183 int rowBytes = fDevice.rowBytes();
188 device += rowBytes;
195 device += rowBytes;
215 device += fDevice.rowBytes();
224 device += fDevice.rowBytes();
342 device += fDevice.rowBytes();
SkBlitter_ARGB32.cpp 36 dstRow = (SkPMColor*)((char*)dstRow + device.rowBytes());
198 uint32_t rowBytes = fDevice.rowBytes();
201 device = (uint32_t*)((char*)device + rowBytes);
214 size_t rowBytes = fDevice.rowBytes();
218 device = (uint32_t*)((char*)device + rowBytes);
404 const size_t dstRB = fDevice.rowBytes();
  /external/skia/src/core/
SkBitmap_scroll.cpp 85 int rowBytes = this->rowBytes(); // need rowBytes to be signed
88 src -= dy * rowBytes;
91 dst += dy * rowBytes;
94 src += (height - 1) * rowBytes;
95 dst += (height - 1) * rowBytes;
96 // now invert rowbytes so we copy backwards in the loop
97 rowBytes = -rowBytes;
    [all...]
SkBlitter_A8.cpp 169 device += fDevice.rowBytes();
183 int rowBytes = fDevice.rowBytes();
188 device += rowBytes;
195 device += rowBytes;
215 device += fDevice.rowBytes();
224 device += fDevice.rowBytes();
342 device += fDevice.rowBytes();
SkGlyph.h 43 * Compute the rowbytes for the specified width and mask-format.
61 unsigned rowBytes() const {
SkBlitter_ARGB32.cpp 36 dstRow = (SkPMColor*)((char*)dstRow + device.rowBytes());
199 uint32_t rowBytes = fDevice.rowBytes();
202 device = (uint32_t*)((char*)device + rowBytes);
215 size_t rowBytes = fDevice.rowBytes();
218 fColorRect32Proc(device, width, height, rowBytes, color);
222 device = (uint32_t*)((char*)device + rowBytes);
339 size_t deviceRB = fDevice.rowBytes();
514 const size_t dstRB = fDevice.rowBytes();
    [all...]
  /external/skia/legacy/src/animator/
SkDrawBitmap.h 46 int32_t rowBytes;
  /external/skia/src/animator/
SkDrawBitmap.h 46 int32_t rowBytes;
  /external/skia/src/gpu/
SkGr.cpp 42 if (bitmap.width() == bitmap.rowBytes()) {
47 size_t rowBytes = bitmap.rowBytes();
51 src += rowBytes;
116 // "rowBytes", since they are the same now.
142 return ctx->createTexture(params, desc, cacheID, bitmap->getPixels(), bitmap->rowBytes());
154 bitmap->rowBytes());
  /external/skia/src/image/
SkSurface_Raster.cpp 39 bool SkSurface_Raster::Valid(const SkImage::Info& 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 = (uint64_t)info.fHeight * rowBytes;
142 SkSurface* SkSurface::NewRasterDirect(const SkImage::Info& info, void* pixels, size_t rowBytes) {
143 if (!SkSurface_Raster::Valid(info, rowBytes)) {
150 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes));
159 size_t rowBytes = SkImageMinRowBytes(info)
    [all...]
  /external/webkit/Tools/WebKitTestRunner/cg/
TestInvocationCG.cpp 53 size_t rowBytes = (4 * pixelsWide + 63) & ~63;
54 void* buffer = calloc(pixelsHigh, rowBytes);
57 CGContextRef context = CGBitmapContextCreate(buffer, pixelsWide, pixelsHigh, 8, rowBytes, colorSpace, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host);
  /external/skia/legacy/src/effects/
SkEmbossMask.cpp 99 int rowBytes = mask->fRowBytes;
105 int next_row = neq_to_mask(y, maxy) & rowBytes;
158 alpha += rowBytes;
159 multiply += rowBytes;
160 additive += rowBytes;
161 prev_row = rowBytes;
  /external/skia/src/effects/
SkEmbossMask.cpp 99 int rowBytes = mask->fRowBytes;
105 int next_row = neq_to_mask(y, maxy) & rowBytes;
158 alpha += rowBytes;
159 multiply += rowBytes;
160 additive += rowBytes;
161 prev_row = rowBytes;
  /external/skia/src/pdf/
SkPDFImage.cpp 35 const int rowBytes = srcRect.width();
36 image = new SkMemoryStream(rowBytes * srcRect.height());
39 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes);
40 dst += rowBytes;
45 const int rowBytes = srcRect.width();
46 image = new SkMemoryStream(rowBytes * srcRect.height());
51 SkPackBits::Unpack8(dst, srcRect.fLeft, rowBytes,
53 dst += rowBytes;
59 const int rowBytes = (srcRect.width() * 3 + 1) / 2;
61 image = new SkMemoryStream(rowBytes * srcRect.height())
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/cg/
GraphicsContext3DCG.cpp 261 int rowBytes = imageWidth * 4;
262 RetainPtr<CGDataProviderRef> dataProvider(AdoptCF, CGDataProviderCreateWithData(0, imagePixels, rowBytes * imageHeight, 0));
263 RetainPtr<CGImageRef> cgImage(AdoptCF, CGImageCreate(imageWidth, imageHeight, 8, 32, rowBytes, deviceRGBColorSpaceRef(), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host,
  /external/skia/legacy/src/images/
SkImageDecoder_libgif.cpp 251 const int rowBytes = bm->rowBytes();
277 scanline += desc.Top * rowBytes + desc.Left;
286 uint8_t* row = scanline + iter.currY() * rowBytes;
300 scanline += rowBytes;
  /external/skia/src/images/
SkImageDecoder_libgif.cpp 262 const int rowBytes = bm->rowBytes();
288 scanline += desc.Top * rowBytes + desc.Left;
297 uint8_t* row = scanline + iter.currY() * rowBytes;
311 scanline += rowBytes;
  /external/skia/src/ports/
SkFontHost_FreeType_common.cpp 69 const size_t dstRB = glyph.rowBytes();
178 target.pitch = glyph.rowBytes();
184 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight);
206 unsigned dstRowBytes = glyph.rowBytes();
236 dst += glyph.rowBytes();
253 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight);
262 unsigned rowBytes = glyph.rowBytes();
268 dst += rowBytes;
  /external/skia/tests/
ReadPixelsTest.cpp 118 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
140 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel());
194 uint32_t pixel = *reinterpret_cast<SkPMColor*>(pixels + by * bitmap.rowBytes() + bx * bitmap.bytesPerPixel());
237 int rowBytes = 0;
245 rowBytes = w * sizeof(SkPMColor) + 16 * sizeof(SkPMColor);
251 bitmap->setConfig(SkBitmap::kARGB_8888_Config, w, h, rowBytes);
WritePixelsTest.cpp 145 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
242 size_t canvasRowBytes = devBmp.rowBytes();
308 size_t rowBytes = c.fTightRowBytes ? 0 : 4 * DEV_W + 100;
309 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H, rowBytes);
314 // if rowBytes isn't tight then set the padding to a known value
315 if (rowBytes) {
333 size_t rowBytes = tightRowBytes ? 0 : 4 * w + 60;
334 bitmap->setConfig(SkBitmap::kARGB_8888_Config, w, h, rowBytes);
342 uint32_t* pixel = reinterpret_cast<uint32_t*>(pixels + y * bitmap->rowBytes() + x * 4);
  /external/webkit/Tools/DumpRenderTree/cg/
ImageDiffCG.cpp 96 size_t rowBytes = width * 4;
99 void* baseBuffer = calloc(height, rowBytes);
100 RetainPtr<CGContextRef> baseContext(AdoptCF, CGBitmapContextCreate(baseBuffer, width, height, 8, rowBytes, CGImageGetColorSpace(baseImage), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host));
104 void* buffer = calloc(height, rowBytes);
105 RetainPtr<CGContextRef> context(AdoptCF, CGBitmapContextCreate(buffer, width, height, 8, rowBytes, CGImageGetColorSpace(testImage), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host));
  /frameworks/base/libs/hwui/
GradientCache.cpp 244 const GLsizei rowBytes = width * bytesPerPixel();
245 uint8_t pixels[rowBytes * texture->height];
286 memcpy(pixels + rowBytes, pixels, rowBytes);
  /external/skia/include/core/
SkBitmap.h 115 int rowBytes() const { return fRowBytes; }
129 /** Return the rowbytes expressed as a number of pixels (like width and
131 return the same as rowBytes(). Is undefined for configs that are less
140 /** Return the byte size of the pixels, based on the height and rowBytes.
152 /** Return the byte size of the pixels, based on the height and rowBytes.
206 /** Given a config and a width, this computes the optimal rowBytes value. This is called automatically
207 if you pass 0 for rowBytes to setConfig().
250 /** Set the bitmap's config and dimensions. If rowBytes is 0, then
254 void setConfig(Config, int width, int height, int rowBytes = 0);
270 In the case when the dstRowBytes matches the bitmap's rowBytes, the cop
    [all...]
  /frameworks/base/core/jni/android/graphics/
Bitmap.cpp 101 dst = (char*)dst + dstBitmap.rowBytes();
336 return bitmap->rowBytes();
379 const int rowBytes = p->readInt32();
393 bitmap->setConfig(config, width, height, rowBytes);
447 p->writeInt32(bitmap->rowBytes());
550 src = (void*)((const char*)src + bitmap->rowBytes());

Completed in 4695 milliseconds

1 2