mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
IsFlat: inline when possible
Change-Id: Ia7471d29f73233cdc58cd11ae8bdf7ce31b9ce9f
This commit is contained in:
parent
381b7b54a0
commit
5b081219c9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user