7#ifndef SkCodecImageGenerator_DEFINED
8#define SkCodecImageGenerator_DEFINED
34 std::unique_ptr<SkCodec>, std::optional<SkAlphaType> = std::nullopt);
86 return fCodec->getFrameInfo(index,
info);
111 const Options& opts)
override;
124 std::unique_ptr<SkCodec> fCodec;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
SkISize getScaledDimensions(float desiredScale) const
bool onGetYUVAPlanes(const SkYUVAPixmaps &yuvaPixmaps) override
bool getFrameInfo(int index, SkCodec::FrameInfo *info) const
bool onQueryYUVAInfo(const SkYUVAPixmapInfo::SupportedDataTypes &, SkYUVAPixmapInfo *) const override
static std::unique_ptr< SkImageGenerator > MakeFromEncodedCodec(sk_sp< SkData >, std::optional< SkAlphaType >=std::nullopt)
sk_sp< SkData > onRefEncodedData() override
bool getPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, const SkCodec::Options *options=nullptr)
bool onGetPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, const Options &opts) override
static std::unique_ptr< SkImageGenerator > MakeFromCodec(std::unique_ptr< SkCodec >, std::optional< SkAlphaType >=std::nullopt)