mirror of
https://github.com/webmproject/libwebp.git
synced 2026-04-09 14:22:31 +02:00
Add a fuzzer for ReadAnimatedImage
Bug: 496629074 Change-Id: Ie984f0eab67e8e6eda44abeedf9c13aa213dd340
This commit is contained in:
@@ -52,6 +52,13 @@ void ClearAnimatedImage(AnimatedImage* const image);
|
||||
int ReadAnimatedImage(const char filename[], AnimatedImage* const image,
|
||||
int dump_frames, const char dump_folder[]);
|
||||
|
||||
// Same as 'ReadAnimatedImage', but from a memory buffer.
|
||||
// filename is only used for log messages.
|
||||
int ReadAnimatedImageFromMemory(const char filename[],
|
||||
const uint8_t* const data, size_t size,
|
||||
AnimatedImage* const image, int dump_frames,
|
||||
const char dump_folder[]);
|
||||
|
||||
// Given two RGBA buffers, calculate max pixel difference and PSNR.
|
||||
// If 'premultiply' is true, R/G/B values will be pre-multiplied by the
|
||||
// transparency before comparison.
|
||||
|
||||
Reference in New Issue
Block a user