mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 02:15:42 +01:00 
			
		
		
		
	small optimization in segment-smoothing loop
probably not much of a speed difference Change-Id: I08c41d82c3c2eb5ff9ec9ca9d81af2bb09b362de
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user