diff options
Diffstat (limited to 'chromium/third_party/libwebp/dec/quant.c')
-rw-r--r-- | chromium/third_party/libwebp/dec/quant.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/chromium/third_party/libwebp/dec/quant.c b/chromium/third_party/libwebp/dec/quant.c index a4cc693db76..5b648f942c5 100644 --- a/chromium/third_party/libwebp/dec/quant.c +++ b/chromium/third_party/libwebp/dec/quant.c @@ -13,10 +13,6 @@ #include "./vp8i.h" -#if defined(__cplusplus) || defined(c_plusplus) -extern "C" { -#endif - static WEBP_INLINE int clip(int v, int M) { return v < 0 ? 0 : v > M ? M : v; } @@ -104,12 +100,11 @@ void VP8ParseQuant(VP8Decoder* const dec) { m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)]; + + m->uv_quant_ = q + dquv_ac; // for dithering strength evaluation } } } //------------------------------------------------------------------------------ -#if defined(__cplusplus) || defined(c_plusplus) -} // extern "C" -#endif |