IsFlat: inline when possible

Change-Id: Ia7471d29f73233cdc58cd11ae8bdf7ce31b9ce9f
This commit is contained in:
Johann 2018-11-29 14:37:29 -08:00
parent 381b7b54a0
commit 5b081219c9

View File

@ -977,7 +977,8 @@ static void SwapOut(VP8EncIterator* const it) {
SwapPtr(&it->yuv_out_, &it->yuv_out2_); SwapPtr(&it->yuv_out_, &it->yuv_out2_);
} }
static int IsFlat(const int16_t* levels, int num_blocks, int thresh) { static WEBP_INLINE int IsFlat(const int16_t* levels, int num_blocks,
int thresh) {
int score = 0; int score = 0;
while (num_blocks-- > 0) { // TODO(skal): refine positional scoring? while (num_blocks-- > 0) { // TODO(skal): refine positional scoring?
int i; int i;