From bf0bf1e749967521656e92a7db3d8b2390559dd4 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 30 Jun 2025 12:10:13 -0700 Subject: [PATCH] api.md: add WebPValidateDecoderConfig to pseudocode This is similar to the `WebPValidateConfig()` call in the encode example. Bug: webp:427525168 Change-Id: I475484cb1a5d581757f5a693da186138b3dfabb3 --- doc/api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api.md b/doc/api.md index c5d83dbb..1193f00d 100644 --- a/doc/api.md +++ b/doc/api.md @@ -202,6 +202,7 @@ config.output.u.RGBA.rgba = (uint8_t*) memory_buffer; config.output.u.RGBA.stride = scanline_stride; config.output.u.RGBA.size = total_size_of_the_memory_buffer; config.output.is_external_memory = 1; +config_error = WebPValidateDecoderConfig(&config); // not mandatory, but useful // E) Decode the WebP image. There are two variants w.r.t decoding image. // The first one (E.1) decodes the full image and the second one (E.2) is