Home
last modified time | relevance | path

Searched refs:fRowBytes (Results 1 - 25 of 62) sorted by relevance

123

/third_party/skia/src/core/
H A DSkBlurMask.cpp122 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
147 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
156 auto dstStart = &dst->fImage[border.x() + border.y() * dst->fRowBytes]; in BoxBlur()
160 dstStart, dst->fRowBytes, in BoxBlur()
161 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
166 dstStart, dst->fRowBytes, in BoxBlur()
167 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
173 dstStart, dst->fRowBytes, in BoxBlur()
174 SkMask::AlphaIter<SkMask::kARGB32_Format>(srcARGB), src.fRowBytes, in BoxBlur()
180 dstStart, dst->fRowBytes, in BoxBlur()
[all...]
H A DSkWritePixelsRec.h20 , fRowBytes(rowBytes) in SkWritePixelsRec()
28 , fRowBytes(pm.rowBytes()) in SkWritePixelsRec()
35 size_t fRowBytes; member
41 * On true, may have modified its fields (except fRowBytes) to make it a legal subset
H A DSkYUVAPixmaps.cpp98 fRowBytes[i] = rowBytes[i]; in SkYUVAPixmapInfo()
108 ok &= fPlaneInfos[i].validRowBytes(fRowBytes[i]); in SkYUVAPixmapInfo()
134 fRowBytes == that.fRowBytes; in operator ==()
146 return fYUVAInfo.computeTotalBytes(fRowBytes.data(), planeSizes); in computeTotalBytes()
158 SkASSERT(fPlaneInfos[i].validRowBytes(fRowBytes[i])); in initPixmapsFromSingleAllocation()
159 pixmaps[i].reset(fPlaneInfos[i], addr, fRowBytes[i]); in initPixmapsFromSingleAllocation()
H A DSkMask.cpp28 return safeMul32(fBounds.height(), fRowBytes); in computeImageSize()
74 dst.fRowBytes = 0; in PrepareDestination()
81 dst.fRowBytes = SkTo<uint32_t>(dstW); in PrepareDestination()
114 addr += (y - fBounds.fTop) * fRowBytes; in getAddr()
H A DSkMask.h40 uint32_t fRowBytes; variable
69 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
80 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
92 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16()
105 uint32_t* row = (uint32_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddr32()
H A DSkImageInfo.cpp147 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
170 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
184 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
207 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
H A DSkPixmap.cpp37 fRowBytes = 0; in reset()
46 fRowBytes = rowBytes; in reset()
53 src.fImage, src.fRowBytes); in reset()
79 pixels = (const uint8_t*)fPixels + r.fTop * fRowBytes + r.fLeft * bpp; in extractSubset()
81 result->reset(fInfo.makeDimensions(r.size()), pixels, fRowBytes); in extractSubset()
172 return SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, in readPixels()
411 (const uint64_t*)fPixels + y * (fRowBytes >> 3) + x; in getColor()
424 (const float*)fPixels + 4*y*(fRowBytes >> 4) + 4*x; in getColor()
H A DSkBitmap.cpp337 mask.fImage, mask.fRowBytes); in installMaskPixels()
487 rec.fInfo, rec.fPixels, rec.fRowBytes)) { in writePixels()
528 srcM.fRowBytes = SkAlign4(this->width()); in extractAlpha()
539 dstM.fRowBytes = SkAlign4(dstM.fBounds.width()); in extractAlpha()
542 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha()
549 GetBitmapAlpha(*this, tmpBitmap.getAddr8(0, 0), srcM.fRowBytes); in extractAlpha()
559 GetBitmapAlpha(*this, srcM.fImage, srcM.fRowBytes); in extractAlpha()
566 dstM.fRowBytes); in extractAlpha()
H A DSkMaskFilter.cpp46 dst->fImage = src.fImage + dy * src.fRowBytes + dx; in extractMaskSubset()
47 dst->fRowBytes = src.fRowBytes; in extractMaskSubset()
175 leftMask.fRowBytes = 0; // so we repeat the scanline for our height in draw_nine_clipped()
186 rightMask.fRowBytes = 0; // so we repeat the scanline for our height in draw_nine_clipped()
374 srcM.fRowBytes = 0; in computeFastBounds()
H A DSkBitmapCache.cpp71 , fRowBytes(rowBytes) in Rec()
91 return sizeof(fKey) + fInfo.computeByteSize(fRowBytes);
142 bitmap->installPixels(fInfo, fDM ? fDM->data() : fMalloc, fRowBytes, ReleaseProc, this); in install()
165 size_t fRowBytes; member in SkBitmapCache::Rec
H A DSkMaskBlurFilter.cpp913 size_t srcRB = src.fRowBytes,
914 dstRB = dst->fRowBytes;
1008 for (int y = 0; y < srcH; ++y, start >>= src.fRowBytes, end >>= src.fRowBytes) {
1017 for (int y = 0; y < srcH; ++y, start >>= src.fRowBytes, end >>= src.fRowBytes) {
1026 for (int y = 0; y < srcH; ++y, start >>= src.fRowBytes, end >>= src.fRowBytes) {
1035 for (int y = 0; y < srcH; ++y, start >>= src.fRowBytes, end >>= src.fRowBytes) {
[all...]
H A DSkPixelRef.cpp34 , fRowBytes(rowBytes) in SkPixelRef()
49 fRowBytes = rowBytes; in android_only_reset()
H A DSkDraw_text.cpp69 mask.fRowBytes); in paintMasks()
104 mask.fRowBytes); in paintMasks()
H A DSkScalerContext.cpp280 unsigned rowBytes = mask.fRowBytes; in applyLUTToA8Mask()
313 size_t dstRB = dst.fRowBytes; in pack4xHToMask()
429 const int dstPad = mask.fRowBytes - SkAlign8(width)/8; in packA8ToA1()
520 dst.reset(info, mask.fImage, mask.fRowBytes); in generateMask()
627 srcMask.fImage += srcMask.fRowBytes * topDiff; in getImage()
632 dstMask.fImage += dstMask.fRowBytes * topDiff; in getImage()
664 int dstRB = dstMask.fRowBytes; in getImage()
665 int srcRB = srcMask.fRowBytes; in getImage()
/third_party/skia/include/core/
H A DSkPixmap.h41 : fPixels(nullptr), fRowBytes(0), fInfo(SkImageInfo::MakeUnknown(0, 0)) in SkPixmap()
63 : fPixels(addr), fRowBytes(rowBytes), fInfo(info) in SkPixmap()
135 size_t rowBytes() const { return fRowBytes; } in rowBytes()
204 int rowBytesAsPixels() const { return int(fRowBytes >> this->shiftPerPixel()); } in rowBytesAsPixels()
221 size_t computeByteSize() const { return fInfo.computeByteSize(fRowBytes); } in computeByteSize()
286 return (const char*)fPixels + fInfo.computeOffset(x, y, fRowBytes); in addr()
372 return (const uint8_t*)((const char*)this->addr8() + (size_t)y * fRowBytes + (x << 0)); in addr8()
390 return (const uint16_t*)((const char*)this->addr16() + (size_t)y * fRowBytes + (x << 1)); in addr16()
408 return (const uint32_t*)((const char*)this->addr32() + (size_t)y * fRowBytes + (x << 2)); in addr32()
426 return (const uint64_t*)((const char*)this->addr64() + (size_t)y * fRowBytes in addr64()
714 size_t fRowBytes; global() member in SkPixmap
[all...]
H A DSkPixelRef.h41 size_t rowBytes() const { return fRowBytes; } in rowBytes()
93 size_t fRowBytes; member in SkPixelRef
/third_party/skia/src/gpu/
H A DGrPixmap.h21 size_t rowBytes() const { return fRowBytes; } in rowBytes()
49 (rect.fTop - surfacePt->fY) * fRowBytes + in clip()
53 return DERIVED{this->info().makeDimensions(rect.size()), addr, fRowBytes}; in clip()
64 : fAddr(addr), fRowBytes(rowBytes), fInfo(std::move(info)) { in GrPixmapBase()
65 if (fRowBytes < info.minRowBytes() || !addr) { in GrPixmapBase()
77 size_t fRowBytes = 0; member in GrPixmapBase
/third_party/skia/src/image/
H A DSkReadPixelsRec.h20 , fRowBytes(rowBytes) in SkReadPixelsRec()
28 , fRowBytes(pm.rowBytes()) in SkReadPixelsRec()
35 size_t fRowBytes; member
41 * On true, may have modified its fields (except fRowBytes) to make it a legal subset
H A DSkRescaleAndReadPixels.cpp142 : fData(std::move(data)), fRowBytes(rowBytes) {} in SkRescaleAndReadPixels()
145 size_t rowBytes(int i) const override { return fRowBytes; } in SkRescaleAndReadPixels()
149 size_t fRowBytes; in SkRescaleAndReadPixels() member in Result
/third_party/skia/src/effects/
H A DSkShaderMaskFilter.cpp77 dst->fRowBytes = src.fBounds.width(); // need alignment? in filterMask()
91 rect_memcpy(dst->fImage, dst->fRowBytes, src.fImage, src.fRowBytes, in filterMask()
H A DSkTableMaskFilter.cpp56 dst->fRowBytes = SkAlign4(dst->fBounds.width()); in filterMask()
67 int extraZeros = dst->fRowBytes - dstWidth; in filterMask()
73 srcP += src.fRowBytes; in filterMask()
/third_party/skia/src/gpu/text/
H A DGrSDFMaskFilter.cpp72 src.fRowBytes); in filterMask()
76 src.fRowBytes); in filterMask()
80 src.fRowBytes); in filterMask()
/third_party/skia/src/codec/
H A DSkPngCodec.cpp503 , fRowBytes(0) in SkPngNormalDecoder()
519 size_t fRowBytes; member in SkPngNormalDecoder
536 fRowBytes = rowBytes;
558 fDst = SkTAddOffset<void>(fDst, fRowBytes); in allRowsCallback()
566 fRowBytes = rowBytes;
601 fDst = SkTAddOffset<void>(fDst, fRowBytes); in rowCallback()
636 size_t fRowBytes; member in SkPngInterlacedDecoder
714 fRowBytes = rowBytes;
743 dst = SkTAddOffset<void>(dst, fRowBytes);
/third_party/skia/tests/
H A DMaskCacheTest.cpp48 mask.fRowBytes = 100; in DEF_TEST()
85 mask.fRowBytes = 100; in DEF_TEST()
H A DAAClipTest.cpp76 mask->fRowBytes = 0; in copyToMask()
82 mask->fRowBytes = mask->fBounds.width(); in copyToMask()
91 bitmap.installPixels(info, mask->fImage, mask->fRowBytes); in copyToMask()
314 expected.fRowBytes = 4; in test_path_with_hole()

Completed in 18 milliseconds

123