Lines Matching refs:rowBytes
188 Sk64 rowBytes;
189 rowBytes.setZero();
196 rowBytes.set(width);
200 rowBytes.set(width);
201 rowBytes.shiftLeft(1);
204 rowBytes.set(width);
205 rowBytes.shiftLeft(2);
211 return isPos32Bits(rowBytes) ? rowBytes.get32() : 0;
228 size_t rowBytes) {
236 sizeAllButLastRow.setMul(height - 1, SkToS32(rowBytes));
246 size_t rowBytes) {
247 Sk64 safeSize = ComputeSafeSize64(config, width, height, rowBytes);
294 bool SkBitmap::setConfig(Config config, int width, int height, size_t rowBytes,
299 if (rowBytes == 0) {
300 rowBytes = SkBitmap::ComputeRowBytes(config, width);
301 if (0 == rowBytes && kNo_Config != config && width > 0) {
316 fRowBytes = SkToU32(rowBytes);
329 bool SkBitmap::setConfig(const SkImageInfo& info, size_t rowBytes) {
331 info.fHeight, rowBytes, info.fAlphaType);
540 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, dst->rowBytes(),
596 size_t rowBytes = ComputeRowBytes(this->config(), fWidth);
602 memcpy(dstP, srcP, rowBytes);
643 base += y * this->rowBytes();
806 const int rowBytes = fRowBytes;
820 p += rowBytes;
838 p = (uint16_t*)((char*)p + rowBytes);
848 p = (uint32_t*)((char*)p + rowBytes);
878 * Based on the Config and rowBytes() of bm, return the offset into an SkPixelRef of the pixel at
904 return y * bm.rowBytes() + x;
908 * Using the pixelRefOffset(), rowBytes(), and Config of bm, determine the (x, y) coordinate of the
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,
923 SkTDivMod(offset, rowBytes, y, x);
950 return get_upper_left_from_offset(bm.config(), bm.pixelRefOffset(), bm.rowBytes(), x, y);
992 dst.setConfig(this->config(), r.width(), r.height(), this->rowBytes(),
1110 srcP += src->rowBytes();
1111 dstP += tmpDst.rowBytes();
1153 uint32_t rowBytes;
1157 // Use the same rowBytes as the original.
1158 rowBytes = fRowBytes;
1161 rowBytes = 0;
1163 dst->setConfig(dstConfig, fWidth, fHeight, rowBytes);
1212 p += src.rowBytes() >> 2;
1250 p += src.rowBytes() >> 1;
1285 p += src.rowBytes() >> 1;
1366 uint32_t rowBytes;
1372 rowBytes = SkToU32(ComputeRowBytes(config, width));
1377 level[i].fRowBytes = rowBytes;
1379 dstBM.setConfig(config, width, height, rowBytes);
1391 addr += height * rowBytes;
1448 size_t rb = src.rowBytes();
1608 int rowBytes = buffer.readInt();
1611 buffer.validate((width >= 0) && (height >= 0) && (rowBytes >= 0) &&
1614 bool configIsValid = this->setConfig(config, width, height, rowBytes, alphaType);