Lines Matching refs:dstInfo
388 bool SkJpegCodec::conversionSupported(const SkImageInfo& dstInfo, bool srcIsOpaque, in conversionSupported() argument
392 if (kUnknown_SkAlphaType == dstInfo.alphaType()) { in conversionSupported()
396 if (kOpaque_SkAlphaType != dstInfo.alphaType()) { in conversionSupported()
404 switch (dstInfo.colorType()) { in conversionSupported()
495 int SkJpegCodec::readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count, in readRows() argument
515 int dstWidth = opts.fSubset ? opts.fSubset->width() : dstInfo.width(); in readRows()
575 SkCodec::Result SkJpegCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
603 this->initializeSwizzler(dstInfo, options, true); in onGetPixels()
606 this->allocateStorage(dstInfo); in onGetPixels()
608 int rows = this->readRows(dstInfo, dst, dstRowBytes, dstInfo.height(), options); in onGetPixels()
609 if (rows < dstInfo.height()) { in onGetPixels()
617 void SkJpegCodec::allocateStorage(const SkImageInfo& dstInfo) { in allocateStorage() argument
618 int dstWidth = dstInfo.width(); in allocateStorage()
629 if (this->colorXform() && sizeof(uint32_t) != dstInfo.bytesPerPixel()) { in allocateStorage()
642 void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& options, in initializeSwizzler() argument
654 SkImageInfo swizzlerDstInfo = dstInfo; in initializeSwizzler()
698 this->initializeSwizzler(this->dstInfo(), this->options(), needsCMYKToRGB); in getSampler()
699 this->allocateStorage(this->dstInfo()); in getSampler()
703 SkCodec::Result SkJpegCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, in onStartScanlineDecode() argument
753 this->initializeSwizzler(dstInfo, options, needsCMYKToRGB); in onStartScanlineDecode()
759 this->initializeSwizzler(dstInfo, options, true); in onStartScanlineDecode()
762 this->allocateStorage(dstInfo); in onStartScanlineDecode()
768 int rows = this->readRows(this->dstInfo(), dst, dstRowBytes, count, this->options()); in onGetScanlines()
771 fDecoderMgr->dinfo()->output_scanline = this->dstInfo().height(); in onGetScanlines()