• Home
  • Raw
  • Download

Lines Matching refs:dstInfo

36 SkCodec::Result SkBmpStandardCodec::onGetPixels(const SkImageInfo& dstInfo,  in onGetPixels()  argument
44 if (dstInfo.dimensions() != this->getInfo().dimensions()) { in onGetPixels()
49 Result result = this->prepareToDecode(dstInfo, opts); in onGetPixels()
53 int rows = this->decodeRows(dstInfo, dst, dstRowBytes, opts); in onGetPixels()
54 if (rows != dstInfo.height()) { in onGetPixels()
149 void SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) { in initializeSwizzler() argument
167 SkImageInfo swizzlerInfo = dstInfo; in initializeSwizzler()
171 if (kPremul_SkAlphaType == dstInfo.alphaType()) { in initializeSwizzler()
182 SkCodec::Result SkBmpStandardCodec::onPrepareToDecode(const SkImageInfo& dstInfo, in onPrepareToDecode() argument
185 this->resetXformBuffer(dstInfo.width()); in onPrepareToDecode()
190 if (!this->createColorTable(dstInfo.colorType(), dstInfo.alphaType())) { in onPrepareToDecode()
196 this->initializeSwizzler(dstInfo, options); in onPrepareToDecode()
203 int SkBmpStandardCodec::decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, in decodeRows() argument
206 const int height = dstInfo.height(); in decodeRows()
215 uint32_t row = this->getDstRow(y, dstInfo.height()); in decodeRows()
233 decodeIcoMask(this->stream(), dstInfo, dst, dstRowBytes); in decodeRows()
272 decodeIcoMask(&subStream, dstInfo, dst, dstRowBytes); in decodeRows()
278 void SkBmpStandardCodec::decodeIcoMask(SkStream* stream, const SkImageInfo& dstInfo, in decodeIcoMask() argument
282 SkASSERT(kRGBA_8888_SkColorType == dstInfo.colorType() || in decodeIcoMask()
283 kBGRA_8888_SkColorType == dstInfo.colorType() || in decodeIcoMask()
284 kRGBA_F16_SkColorType == dstInfo.colorType()); in decodeIcoMask()
295 for (int y = 0; y < dstInfo.height(); y++) { in decodeIcoMask()
302 auto applyMask = [dstInfo](void* dstRow, int x, uint64_t bit) { in decodeIcoMask()
303 if (kRGBA_F16_SkColorType == dstInfo.colorType()) { in decodeIcoMask()
312 int row = this->getDstRow(y, dstInfo.height()); in decodeIcoMask()
329 uint64_t SkBmpStandardCodec::onGetFillValue(const SkImageInfo& dstInfo) const { in onGetFillValue()
332 return get_color_table_fill_value(dstInfo.colorType(), dstInfo.alphaType(), colorPtr, 0, in onGetFillValue()
335 return INHERITED::onGetFillValue(dstInfo); in onGetFillValue()