class SkCodec; class SkStream; struct SkImageInfo; struct avifDecoder; struct AvifDecoderDeleter { voidoperator()(avifDecoder* decoder) const;
}; using AvifDecoder = std::unique_ptr<avifDecoder, AvifDecoderDeleter>;
class SkAvifCodec : public SkScalingCodec { public: /* * Returns true if an AVIF image is detected. Returns false otherwise.
*/ staticbool IsAvif(constvoid*, size_t);
/* * Assumes IsAvif() was called and it returned true.
*/ static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*);
// fAvifDecoder has a pointer to this data. This should not be freed until // the decode is completed. To ensure that, we declare this before // fAvifDecoder.
sk_sp<SkData> fData;
AvifDecoder fAvifDecoder; bool fUseAnimation;
class Frame : public SkFrame { public:
Frame(int i, SkEncodedInfo::Alpha alpha) : INHERITED(i), fReportedAlpha(alpha) {}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.