small optimization in segment-smoothing loop

probably not much of a speed difference

Change-Id: I08c41d82c3c2eb5ff9ec9ca9d81af2bb09b362de
This commit is contained in:
Pascal Massimino 2013-10-07 00:32:27 -07:00
parent 80911aef38
commit f7146bc1e6

View File

@ -55,6 +55,7 @@ static void SmoothSegmentMap(VP8Encoder* const enc) {
for (n = 0; n < NUM_MB_SEGMENTS; ++n) { for (n = 0; n < NUM_MB_SEGMENTS; ++n) {
if (cnt[n] >= majority_cnt_3_x_3_grid) { if (cnt[n] >= majority_cnt_3_x_3_grid) {
majority_seg = n; majority_seg = n;
break;
} }
} }
tmp[x + y * w] = majority_seg; tmp[x + y * w] = majority_seg;