8#ifndef SkCodec_wbmp_DEFINED
9#define SkCodec_wbmp_DEFINED
28 static bool IsWbmp(
const void*,
size_t);
43 bool needsXform)
override;
47 SkSampler* getSampler(
bool createIfNecessary)
override {
48 SkASSERT(fSwizzler || !createIfNecessary);
49 return fSwizzler.get();
55 bool readRow(uint8_t* row);
59 const size_t fSrcRowBytes;
62 std::unique_ptr<SkSwizzler> fSwizzler;
65 int onGetScanlines(
void*
dst,
int count,
size_t dstRowBytes)
override;
66 bool onSkipScanlines(
int count)
override;
68 const Options&
options)
override;
const SkImageInfo & dstInfo() const
SkCodec(SkEncodedInfo &&, XformFormat srcFormat, std::unique_ptr< SkStream >, SkEncodedOrigin=kTopLeft_SkEncodedOrigin)
const Options & options() const
SkEncodedImageFormat onGetEncodedFormat() const override
static bool IsWbmp(const void *, size_t)
bool conversionSupported(const SkImageInfo &dst, bool srcIsOpaque, bool needsXform) override
bool usesColorXform() const override
Result onGetPixels(const SkImageInfo &, void *, size_t, const Options &, int *) override
static std::unique_ptr< SkCodec > MakeFromStream(std::unique_ptr< SkStream >, Result *)