/third_party/skia/client_utils/android/ |
H A D | BitmapRegionDecoder.cpp | 37 : fCodec(std::move(codec)) in BitmapRegionDecoder() 41 return fCodec->getInfo().width(); in width() 45 return fCodec->getInfo().height(); in height() 69 SubsetType type = adjust_subset_rect(fCodec->getInfo().dimensions(), &subset, &outX, &outY); in decodeRegion() 75 if (!fCodec->getSupportedSubset(&subset)) { in decodeRegion() 79 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() 82 SkAlphaType dstAlphaType = fCodec->computeOutputAlphaType(requireUnpremul); in decodeRegion() 136 SkCodec::Result result = fCodec->getAndroidPixels(decodeInfo, dst, bitmap->rowBytes(), in decodeRegion()
|
H A D | BitmapRegionDecoder.h | 28 SkEncodedImageFormat getEncodedFormat() { return fCodec->getEncodedFormat(); } in getEncodedFormat() 31 return fCodec->computeOutputColorType(requestedColorType); in computeOutputColorType() 36 return fCodec->computeOutputColorSpace(outputColorType, prefColorSpace); in computeOutputColorSpace() 45 std::unique_ptr<SkAndroidCodec> fCodec; member in android::skia::final
|
/third_party/skia/src/utils/ |
H A D | SkAnimCodecPlayer.cpp | 17 SkAnimCodecPlayer::SkAnimCodecPlayer(std::unique_ptr<SkCodec> codec) : fCodec(std::move(codec)) { in SkAnimCodecPlayer() 18 fImageInfo = fCodec->getInfo(); in SkAnimCodecPlayer() 19 fFrameInfos = fCodec->getFrameInfo(); in SkAnimCodecPlayer() 35 SkCodecImageGenerator::MakeFromCodec(std::move(fCodec)))); in SkAnimCodecPlayer() 42 if (!fCodec) { in dimensions() 46 if (SkEncodedOriginSwapsWidthHeight(fCodec->getOrigin())) { in dimensions() 66 const auto origin = fCodec->getOrigin(); in getFrameAt() 98 if (SkCodec::kSuccess != fCodec->getPixels(imageInfo, data->writable_data(), rb, &opts)) { in getFrameAt()
|
/third_party/skia/src/codec/ |
H A D | SkCodecImageGenerator.cpp | 41 , fCodec(std::move(codec)) in SkCodecImageGenerator() 53 SkCodec::Result result = fCodec->getPixels(pm, options); in getPixels() 64 return SkPixmapPriv::Orient(dst, fCodec->getOrigin(), decode); in getPixels() 75 return fCodec->queryYUVAInfo(supportedDataTypes, yuvaPixmapInfo); in onQueryYUVAInfo() 79 switch (fCodec->getYUVAPlanes(yuvaPixmaps)) { in onGetYUVAPlanes() 90 SkISize size = fCodec->getScaledDimensions(desiredScale); in getScaledDimensions() 91 if (SkEncodedOriginSwapsWidthHeight(fCodec->getOrigin())) { in getScaledDimensions()
|
H A D | SkAndroidCodec.cpp | 60 , fCodec(codec) in SkAndroidCodec() 116 bool highPrecision = fCodec->getEncodedInfo().bitsPerComponent() > 8; in computeOutputColorType() 165 const skcms_ICCProfile* encodedProfile = fCodec->getEncodedInfo().profile(); in computeOutputColorSpace() 206 const auto origDims = fCodec->dimensions(); in computeSampleSize() 222 if (supports_any_down_scale(fCodec.get())) { in computeSampleSize() 288 return fCodec->dimensions(); in getSampledDimensions() 295 if (!desiredSubset || !is_valid_subset(*desiredSubset, fCodec->dimensions())) { in getSupportedSubset() 316 if (fCodec->dimensions() == subset.size()) { in getSampledSubsetDimensions() 340 if (!is_valid_subset(*options->fSubset, fCodec->dimensions())) { in getAndroidPixels() 344 if (SkIRect::MakeSize(fCodec in getAndroidPixels() [all...] |
H A D | SkCodecImageGenerator.h | 64 int getFrameCount() { return fCodec->getFrameCount(); } in getFrameCount() 74 return fCodec->getFrameInfo(index, info); in getFrameInfo() 91 int getRepetitionCount() { return fCodec->getRepetitionCount(); } in getRepetitionCount() 112 std::unique_ptr<SkCodec> fCodec; member in SkCodecImageGenerator
|
H A D | SkBmpRLECodec.cpp | 538 : fCodec(codec) 540 SkASSERT(fCodec); 544 return fCodec->fillWidth(); 549 return fCodec->setSampleX(sampleX); 552 // Unowned pointer. fCodec will delete this class in its destructor. 553 SkBmpRLECodec* fCodec;
|
H A D | SkWuffsCodec.cpp | 189 const SkWuffsCodec* fCodec; member in final 327 fCodec = codec; in init() 334 return fCodec->frame(i); in onGetFrame()
|
/third_party/skia/gm/ |
H A D | animated_gif.cpp | 34 std::unique_ptr<SkCodec> fCodec; member in AnimatedGifGM 48 const SkImageInfo info = fCodec->getInfo().makeColorType(kN32_SkColorType); in drawFrame() 65 if (SkCodec::kSuccess != fCodec->getPixels(info, bm.getPixels(), in drawFrame() 88 SkISize dim = fCodec->getInfo().dimensions(); 99 if (fCodec) { in initCodec() 112 fCodec = SkCodec::MakeFromStream(std::move(stream)); in initCodec() 113 if (!fCodec) { in initCodec() 118 fFrameInfos = fCodec->getFrameInfo(); in initCodec() 132 canvas->translate(SkIntToScalar(fCodec->getInfo().width()), 0); 137 canvas->translate(0, SkIntToScalar(fCodec [all...] |
/third_party/skia/src/android/ |
H A D | SkAnimatedImage.cpp | 58 : fCodec(std::move(codec)) in SkAnimatedImage() 62 , fFrameCount(fCodec->codec()->getFrameCount()) in SkAnimatedImage() 65 , fRepetitionCount(fCodec->codec()->getRepetitionCount()) in SkAnimatedImage() 71 // orientation that fCodec can do directly, and then use fMatrix to handle crop (along with a in SkAnimatedImage() 72 // clip), orientation, and scaling outside of fCodec. The matrices are computed individually in SkAnimatedImage() 75 const auto origin = fCodec->codec()->getOrigin(); in SkAnimatedImage() 82 // to fCodec and for the scale matrix computation. in SkAnimatedImage() 89 fSampleSize = fCodec->computeSampleSize(&decodeSize); in SkAnimatedImage() 198 if (fCodec->codec()->getFrameInfo(frameToDecode, &frameInfo)) { in decodeNextFrame() 210 frameInfo.fAlphaType = fCodec in decodeNextFrame() [all...] |
/third_party/skia/include/codec/ |
H A D | SkAndroidCodec.h | 72 return fCodec->getEncodedInfo().profile(); in getICCProfile() 78 SkEncodedImageFormat getEncodedFormat() const { return fCodec->getEncodedFormat(); } in getEncodedFormat() 247 SkCodec* codec() const { return fCodec.get(); } in codec() 261 std::unique_ptr<SkCodec> fCodec; member in SkAndroidCodec
|
/third_party/skia/include/utils/ |
H A D | SkAnimCodecPlayer.h | 49 std::unique_ptr<SkCodec> fCodec; member in SkAnimCodecPlayer
|
/third_party/skia/include/android/ |
H A D | SkAnimatedImage.h | 140 std::unique_ptr<SkAndroidCodec> fCodec; member in SkAnimatedImage
|