Home
last modified time | relevance | path

Searched refs:imageDecoder (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/native/graphics/jni/
Dimagedecoder.cpp186 ImageDecoder* imageDecoder = toDecoder(decoder); in AImageDecoder_setDataSpace() local
187 imageDecoder->setOutColorSpace(std::move(cs)); in AImageDecoder_setDataSpace()
228 const ImageDecoder* imageDecoder = toDecoder(info); in AImageDecoderHeaderInfo_getDataSpace() local
229 SkColorType colorType = imageDecoder->mCodec->computeOutputColorType(kN32_SkColorType); in AImageDecoderHeaderInfo_getDataSpace()
230 sk_sp<SkColorSpace> colorSpace = imageDecoder->getDefaultColorSpace(); in AImageDecoderHeaderInfo_getDataSpace()
335 ImageDecoder* imageDecoder = toDecoder(decoder); in AImageDecoder_decodeImage() local
337 SkImageInfo info = imageDecoder->getOutputInfo(); in AImageDecoder_decodeImage()
343 return ResultToErrorCode(imageDecoder->decode(pixels, stride)); in AImageDecoder_decodeImage()
/frameworks/base/libs/hwui/jni/
DAnimatedImageDrawable.cpp45 auto* imageDecoder = reinterpret_cast<ImageDecoder*>(nativeImageDecoder); in AnimatedImageDrawable_nCreate() local
54 if (imageDecoder->mCodec->getEncodedFormat() != SkEncodedImageFormat::kWEBP) { in AnimatedImageDrawable_nCreate()
55 const int frameCount = imageDecoder->mCodec->codec()->getFrameCount(); in AnimatedImageDrawable_nCreate()
58 if (!imageDecoder->mCodec->codec()->getFrameInfo(i, &frameInfo)) { in AnimatedImageDrawable_nCreate()
69 auto info = imageDecoder->mCodec->getInfo().makeWH(width, height) in AnimatedImageDrawable_nCreate()
97 sk_sp<SkAnimatedImage> animatedImg = SkAnimatedImage::Make(std::move(imageDecoder->mCodec), in AnimatedImageDrawable_nCreate()