• Home
  • Raw
  • Download

Lines Matching refs:dstInfo

156 void SkLibGifCodec::initializeColorTable(const SkImageInfo& dstInfo, int frameIndex) {  in initializeColorTable()  argument
157 SkColorType colorTableColorType = dstInfo.colorType(); in initializeColorTable()
179 SkCodec::Result SkLibGifCodec::prepareToDecode(const SkImageInfo& dstInfo, const Options& opts) { in prepareToDecode() argument
185 if (frameIndex > 0 && kRGB_565_SkColorType == dstInfo.colorType()) { in prepareToDecode()
222 fXformBuffer.reset(new uint32_t[dstInfo.width()]); in prepareToDecode()
223 sk_bzero(fXformBuffer.get(), dstInfo.width() * sizeof(uint32_t)); in prepareToDecode()
226 fTmpBuffer.reset(new uint8_t[dstInfo.minRowBytes()]); in prepareToDecode()
228 this->initializeColorTable(dstInfo, frameIndex); in prepareToDecode()
229 this->initializeSwizzler(dstInfo, frameIndex); in prepareToDecode()
235 void SkLibGifCodec::initializeSwizzler(const SkImageInfo& dstInfo, int frameIndex) { in initializeSwizzler() argument
247 SkImageInfo swizzlerInfo = dstInfo; in initializeSwizzler()
250 if (kPremul_SkAlphaType == dstInfo.alphaType()) { in initializeSwizzler()
270 SkCodec::Result SkLibGifCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
274 Result result = this->prepareToDecode(dstInfo, opts); in onGetPixels()
290 if (dstInfo.dimensions() != this->dimensions()) { in onGetPixels()
300 SkCodec::Result SkLibGifCodec::onStartIncrementalDecode(const SkImageInfo& dstInfo, in onStartIncrementalDecode() argument
303 Result result = this->prepareToDecode(dstInfo, opts); in onStartIncrementalDecode()
328 const SkImageInfo& dstInfo = this->dstInfo(); in decodeFrame() local
329 const int scaledHeight = get_scaled_dimension(dstInfo.height(), fSwizzler->sampleY()); in decodeFrame()
351 auto fillInfo = dstInfo.makeWH(fSwizzler->fillWidth(), scaledHeight); in decodeFrame()
391 void SkLibGifCodec::applyXformRow(const SkImageInfo& dstInfo, void* dst, const uint8_t* src) const { in applyXformRow() argument
396 const int xformWidth = get_scaled_dimension(dstInfo.width(), fSwizzler->sampleX()); in applyXformRow()
449 const int scaledHeight = get_scaled_dimension(this->dstInfo().height(), sampleY); in haveDecodedRow()
473 SkASSERT(this->dstInfo().height() >= yBegin); in haveDecodedRow()
474 repeatCount = std::min(repeatCount, this->dstInfo().height() - yBegin); in haveDecodedRow()
498 const auto dstInfo = this->dstInfo(); in haveDecodedRow() local
500 this->applyXformRow(dstInfo, dstLine, rowBegin); in haveDecodedRow()
502 this->applyXformRow(dstInfo, fTmpBuffer.get(), rowBegin); in haveDecodedRow()
505 if (dstInfo.colorType() == kRGBA_F16_SkColorType) { in haveDecodedRow()
513 switch (dstInfo.colorType()) { in haveDecodedRow()
529 const size_t bytesPerPixel = this->dstInfo().bytesPerPixel(); in haveDecodedRow()