7#ifndef SkIcoCodec_DEFINED
8#define SkIcoCodec_DEFINED
29 static bool IsIco(
const void*,
size_t);
71 int onGetScanlines(
void*
dst,
int count,
size_t rowBytes)
override;
73 bool onSkipScanlines(
int count)
override;
78 Result onIncrementalDecode(
int* rowsDecoded)
override;
80 SkSampler* getSampler(
bool createIfNecessary)
override;
91 int chooseCodec(
const SkISize& requestedSize,
int startIndex);
98 std::unique_ptr<SkStream>,
101 std::unique_ptr<skia_private::TArray<std::unique_ptr<SkCodec>>> fEmbeddedCodecs;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
const SkImageInfo & dstInfo() const
SkCodec(SkEncodedInfo &&, XformFormat srcFormat, std::unique_ptr< SkStream >, SkEncodedOrigin=kTopLeft_SkEncodedOrigin)
const Options & options() const
bool conversionSupported(const SkImageInfo &, bool, bool) override
SkISize onGetScaledDimensions(float desiredScale) const override
Result onGetPixels(const SkImageInfo &dstInfo, void *dst, size_t dstRowBytes, const Options &, int *) override
SkEncodedImageFormat onGetEncodedFormat() const override
static bool IsIco(const void *, size_t)
static std::unique_ptr< SkCodec > MakeFromStream(std::unique_ptr< SkStream >, Result *)
bool usesColorXform() const override
SkScanlineOrder onGetScanlineOrder() const override
bool onDimensionsSupported(const SkISize &) override