mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
IsFlat: use int for thresh
thresh is defined by FLATNESS_LIMIT_* which ranges from 2-10. score_t is int64 which is a touch overkill. Change-Id: I308bd440bf11643665d3642fe361495a257b6e52
This commit is contained in:
parent
6ed15ea1cd
commit
381b7b54a0
@ -977,8 +977,8 @@ static void SwapOut(VP8EncIterator* const it) {
|
||||
SwapPtr(&it->yuv_out_, &it->yuv_out2_);
|
||||
}
|
||||
|
||||
static int IsFlat(const int16_t* levels, int num_blocks, score_t thresh) {
|
||||
score_t score = 0;
|
||||
static int IsFlat(const int16_t* levels, int num_blocks, int thresh) {
|
||||
int 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
|
||||
|
Loading…
Reference in New Issue
Block a user