diff options
author | robot-piglet <[email protected]> | 2025-07-24 10:07:25 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-07-24 10:16:27 +0300 |
commit | 1c295121fa6a70a55c0ed79beb993761eac1fadc (patch) | |
tree | 0a3af4cf839ddc14d3d2829c3b224c1da409d80c /contrib/libs/libwebp/src/dec/buffer_dec.c | |
parent | 026ffc40392187f03308f5ae7445365ad4a1ef7f (diff) |
Intermediate changes
commit_hash:9e9c04347de10235f77fcdaf62119e9b89e8bc59
Diffstat (limited to 'contrib/libs/libwebp/src/dec/buffer_dec.c')
-rw-r--r-- | contrib/libs/libwebp/src/dec/buffer_dec.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/libs/libwebp/src/dec/buffer_dec.c b/contrib/libs/libwebp/src/dec/buffer_dec.c index 11ce76f19e2..290f7ab3b56 100644 --- a/contrib/libs/libwebp/src/dec/buffer_dec.c +++ b/contrib/libs/libwebp/src/dec/buffer_dec.c @@ -11,11 +11,16 @@ // // Author: Skal ([email protected]) +#include <assert.h> #include <stdlib.h> +#include <string.h> #include "src/dec/vp8i_dec.h" #include "src/dec/webpi_dec.h" +#include "src/utils/rescaler_utils.h" #include "src/utils/utils.h" +#include "src/webp/decode.h" +#include "src/webp/types.h" //------------------------------------------------------------------------------ // WebPDecBuffer @@ -26,10 +31,9 @@ static const uint8_t kModeBpp[MODE_LAST] = { 4, 4, 4, 2, // pre-multiplied modes 1, 1 }; -// Check that webp_csp_mode is within the bounds of WEBP_CSP_MODE. // Convert to an integer to handle both the unsigned/signed enum cases // without the need for casting to remove type limit warnings. -static int IsValidColorspace(int webp_csp_mode) { +int IsValidColorspace(int webp_csp_mode) { return (webp_csp_mode >= MODE_RGB && webp_csp_mode < MODE_LAST); } |