Add some WebP notes

This commit is contained in:
Přemysl Eric Janouch 2021-12-15 06:15:26 +01:00
parent c18404efee
commit 4d8165d790
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 5 additions and 0 deletions

View File

@ -1896,6 +1896,7 @@ fastiv_io_open_from_data(const char *data, size_t len, const gchar *path,
} }
#endif // HAVE_XCURSOR -------------------------------------------------------- #endif // HAVE_XCURSOR --------------------------------------------------------
#ifdef HAVE_LIBWEBP //--------------------------------------------------------- #ifdef HAVE_LIBWEBP //---------------------------------------------------------
// TODO(p): https://github.com/google/wuffs/commit/4c04ac1
if ((surface = open_libwebp(data, len, path, error))) if ((surface = open_libwebp(data, len, path, error)))
break; break;
if (error) { if (error) {

View File

@ -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-container-spec.txt
// https://github.com/webmproject/libwebp/blob/master/doc/webp-lossless-bitstream-spec.txt // https://github.com/webmproject/libwebp/blob/master/doc/webp-lossless-bitstream-spec.txt
// https://datatracker.ietf.org/doc/html/rfc6386 // 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 static jv
parse_webp(jv o, const uint8_t *p, size_t len) parse_webp(jv o, const uint8_t *p, size_t len)