| @@ -2251,10 +2251,12 @@ void vp9_avg_source_sad(VP9_COMP *cpi) { · 2250 unmodified lines |
| 2251 | for (sbi_row = 0; sbi_row < sb_rows; ++sbi_row) { | 2251 | for (sbi_row = 0; sbi_row < sb_rows; ++sbi_row) { |
| 2252 | for (sbi_col = 0; sbi_col < sb_cols; ++sbi_col) { | 2252 | for (sbi_col = 0; sbi_col < sb_cols; ++sbi_col) { |
| 2253 | // Checker-board pattern, ignore boundary. | 2253 | // Checker-board pattern, ignore boundary. |
| 2254 | if ((sbi_row > 0 && sbi_col > 0) && | 2254 | // If the partition copy is on, compute for every superblock. |
| 2255 | (sbi_row < sb_rows - 1 && sbi_col < sb_cols - 1) && | 2255 | if (cpi->sf.copy_partition_flag || |
| 2256 | ((sbi_row % 2 == 0 && sbi_col % 2 == 0) || | 2256 | ((sbi_row > 0 && sbi_col > 0) && |
| 2257 | (sbi_row % 2 != 0 && sbi_col % 2 != 0))) { | 2257 | (sbi_row < sb_rows - 1 && sbi_col < sb_cols - 1) && |
| | 2258 | ((sbi_row % 2 == 0 && sbi_col % 2 == 0) || |
| | 2259 | (sbi_row % 2 != 0 && sbi_col % 2 != 0)))) { |
| 2258 | num_samples++; | 2260 | num_samples++; |
| 2259 | avg_sad += cpi->fn_ptr[bsize].sdf(src_y, src_ystride, last_src_y, | 2261 | avg_sad += cpi->fn_ptr[bsize].sdf(src_y, src_ystride, last_src_y, |
| 2260 | last_src_ystride); | 2262 | last_src_ystride); |