Lines Matching defs:info

177 SkCodec::SkCodec(SkEncodedInfo&& info, XformFormat srcFormat, std::unique_ptr<SkStream> stream,
179 : fEncodedInfo(std::move(info))
286 const SkImageInfo info = dstInfo.makeDimensions(prevRect.size());
290 SkSampler::Fill(info, eraseDst, rowBytes, SkCodec::kNo_ZeroInitialized);
294 SkCodec::Result SkCodec::handleFrameIndex(const SkImageInfo& info, void* pixels, size_t rowBytes,
310 return this->initializeColorXform(info, fEncodedInfo.alpha(), fEncodedInfo.opaque())
344 result = androidCodec->getAndroidPixels(info, pixels, rowBytes, &prevFrameOptions);
349 result = this->getPixels(info, pixels, rowBytes, &prevFrameOptions);
378 if (!zero_rect(info, pixels, rowBytes, this->dimensions(), preppedRect)) {
388 return this->initializeColorXform(info, frame->reportedAlpha(), !frame->hasAlpha())
392 SkCodec::Result SkCodec::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
394 if (kUnknown_SkColorType == info.colorType()) {
400 if (rowBytes < info.minRowBytes()) {
419 const Result frameIndexResult = this->handleFrameIndex(info, pixels, rowBytes,
427 if (!this->dimensionsSupported(info.dimensions())) {
431 fDstInfo = info;
437 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, &rowsDecoded);
444 if ((kIncompleteInput == result || kErrorInInput == result) && rowsDecoded != info.height()) {
448 // differenty from the other codecs, and it needs to use the width specified by the info.
451 this->fillIncompleteImage(info, pixels, rowBytes, options->fZeroInitialized, info.height(),
458 std::tuple<sk_sp<SkImage>, SkCodec::Result> SkCodec::getImage(const SkImageInfo& info,
461 if (!bm.tryAllocPixels(info)) {
465 Result result = this->getPixels(info, bm.getPixels(), bm.rowBytes(), options);
482 SkCodec::Result SkCodec::startIncrementalDecode(const SkImageInfo& info, void* pixels,
486 if (kUnknown_SkColorType == info.colorType()) {
499 SkIRect size = SkIRect::MakeSize(info.dimensions());
506 if (top < 0 || top >= info.height() || top >= bottom || bottom > info.height()) {
512 const Result frameIndexResult = this->handleFrameIndex(info, pixels, rowBytes,
518 if (!this->dimensionsSupported(info.dimensions())) {
522 fDstInfo = info;
525 const Result result = this->onStartIncrementalDecode(info, pixels, rowBytes, fOptions);
542 SkCodec::Result SkCodec::startScanlineDecode(const SkImageInfo& info,
552 SkIRect size = SkIRect::MakeSize(info.dimensions());
559 if (options->fSubset->top() != 0 || options->fSubset->height() != info.height()) {
571 const Result frameIndexResult = this->handleFrameIndex(info, nullptr, 0, *options);
577 if (!this->dimensionsSupported(info.dimensions())) {
581 const Result result = this->onStartScanlineDecode(info, *options);
596 fDstInfo = info;
656 void SkCodec::fillIncompleteImage(const SkImageInfo& info, void* dst, size_t rowBytes,
667 info.width() ;
670 const auto fillInfo = info.makeWH(fillWidth, linesRemaining);