Lines Matching refs:rowBytes
198 bool zero_rect(const SkImageInfo& dstInfo, void* pixels, size_t rowBytes, in zero_rect() argument
225 const size_t offset = prevRect.x() * bpp + prevRect.y() * rowBytes; in zero_rect()
227 SkSampler::Fill(info, eraseDst, rowBytes, SkCodec::kNo_ZeroInitialized); in zero_rect()
231 SkCodec::Result SkCodec::handleFrameIndex(const SkImageInfo& info, void* pixels, size_t rowBytes, in handleFrameIndex() argument
277 if (!zero_rect(info, pixels, rowBytes, this->dimensions(), prevRect)) { in handleFrameIndex()
289 const Result result = this->getPixels(info, pixels, rowBytes, &prevFrameOptions); in handleFrameIndex()
297 if (!zero_rect(info, pixels, rowBytes, this->dimensions(), prevRect)) { in handleFrameIndex()
308 SkCodec::Result SkCodec::getPixels(const SkImageInfo& dstInfo, void* pixels, size_t rowBytes, in getPixels() argument
321 if (rowBytes < info.minRowBytes()) { in getPixels()
344 const Result frameIndexResult = this->handleFrameIndex(info, pixels, rowBytes, in getPixels()
362 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, &rowsDecoded); in getPixels()
376 this->fillIncompleteImage(info, pixels, rowBytes, options->fZeroInitialized, info.height(), in getPixels()
384 size_t rowBytes, const SkCodec::Options* options) { in startIncrementalDecode() argument
426 const Result frameIndexResult = this->handleFrameIndex(info, pixels, rowBytes, in startIncrementalDecode()
439 const Result result = this->onStartIncrementalDecode(info, pixels, rowBytes, fOptions); in startIncrementalDecode()
515 int SkCodec::getScanlines(void* dst, int countLines, size_t rowBytes) { in getScanlines() argument
525 const int linesDecoded = this->onGetScanlines(dst, countLines, rowBytes); in getScanlines()
527 this->fillIncompleteImage(this->dstInfo(), dst, rowBytes, this->options().fZeroInitialized, in getScanlines()
570 void SkCodec::fillIncompleteImage(const SkImageInfo& info, void* dst, size_t rowBytes, in fillIncompleteImage() argument
583 SkTAddOffset<void>(dst, linesDecoded * rowBytes); in fillIncompleteImage()
585 SkSampler::Fill(fillInfo, fillDst, rowBytes, kNo_ZeroInitialized); in fillIncompleteImage()