Lines Matching defs:codec

8 #include "include/codec/SkAndroidCodec.h"
9 #include "include/codec/SkCodec.h"
10 #include "include/codec/SkCodecAnimation.h"
52 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(std::move(data)));
53 auto info = codec->getInfo().makeColorType(kRGB_565_SkColorType);
61 const auto result = codec->getPixels(info, bm.getPixels(), bm.rowBytes(),
255 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data));
256 if (!codec) {
263 REPORTER_ASSERT(r, !codec->getFrameInfo(0, &frameInfo));
266 const int repetitionCount = codec->getRepetitionCount();
306 // Re-create the codec to reset state and test parsing.
307 codec = SkCodec::MakeFromData(data);
313 frameInfos = codec->getFrameInfo();
318 frameCount = codec->getFrameCount();
340 REPORTER_ASSERT(r, codec->getFrameInfo(i, nullptr));
341 REPORTER_ASSERT(r, codec->getFrameInfo(i, &frameInfo));
362 auto expectedAlpha = 0 == i ? codec->getInfo().alphaType() : rec.fAlphas[i-1];
395 // - Start from scratch for each frame. |codec| will have to decode the required frame
397 // - Provide the frame that a frame depends on, so |codec| just has to blend.
402 const auto info = codec->getInfo().makeColorType(kN32_SkColorType);
419 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(),
495 auto codec = SkAndroidCodec::MakeFromCodec(SkCodec::MakeFromData(std::move(data)));
496 if (!codec) {
501 auto info = codec->getInfo().makeAlphaType(kPremul_SkAlphaType);
504 auto dimensions = codec->codec()->getScaledDimensions(1.0f / sampleSize);
510 for (int i = 0; i < codec->codec()->getFrameCount(); ++i) {
512 REPORTER_ASSERT(r, codec->codec()->getFrameInfo(i, &frameInfo));
521 auto result = codec->codec()->getPixels(info, bm.getPixels(), bm.rowBytes(),
530 result = codec->codec()->getPixels(info, bm2.getPixels(), bm2.rowBytes(),
593 auto codec = SkCodec::MakeFromData(GetResourceAsData(test.fFile));
594 REPORTER_ASSERT(r, codec);
596 auto player = std::make_unique<SkAnimCodecPlayer>(std::move(codec));