Lines Matching refs:rowBytes
188 Sk64 rowBytes; in ComputeRowBytes() local
189 rowBytes.setZero(); in ComputeRowBytes()
196 rowBytes.set(width); in ComputeRowBytes()
200 rowBytes.set(width); in ComputeRowBytes()
201 rowBytes.shiftLeft(1); in ComputeRowBytes()
204 rowBytes.set(width); in ComputeRowBytes()
205 rowBytes.shiftLeft(2); in ComputeRowBytes()
211 return isPos32Bits(rowBytes) ? rowBytes.get32() : 0; in ComputeRowBytes()
228 size_t rowBytes) { in ComputeSafeSize64() argument
236 sizeAllButLastRow.setMul(height - 1, SkToS32(rowBytes)); in ComputeSafeSize64()
246 size_t rowBytes) { in ComputeSafeSize() argument
247 Sk64 safeSize = ComputeSafeSize64(config, width, height, rowBytes); in ComputeSafeSize()
294 bool SkBitmap::setConfig(Config config, int width, int height, size_t rowBytes, in setConfig() argument
299 if (rowBytes == 0) { in setConfig()
300 rowBytes = SkBitmap::ComputeRowBytes(config, width); in setConfig()
301 if (0 == rowBytes && kNo_Config != config && width > 0) { in setConfig()
316 fRowBytes = SkToU32(rowBytes); in setConfig()
329 bool SkBitmap::setConfig(const SkImageInfo& info, size_t rowBytes) { in setConfig() argument
331 info.fHeight, rowBytes, info.fAlphaType); in setConfig()
540 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, dst->rowBytes(), in allocPixelRef()
596 size_t rowBytes = ComputeRowBytes(this->config(), fWidth); in copyPixelsTo() local
602 memcpy(dstP, srcP, rowBytes); in copyPixelsTo()
643 base += y * this->rowBytes(); in getAddr()
806 const int rowBytes = fRowBytes; in internalErase() local
820 p += rowBytes; in internalErase()
838 p = (uint16_t*)((char*)p + rowBytes); in internalErase()
848 p = (uint32_t*)((char*)p + rowBytes); in internalErase()
904 return y * bm.rowBytes() + x; in get_sub_offset()
912 bool get_upper_left_from_offset(SkBitmap::Config config, size_t offset, size_t rowBytes,
914 bool get_upper_left_from_offset(SkBitmap::Config config, size_t offset, size_t rowBytes, in get_upper_left_from_offset() argument
923 SkTDivMod(offset, rowBytes, y, x); in get_upper_left_from_offset()
950 return get_upper_left_from_offset(bm.config(), bm.pixelRefOffset(), bm.rowBytes(), x, y); in get_upper_left_from_offset()
992 dst.setConfig(this->config(), r.width(), r.height(), this->rowBytes(), in extractSubset()
1110 srcP += src->rowBytes(); in copyTo()
1111 dstP += tmpDst.rowBytes(); in copyTo()
1153 uint32_t rowBytes; in deepCopyTo() local
1158 rowBytes = fRowBytes; in deepCopyTo()
1161 rowBytes = 0; in deepCopyTo()
1163 dst->setConfig(dstConfig, fWidth, fHeight, rowBytes); in deepCopyTo()
1212 p += src.rowBytes() >> 2; in downsampleby2_proc32()
1250 p += src.rowBytes() >> 1; in downsampleby2_proc16()
1285 p += src.rowBytes() >> 1; in downsampleby2_proc4444()
1366 uint32_t rowBytes; in buildMipMap() local
1372 rowBytes = SkToU32(ComputeRowBytes(config, width)); in buildMipMap()
1377 level[i].fRowBytes = rowBytes; in buildMipMap()
1379 dstBM.setConfig(config, width, height, rowBytes); in buildMipMap()
1391 addr += height * rowBytes; in buildMipMap()
1448 size_t rb = src.rowBytes(); in GetBitmapAlpha()
1608 int rowBytes = buffer.readInt(); in unflatten() local
1611 buffer.validate((width >= 0) && (height >= 0) && (rowBytes >= 0) && in unflatten()
1614 bool configIsValid = this->setConfig(config, width, height, rowBytes, alphaType); in unflatten()