diff options
author | Johann <johann.koenig@duck.com> | 2018-11-29 14:37:29 -0800 |
---|---|---|
committer | Johann <johann.koenig@duck.com> | 2018-11-29 14:37:29 -0800 |
commit | 5b081219c9d6311a383af83182d6db43cef3cbcf (patch) | |
tree | c7d3415840b88a0d58e76df3e43f9aa2c140e337 | |
parent | 381b7b54a0c52c2eb83ff2f7dca9870bc8a07268 (diff) | |
download | libwebp-5b081219c9d6311a383af83182d6db43cef3cbcf.tar.gz |
IsFlat: inline when possible
Change-Id: Ia7471d29f73233cdc58cd11ae8bdf7ce31b9ce9f
-rw-r--r-- | src/enc/quant_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/enc/quant_enc.c b/src/enc/quant_enc.c index 953873a6..a02ff405 100644 --- a/src/enc/quant_enc.c +++ b/src/enc/quant_enc.c @@ -977,7 +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, int thresh) { +static WEBP_INLINE 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; |