From 4d8165d790abeb5ed6db65ef5fefaa93d6a87f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 15 Dec 2021 06:15:26 +0100 Subject: [PATCH] Add some WebP notes --- fastiv-io.c | 1 + tools/webpinfo.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/fastiv-io.c b/fastiv-io.c index 33ff9b8..330e716 100644 --- a/fastiv-io.c +++ b/fastiv-io.c @@ -1896,6 +1896,7 @@ fastiv_io_open_from_data(const char *data, size_t len, const gchar *path, } #endif // HAVE_XCURSOR -------------------------------------------------------- #ifdef HAVE_LIBWEBP //--------------------------------------------------------- + // TODO(p): https://github.com/google/wuffs/commit/4c04ac1 if ((surface = open_libwebp(data, len, path, error))) break; if (error) { diff --git a/tools/webpinfo.c b/tools/webpinfo.c index a138985..f3417f9 100644 --- a/tools/webpinfo.c +++ b/tools/webpinfo.c @@ -28,6 +28,10 @@ // https://github.com/webmproject/libwebp/blob/master/doc/webp-container-spec.txt // https://github.com/webmproject/libwebp/blob/master/doc/webp-lossless-bitstream-spec.txt // https://datatracker.ietf.org/doc/html/rfc6386 +// +// Pretty versions, hopefully not outdated: +// https://developers.google.com/speed/webp/docs/riff_container +// https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification static jv parse_webp(jv o, const uint8_t *p, size_t len)