Home
last modified time | relevance | path

Searched refs:fCodec (Results 1 – 25 of 26) sorted by relevance

12

/external/skqp/gm/
DanimatedGif.cpp38 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/
DBitmapRegionDecoder.cpp37 : 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()
DBitmapRegionDecoder.h28 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/
DSkCodecImageGenerator.cpp41 , 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()
DSkAndroidCodec.cpp60 , 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 …]
DSkCodecImageGenerator.h64 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
DSkBmpRLECodec.cpp538 : 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/
Danimated_gif.cpp34 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/
DSkAnimCodecPlayer.cpp17 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/
DSkBitmapRegionCodec.h31 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;
DSkBitmapRegionCodec.cpp15 , 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()
DSkAnimatedImage.cpp67 : 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/
DSkAnimCodecPlayer.cpp15 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/
DSkAnimatedImage.cpp58 : 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/
DSkCodecImageGenerator.cpp42 , 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()
DSkAndroidCodec.cpp73 , 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()
DSkBmpRLECodec.cpp535 : 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
DSkCodecImageGenerator.h42 std::unique_ptr<SkCodec> fCodec; variable
DSkWuffsCodec.cpp111 const SkWuffsCodec* fCodec; member in SkWuffsFrameHolder
271 fCodec = codec; in init()
278 return fCodec->frame(i); in onGetFrame()
/external/skia/include/codec/
DSkAndroidCodec.h72 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/
DSkAndroidCodec.h81 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/
DSkAnimCodecPlayer.h49 std::unique_ptr<SkCodec> fCodec;
/external/skia/include/utils/
DSkAnimCodecPlayer.h49 std::unique_ptr<SkCodec> fCodec;
/external/skqp/include/android/
DSkAnimatedImage.h127 std::unique_ptr<SkAndroidCodec> fCodec; variable
/external/skia/include/android/
DSkAnimatedImage.h140 std::unique_ptr<SkAndroidCodec> fCodec; variable

12