diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-16 21:21:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 21:21:15 +0100 |
commit | 5d9b0cc31df5b84a90fcf2bd322344c13c065014 (patch) | |
tree | e9b85cdc26a2a140ac6675d90dced255eb72c3c6 /thirdparty/libwebp/src/dsp/lossless.c | |
parent | 6b64c60b0eade65ca1147a0af39baefec732d652 (diff) | |
parent | 65f2ab1b61d0949bae7f06553b081e1aae276148 (diff) |
Merge pull request #35214 from volzhs/libwebp-1.1.0
Update libwebp to 1.1.0
Diffstat (limited to 'thirdparty/libwebp/src/dsp/lossless.c')
-rw-r--r-- | thirdparty/libwebp/src/dsp/lossless.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/thirdparty/libwebp/src/dsp/lossless.c b/thirdparty/libwebp/src/dsp/lossless.c index d05af84e7b..aad5f43ec9 100644 --- a/thirdparty/libwebp/src/dsp/lossless.c +++ b/thirdparty/libwebp/src/dsp/lossless.c @@ -81,7 +81,7 @@ static WEBP_INLINE uint32_t ClampedAddSubtractHalf(uint32_t c0, uint32_t c1, // gcc <= 4.9 on ARM generates incorrect code in Select() when Sub3() is // inlined. -#if defined(__arm__) && LOCAL_GCC_VERSION <= 0x409 +#if defined(__arm__) && defined(__GNUC__) && LOCAL_GCC_VERSION <= 0x409 # define LOCAL_INLINE __attribute__ ((noinline)) #else # define LOCAL_INLINE WEBP_INLINE @@ -167,15 +167,20 @@ static uint32_t Predictor13_C(uint32_t left, const uint32_t* const top) { return pred; } -GENERATE_PREDICTOR_ADD(Predictor0_C, PredictorAdd0_C) +static void PredictorAdd0_C(const uint32_t* in, const uint32_t* upper, + int num_pixels, uint32_t* out) { + int x; + (void)upper; + for (x = 0; x < num_pixels; ++x) out[x] = VP8LAddPixels(in[x], ARGB_BLACK); +} static void PredictorAdd1_C(const uint32_t* in, const uint32_t* upper, int num_pixels, uint32_t* out) { int i; uint32_t left = out[-1]; + (void)upper; for (i = 0; i < num_pixels; ++i) { out[i] = left = VP8LAddPixels(in[i], left); } - (void)upper; } GENERATE_PREDICTOR_ADD(Predictor2_C, PredictorAdd2_C) GENERATE_PREDICTOR_ADD(Predictor3_C, PredictorAdd3_C) |