Lines Matching refs:dstInfo
37 SkCodec::Result SkBmpStandardCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
47 if (dstInfo.dimensions() != this->getInfo().dimensions()) { in onGetPixels()
51 if (!conversion_possible(dstInfo, this->getInfo())) { in onGetPixels()
56 Result result = this->prepareToDecode(dstInfo, opts, inputColorPtr, inputColorCount); in onGetPixels()
60 int rows = this->decodeRows(dstInfo, dst, dstRowBytes, opts); in onGetPixels()
61 if (rows != dstInfo.height()) { in onGetPixels()
155 void SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) { in initializeSwizzler() argument
189 fSwizzler.reset(SkSwizzler::CreateSwizzler(config, colorPtr, dstInfo, opts)); in initializeSwizzler()
193 SkCodec::Result SkBmpStandardCodec::prepareToDecode(const SkImageInfo& dstInfo, in prepareToDecode() argument
197 if (!this->createColorTable(dstInfo.alphaType(), inputColorCount)) { in prepareToDecode()
203 copy_color_table(dstInfo, this->fColorTable, inputColorPtr, inputColorCount); in prepareToDecode()
206 this->initializeSwizzler(dstInfo, options); in prepareToDecode()
213 int SkBmpStandardCodec::decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, in decodeRows() argument
216 const int height = dstInfo.height(); in decodeRows()
225 uint32_t row = this->getDstRow(y, dstInfo.height()); in decodeRows()
236 decodeIcoMask(this->stream(), dstInfo, dst, dstRowBytes); in decodeRows()
275 decodeIcoMask(&subStream, dstInfo, dst, dstRowBytes); in decodeRows()
281 void SkBmpStandardCodec::decodeIcoMask(SkStream* stream, const SkImageInfo& dstInfo, in decodeIcoMask() argument
286 SkASSERT(dstInfo.colorType() == kN32_SkColorType); in decodeIcoMask()
297 for (int y = 0; y < dstInfo.height(); y++) { in decodeIcoMask()
304 int row = this->getDstRow(y, dstInfo.height()); in decodeIcoMask()