8#ifndef SkAvifCodec_DEFINED
9#define SkAvifCodec_DEFINED
30using AvifDecoder = std::unique_ptr<avifDecoder, AvifDecoderDeleter>;
37 static bool IsAvif(
const void*,
size_t);
49 int* rowsDecoded)
override;
60 std::unique_ptr<SkStream>,
89 ~FrameHolder()
override {}
90 void setScreenSize(
int w,
int h) {
94 Frame* appendNewFrame(
bool hasAlpha);
95 const Frame*
frame(
int i)
const;
96 int size()
const {
return static_cast<int>(fFrames.size()); }
97 void reserve(
int size) { fFrames.reserve(
size); }
100 const SkFrame* onGetFrame(
int i)
const override;
103 std::vector<Frame> fFrames;
106 FrameHolder fFrameHolder;
std::unique_ptr< avifDecoder, AvifDecoderDeleter > AvifDecoder
#define INHERITED(method,...)
int onGetRepetitionCount() override
const SkFrameHolder * getFrameHolder() const override
static std::unique_ptr< SkCodec > MakeFromStream(std::unique_ptr< SkStream >, Result *)
static bool IsAvif(const void *, size_t)
bool onGetFrameInfo(int, FrameInfo *) const override
int onGetFrameCount() override
Result onGetPixels(const SkImageInfo &dstInfo, void *dst, size_t dstRowBytes, const Options &options, int *rowsDecoded) override
SkEncodedImageFormat onGetEncodedFormat() const override
const SkImageInfo & dstInfo() const
const Options & options() const
SkScalingCodec(SkEncodedInfo &&info, XformFormat srcFormat, std::unique_ptr< SkStream > stream, SkEncodedOrigin origin=kTopLeft_SkEncodedOrigin)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
void operator()(avifDecoder *decoder) const