/external/skqp/gm/ |
D | animatedGif.cpp | 38 std::unique_ptr<SkCodec> fCodec; member in AnimatedGifGM 52 const SkImageInfo info = fCodec->getInfo().makeColorType(kN32_SkColorType); in drawFrame() 69 if (SkCodec::kSuccess != fCodec->getPixels(info, bm.getPixels(), in drawFrame() 92 SkISize dim = fCodec->getInfo().dimensions(); in onISize() 103 if (fCodec) { in initCodec() 116 fCodec = SkCodec::MakeFromStream(std::move(stream)); in initCodec() 117 if (!fCodec) { in initCodec() 123 fFrameInfos = fCodec->getFrameInfo(); in initCodec() 138 canvas->translate(SkIntToScalar(fCodec->getInfo().width()), 0); in onDraw() 143 canvas->translate(0, SkIntToScalar(fCodec->getInfo().height())); in onDraw() [all …]
|
/external/skia/client_utils/android/ |
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()
|
D | BitmapRegionDecoder.h | 28 SkEncodedImageFormat getEncodedFormat() { return fCodec->getEncodedFormat(); } in getEncodedFormat() 31 return fCodec->computeOutputColorType(requestedColorType); in computeOutputColorType() 36 return fCodec->computeOutputColorSpace(outputColorType, prefColorSpace); 45 std::unique_ptr<SkAndroidCodec> fCodec; variable
|
/external/skia/src/codec/ |
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()
|
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->dimensions()) == *options->fSubset) { in getAndroidPixels() [all …]
|
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; variable
|
D | SkBmpRLECodec.cpp | 538 : fCodec(codec) in SkBmpRLESampler() 540 SkASSERT(fCodec); in SkBmpRLESampler() 544 return fCodec->fillWidth(); in fillWidth() 549 return fCodec->setSampleX(sampleX); in onSetSampleX() 553 SkBmpRLECodec* fCodec; member in SkBmpRLESampler
|
/external/skia/gm/ |
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(); in onISize() 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); in onDraw() 137 canvas->translate(0, SkIntToScalar(fCodec->getInfo().height())); in onDraw() [all …]
|
/external/skia/src/utils/ |
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()
|
/external/skqp/src/android/ |
D | SkBitmapRegionCodec.h | 31 SkEncodedImageFormat getEncodedFormat() override { return fCodec->getEncodedFormat(); } in getEncodedFormat() 34 return fCodec->computeOutputColorType(requestedColorType); in computeOutputColorType() 39 return fCodec->computeOutputColorSpace(outputColorType, prefColorSpace); 44 std::unique_ptr<SkAndroidCodec> fCodec;
|
D | SkBitmapRegionCodec.cpp | 15 , fCodec(codec) in SkBitmapRegionCodec() 39 SubsetType type = adjust_subset_rect(fCodec->getInfo().dimensions(), &subset, &outX, &outY); in decodeRegion() 45 if (!fCodec->getSupportedSubset(&subset)) { in decodeRegion() 49 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() 52 SkAlphaType dstAlphaType = fCodec->computeOutputAlphaType(requireUnpremul); in decodeRegion() 106 SkCodec::Result result = fCodec->getAndroidPixels(decodeInfo, dst, bitmap->rowBytes(), in decodeRegion()
|
D | SkAnimatedImage.cpp | 67 : fCodec(std::move(codec)) in SkAnimatedImage() 72 , fFrameCount(fCodec->codec()->getFrameCount()) in SkAnimatedImage() 76 , fRepetitionCount(fCodec->codec()->getRepetitionCount()) in SkAnimatedImage() 185 if (fCodec->codec()->getFrameInfo(frameToDecode, &frameInfo)) { in decodeNextFrame() 197 frameInfo.fAlphaType = fCodec->getInfo().alphaType(); in decodeNextFrame() 289 auto result = fCodec->codec()->getPixels(dst->info(), dst->getPixels(), dst->rowBytes(), in decodeNextFrame()
|
/external/skqp/src/utils/ |
D | SkAnimCodecPlayer.cpp | 15 SkAnimCodecPlayer::SkAnimCodecPlayer(std::unique_ptr<SkCodec> codec) : fCodec(std::move(codec)) { in SkAnimCodecPlayer() 16 fImageInfo = fCodec->getInfo(); in SkAnimCodecPlayer() 17 fFrameInfos = fCodec->getFrameInfo(); in SkAnimCodecPlayer() 33 SkCodecImageGenerator::MakeFromCodec(std::move(fCodec)))); in SkAnimCodecPlayer() 66 if (SkCodec::kSuccess == fCodec->getPixels(fImageInfo, data->writable_data(), rb, &opts)) { in getFrameAt()
|
/external/skia/src/android/ |
D | SkAnimatedImage.cpp | 58 : fCodec(std::move(codec)) in SkAnimatedImage() 62 , fFrameCount(fCodec->codec()->getFrameCount()) in SkAnimatedImage() 65 , fRepetitionCount(fCodec->codec()->getRepetitionCount()) in SkAnimatedImage() 75 const auto origin = fCodec->codec()->getOrigin(); in SkAnimatedImage() 89 fSampleSize = fCodec->computeSampleSize(&decodeSize); in SkAnimatedImage() 198 if (fCodec->codec()->getFrameInfo(frameToDecode, &frameInfo)) { in decodeNextFrame() 210 frameInfo.fAlphaType = fCodec->getInfo().alphaType(); in decodeNextFrame() 303 auto result = fCodec->getAndroidPixels(dst->info(), dst->getPixels(), dst->rowBytes(), in decodeNextFrame() 319 } else if (fCodec->getEncodedFormat() == SkEncodedImageFormat::kHEIF) { in decodeNextFrame() 325 if (fCodec->codec()->getFrameInfo(frameToDecode, &frameInfo)) { in decodeNextFrame()
|
/external/skqp/src/codec/ |
D | SkCodecImageGenerator.cpp | 42 , fCodec(std::move(codec)) in SkCodecImageGenerator() 55 SkCodec::Result result = fCodec->getPixels(pm); in onGetPixels() 66 return SkPixmapPriv::Orient(dst, fCodec->getOrigin(), decode); in onGetPixels() 82 return fCodec->queryYUV8(sizeInfo, colorSpace); in onQueryYUVA8() 88 SkCodec::Result result = fCodec->getYUV8Planes(sizeInfo, planes); in onGetYUVA8Planes()
|
D | SkAndroidCodec.cpp | 73 , fCodec(codec) in SkAndroidCodec() 125 bool highPrecision = fCodec->getEncodedInfo().bitsPerComponent() > 8; in computeOutputColorType() 172 const skcms_ICCProfile* encodedProfile = fCodec->getEncodedInfo().profile(); in computeOutputColorSpace() 234 if (supports_any_down_scale(fCodec.get())) { in computeSampleSize() 305 || !SkPixmapPriv::ShouldSwapWidthHeight(fCodec->getOrigin())) { in getSampledDimensions() 368 && SkPixmapPriv::ShouldSwapWidthHeight(fCodec->getOrigin())) { in getAndroidPixels() 401 if (SkPixmapPriv::Orient(dst, fCodec->getOrigin(), decode)) { in getAndroidPixels()
|
D | SkBmpRLECodec.cpp | 535 : fCodec(codec) in SkBmpRLESampler() 537 SkASSERT(fCodec); in SkBmpRLESampler() 541 return fCodec->fillWidth(); in fillWidth() 546 return fCodec->setSampleX(sampleX); in onSetSampleX() 550 SkBmpRLECodec* fCodec; member in SkBmpRLESampler
|
D | SkCodecImageGenerator.h | 42 std::unique_ptr<SkCodec> fCodec; variable
|
D | SkWuffsCodec.cpp | 111 const SkWuffsCodec* fCodec; member in SkWuffsFrameHolder 271 fCodec = codec; in init() 278 return fCodec->frame(i); in onGetFrame()
|
/external/skia/include/codec/ |
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; variable
|
/external/skqp/include/codec/ |
D | SkAndroidCodec.h | 81 SkEncodedImageFormat getEncodedFormat() const { return fCodec->getEncodedFormat(); } in getEncodedFormat() 270 SkCodec* codec() const { return fCodec.get(); } in codec() 285 std::unique_ptr<SkCodec> fCodec; variable
|
/external/skqp/include/utils/ |
D | SkAnimCodecPlayer.h | 49 std::unique_ptr<SkCodec> fCodec;
|
/external/skia/include/utils/ |
D | SkAnimCodecPlayer.h | 49 std::unique_ptr<SkCodec> fCodec;
|
/external/skqp/include/android/ |
D | SkAnimatedImage.h | 127 std::unique_ptr<SkAndroidCodec> fCodec; variable
|
/external/skia/include/android/ |
D | SkAnimatedImage.h | 140 std::unique_ptr<SkAndroidCodec> fCodec; variable
|