• Home
  • Raw
  • Download

Lines Matching refs:dstInfo

390 bool SkJpegCodec::setOutputColorSpace(const SkImageInfo& dstInfo) {  in setOutputColorSpace()  argument
391 if (kUnknown_SkAlphaType == dstInfo.alphaType()) { in setOutputColorSpace()
395 if (kOpaque_SkAlphaType != dstInfo.alphaType()) { in setOutputColorSpace()
403 switch (dstInfo.colorType()) { in setOutputColorSpace()
434 if (!dstInfo.colorSpace()->gammaIsLinear()) { in setOutputColorSpace()
495 int SkJpegCodec::readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count, in readRows() argument
514 int dstWidth = opts.fSubset ? opts.fSubset->width() : dstInfo.width(); in readRows()
573 SkCodec::Result SkJpegCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
592 if (!this->setOutputColorSpace(dstInfo)) { in onGetPixels()
606 this->initializeSwizzler(dstInfo, options, true); in onGetPixels()
609 this->allocateStorage(dstInfo); in onGetPixels()
611 int rows = this->readRows(dstInfo, dst, dstRowBytes, dstInfo.height(), options); in onGetPixels()
612 if (rows < dstInfo.height()) { in onGetPixels()
620 void SkJpegCodec::allocateStorage(const SkImageInfo& dstInfo) { in allocateStorage() argument
621 int dstWidth = dstInfo.width(); in allocateStorage()
631 if (this->colorXform() && (kRGBA_F16_SkColorType == dstInfo.colorType() || in allocateStorage()
632 kRGB_565_SkColorType == dstInfo.colorType())) { in allocateStorage()
645 void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& options, in initializeSwizzler() argument
664 SkImageInfo swizzlerDstInfo = dstInfo; in initializeSwizzler()
683 this->initializeSwizzler(this->dstInfo(), this->options(), needsCMYKToRGB); in getSampler()
684 this->allocateStorage(this->dstInfo()); in getSampler()
688 SkCodec::Result SkJpegCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, in onStartScanlineDecode() argument
698 if (!this->setOutputColorSpace(dstInfo)) { in onStartScanlineDecode()
742 this->initializeSwizzler(dstInfo, options, needsCMYKToRGB); in onStartScanlineDecode()
748 this->initializeSwizzler(dstInfo, options, true); in onStartScanlineDecode()
751 this->allocateStorage(dstInfo); in onStartScanlineDecode()
757 int rows = this->readRows(this->dstInfo(), dst, dstRowBytes, count, this->options()); in onGetScanlines()
760 fDecoderMgr->dinfo()->output_scanline = this->dstInfo().height(); in onGetScanlines()