mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
small optimization in segment-smoothing loop
probably not much of a speed difference Change-Id: I08c41d82c3c2eb5ff9ec9ca9d81af2bb09b362de
This commit is contained in:
parent
80911aef38
commit
f7146bc1e6
@ -55,6 +55,7 @@ static void SmoothSegmentMap(VP8Encoder* const enc) {
|
||||
for (n = 0; n < NUM_MB_SEGMENTS; ++n) {
|
||||
if (cnt[n] >= majority_cnt_3_x_3_grid) {
|
||||
majority_seg = n;
|
||||
break;
|
||||
}
|
||||
}
|
||||
tmp[x + y * w] = majority_seg;
|
||||
|
Loading…
Reference in New Issue
Block a user