diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-02-09 03:00:20 +0100 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-02-09 03:00:20 +0100 |
commit | 2decf5c6dd3df823b385dce62b067fb5b13d399d (patch) | |
tree | 184d92f32ba8836021b947e6db8409795fc2016b /src/3rdparty/libwebp/src/enc/quant_enc.c | |
parent | 5904479f50ccafc9556475b4e039d707eadc58b7 (diff) | |
parent | 0e8422bedc8c84ff7c08c6b3163329e82c2007dd (diff) |
Merge remote-tracking branch 'origin/5.12' into 5.13v5.13.0-beta1
Change-Id: If83b53844d5110c40d94a2e7a6dbfa1f09604f46
Diffstat (limited to 'src/3rdparty/libwebp/src/enc/quant_enc.c')
-rw-r--r-- | src/3rdparty/libwebp/src/enc/quant_enc.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/3rdparty/libwebp/src/enc/quant_enc.c b/src/3rdparty/libwebp/src/enc/quant_enc.c index 35bfaf2..03c682e 100644 --- a/src/3rdparty/libwebp/src/enc/quant_enc.c +++ b/src/3rdparty/libwebp/src/enc/quant_enc.c @@ -15,6 +15,7 @@ #include <math.h> #include <stdlib.h> // for abs() +#include "src/dsp/quant.h" #include "src/enc/vp8i_enc.h" #include "src/enc/cost_enc.h" @@ -977,19 +978,6 @@ static void SwapOut(VP8EncIterator* const it) { SwapPtr(&it->yuv_out_, &it->yuv_out2_); } -static score_t IsFlat(const int16_t* levels, int num_blocks, score_t thresh) { - score_t score = 0; - while (num_blocks-- > 0) { // TODO(skal): refine positional scoring? - int i; - for (i = 1; i < 16; ++i) { // omit DC, we're only interested in AC - score += (levels[i] != 0); - if (score > thresh) return 0; - } - levels += 16; - } - return 1; -} - static void PickBestIntra16(VP8EncIterator* const it, VP8ModeScore* rd) { const int kNumBlocks = 16; VP8SegmentInfo* const dqm = &it->enc_->dqm_[it->mb_->segment_]; |