• Home
  • Raw
  • Download

Lines Matching refs:dstInfo

337 bool SkJpegCodec::conversionSupported(const SkImageInfo& dstInfo, bool srcIsOpaque,  in conversionSupported()  argument
341 if (kUnknown_SkAlphaType == dstInfo.alphaType()) { in conversionSupported()
345 if (kOpaque_SkAlphaType != dstInfo.alphaType()) { in conversionSupported()
353 switch (dstInfo.colorType()) { in conversionSupported()
444 int SkJpegCodec::readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count, in readRows() argument
464 int dstWidth = opts.fSubset ? opts.fSubset->width() : dstInfo.width(); in readRows()
524 SkCodec::Result SkJpegCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
552 this->initializeSwizzler(dstInfo, options, true); in onGetPixels()
555 if (!this->allocateStorage(dstInfo)) { in onGetPixels()
559 int rows = this->readRows(dstInfo, dst, dstRowBytes, dstInfo.height(), options); in onGetPixels()
560 if (rows < dstInfo.height()) { in onGetPixels()
568 bool SkJpegCodec::allocateStorage(const SkImageInfo& dstInfo) { in allocateStorage() argument
569 int dstWidth = dstInfo.width(); in allocateStorage()
580 if (this->colorXform() && sizeof(uint32_t) != dstInfo.bytesPerPixel()) { in allocateStorage()
596 void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& options, in initializeSwizzler() argument
608 SkImageInfo swizzlerDstInfo = dstInfo; in initializeSwizzler()
652 this->initializeSwizzler(this->dstInfo(), this->options(), needsCMYKToRGB); in getSampler()
653 if (!this->allocateStorage(this->dstInfo())) { in getSampler()
659 SkCodec::Result SkJpegCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, in onStartScanlineDecode() argument
709 this->initializeSwizzler(dstInfo, options, needsCMYKToRGB); in onStartScanlineDecode()
715 this->initializeSwizzler(dstInfo, options, true); in onStartScanlineDecode()
718 if (!this->allocateStorage(dstInfo)) { in onStartScanlineDecode()
726 int rows = this->readRows(this->dstInfo(), dst, dstRowBytes, count, this->options()); in onGetScanlines()
729 fDecoderMgr->dinfo()->output_scanline = this->dstInfo().height(); in onGetScanlines()