| commit | 166968b809d40d98cb4e5f8506846fab790fc18c | [log] [tgz] |
|---|---|---|
| author | Wan-Teh Chang <wtc@google.com> | Sat Aug 02 02:07:41 2025 |
| committer | James Zern <jzern@google.com> | Thu Aug 07 20:57:10 2025 |
| tree | 98544e82041563947dc9b762b39cb41e58f16521 | |
| parent | 4fa21912338357f89e4fd51cf2368325b59e9bd9 [diff] |
Use file static variables in WEBP_DSP_INIT_FUNC() Function static variables are initialized on the first call to the function. In C the initialization of function static variables is not thread-safe. Use file static variables instead in the WEBP_DSP_INIT_FUNC() macro. Remove the volatile qualifier for the pthread version of the func##_last_cpuinfo_used variable because the variable is only accessed while holding the mutex. Change-Id: I1237904a49d2467d7ce79fc53f9e7f966aa7a5c1 (cherry picked from commit 313692d51efc2ea41058a18b8ec1abd59674c9b7)
__ __ ____ ____ ____
/ \\/ \/ _ \/ _ )/ _ \
\ / __/ _ \ __/
\__\__/\____/\_____/__/ ____ ___
/ _/ / \ \ / _ \/ _/
/ \_/ / / \ \ __/ \__
\____/____/\_____/_____/____/v1.6.0
WebP codec is a library to encode and decode images in WebP format. This package contains the library that can be used in other programs to add WebP support, as well as the command line tools ‘cwebp’ and ‘dwebp’ to compress and decompress images respectively.
See https://developers.google.com/speed/webp for details on the image format.
The latest source tree is available at https://chromium.googlesource.com/webm/libwebp
It is released under the same license as the WebM project. See https://www.webmproject.org/license/software/ or the “COPYING” file for details. An additional intellectual property rights grant can be found in the file PATENTS.
See the building documentation.
The examples/ directory contains tools to encode and decode images and animations, view information about WebP images, and more. See the tools documentation.
See the APIs documentation, and API usage examples in the examples/ directory.
Please report all bugs to the issue tracker. For security reports, select ‘Security report’ from the Template dropdown.
Patches welcome! See how to contribute.
Email: webp-discuss@webmproject.org
Web: https://groups.google.com/a/webmproject.org/group/webp-discuss