• Home
  • Raw
  • Download

Lines Matching refs:dstInfo

151 void SkGifCodec::initializeColorTable(const SkImageInfo& dstInfo, int frameIndex) {  in initializeColorTable()  argument
152 SkColorType colorTableColorType = dstInfo.colorType(); in initializeColorTable()
174 SkCodec::Result SkGifCodec::prepareToDecode(const SkImageInfo& dstInfo, const Options& opts) { in prepareToDecode() argument
180 if (frameIndex > 0 && kRGB_565_SkColorType == dstInfo.colorType()) { in prepareToDecode()
217 fXformBuffer.reset(new uint32_t[dstInfo.width()]); in prepareToDecode()
218 sk_bzero(fXformBuffer.get(), dstInfo.width() * sizeof(uint32_t)); in prepareToDecode()
221 fTmpBuffer.reset(new uint8_t[dstInfo.minRowBytes()]); in prepareToDecode()
223 this->initializeColorTable(dstInfo, frameIndex); in prepareToDecode()
224 this->initializeSwizzler(dstInfo, frameIndex); in prepareToDecode()
230 void SkGifCodec::initializeSwizzler(const SkImageInfo& dstInfo, int frameIndex) { in initializeSwizzler() argument
242 SkImageInfo swizzlerInfo = dstInfo; in initializeSwizzler()
245 if (kPremul_SkAlphaType == dstInfo.alphaType()) { in initializeSwizzler()
265 SkCodec::Result SkGifCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
269 Result result = this->prepareToDecode(dstInfo, opts); in onGetPixels()
285 if (dstInfo.dimensions() != this->dimensions()) { in onGetPixels()
295 SkCodec::Result SkGifCodec::onStartIncrementalDecode(const SkImageInfo& dstInfo, in onStartIncrementalDecode() argument
298 Result result = this->prepareToDecode(dstInfo, opts); in onStartIncrementalDecode()
323 const SkImageInfo& dstInfo = this->dstInfo(); in decodeFrame() local
324 const int scaledHeight = get_scaled_dimension(dstInfo.height(), fSwizzler->sampleY()); in decodeFrame()
346 auto fillInfo = dstInfo.makeWH(fSwizzler->fillWidth(), scaledHeight); in decodeFrame()
386 void SkGifCodec::applyXformRow(const SkImageInfo& dstInfo, void* dst, const uint8_t* src) const { in applyXformRow() argument
391 const int xformWidth = get_scaled_dimension(dstInfo.width(), fSwizzler->sampleX()); in applyXformRow()
444 const int scaledHeight = get_scaled_dimension(this->dstInfo().height(), sampleY); in haveDecodedRow()
468 SkASSERT(this->dstInfo().height() >= yBegin); in haveDecodedRow()
469 repeatCount = SkTMin(repeatCount, this->dstInfo().height() - yBegin); in haveDecodedRow()
493 const auto dstInfo = this->dstInfo(); in haveDecodedRow() local
495 this->applyXformRow(dstInfo, dstLine, rowBegin); in haveDecodedRow()
497 this->applyXformRow(dstInfo, fTmpBuffer.get(), rowBegin); in haveDecodedRow()
500 if (dstInfo.colorType() == kRGBA_F16_SkColorType) { in haveDecodedRow()
508 switch (dstInfo.colorType()) { in haveDecodedRow()
524 const size_t bytesPerPixel = this->dstInfo().bytesPerPixel(); in haveDecodedRow()