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