8#ifndef BitmapRegionDecoder_DEFINED
9#define BitmapRegionDecoder_DEFINED
34 return fCodec->computeOutputColorType(requestedColorType);
39 return fCodec->computeOutputColorSpace(outputColorType, std::move(prefColorSpace));
46 std::unique_ptr<SkStream>* outGainmapImageStream) {
47 return fCodec->getAndroidGainmap(outInfo, outGainmapImageStream);
53 std::unique_ptr<SkAndroidCodec> fCodec;
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
bool decodeRegion(SkBitmap *bitmap, BRDAllocator *allocator, const SkIRect &desiredSubset, int sampleSize, SkColorType colorType, bool requireUnpremul, sk_sp< SkColorSpace > prefColorSpace)
static std::unique_ptr< BitmapRegionDecoder > Make(sk_sp< SkData > data)
SkEncodedImageFormat getEncodedFormat()
bool getAndroidGainmap(SkGainmapInfo *outInfo, std::unique_ptr< SkStream > *outGainmapImageStream)
sk_sp< SkColorSpace > computeOutputColorSpace(SkColorType outputColorType, sk_sp< SkColorSpace > prefColorSpace=nullptr)
SkColorType computeOutputColorType(SkColorType requestedColorType)