Searched refs:rowBytes (Results 1 - 25 of 342) sorted by last modified time

1234567891011>>

/external/skia/samplecode/
H A DSampleApp.cpp302 bm.rowBytes());
H A DSampleHairline.cpp65 size_t rb = bm.rowBytes();
233 bm.getAddr32(MARGIN, MARGIN), bm.rowBytes());
/external/skia/src/animator/
H A DSkDrawBitmap.cpp51 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 DSkDrawBitmap.h46 int32_t rowBytes; member in class:SkDrawBitmap
/external/skia/src/core/
H A DSkBitmap.cpp132 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 DSkBitmapDevice.cpp149 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 DSkBitmapProcState_sample.h52 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 DSkBitmapProcState_shaderproc.h47 size_t rb = s.fBitmap->rowBytes();
H A DSkBitmapScaler.cpp307 BGRAConvolve2D(sourceSubset, static_cast<int>(source.rowBytes()),
309 static_cast<int>(result.rowBytes()),
H A DSkBitmap_scroll.cpp67 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 DSkBlitBWMaskTemplate.h34 size_t bitmap_rowBytes = bitmap.rowBytes();
H A DSkBlitMask_D32.cpp273 proc(device.getAddr32(x, y), device.rowBytes(), mask.getAddr(x, y),
H A DSkBlitRow_D32.cpp194 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 DSkBlitter.cpp86 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 DSkBlitter_A8.cpp169 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 DSkBlitter_ARGB32.cpp36 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 DSkBlitter_RGB16.cpp216 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 DSkCanvas.cpp631 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 DSkDevice.cpp80 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 DSkDistanceFieldGen.cpp464 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 DSkDistanceFieldGen.h34 * @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 DSkDraw.cpp242 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 DSkGlyph.h63 unsigned rowBytes() const { function in struct:SkGlyph
H A DSkGlyphCache.cpp115 imageUsed += g.fHeight * g.rowBytes();
386 glyph.rowBytes());
393 glyph.rowBytes());
H A DSkImageGenerator.cpp19 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);

Completed in 494 milliseconds

1234567891011>>