Go to the source code of this file.
◆ FuzzIncrementalImageDecode()
bool FuzzIncrementalImageDecode |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
Definition at line 13 of file FuzzIncrementalImage.cpp.
13 {
15 if (!codec) {
16 return false;
17 }
18
21
22 return false;
23 }
24
27 return false;
28 }
29
30
31
32 int rowsDecoded;
33 result = codec->incrementalDecode(&rowsDecoded);
37 if (rowsDecoded < bm.
height()) {
40 }
41 return true;
43 return true;
44 default:
45 return false;
46 }
47}
static void sk_bzero(void *buffer, size_t size)
const SkImageInfo & info() const
bool tryAllocPixels(const SkImageInfo &info, size_t rowBytes)
static std::unique_ptr< SkCodec > MakeFromStream(std::unique_ptr< SkStream >, SkSpan< const SkCodecs::Decoder > decoders, Result *=nullptr, SkPngChunkReader *=nullptr, SelectionPolicy selectionPolicy=SelectionPolicy::kPreferStillImage)
static std::unique_ptr< SkMemoryStream > MakeDirect(const void *data, size_t length)