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:
Johann 2018-11-29 14:34:17 -08:00
parent 6ed15ea1cd
commit 381b7b54a0

View File

@ -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