mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-06 11:04:30 +02:00
api.md: add WebPValidateDecoderConfig to pseudocode
This is similar to the `WebPValidateConfig()` call in the encode example. Bug: webp:427525168 Change-Id: I475484cb1a5d581757f5a693da186138b3dfabb3
This commit is contained in:
parent
e8ae210d0b
commit
bf0bf1e749
@ -202,6 +202,7 @@ config.output.u.RGBA.rgba = (uint8_t*) memory_buffer;
|
|||||||
config.output.u.RGBA.stride = scanline_stride;
|
config.output.u.RGBA.stride = scanline_stride;
|
||||||
config.output.u.RGBA.size = total_size_of_the_memory_buffer;
|
config.output.u.RGBA.size = total_size_of_the_memory_buffer;
|
||||||
config.output.is_external_memory = 1;
|
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.
|
// 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
|
// The first one (E.1) decodes the full image and the second one (E.2) is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user