History

Merge "vp9: Compute source sad for every superblock when partition copy is on."

Jerome Jiang committed 9 years ago

Commit b87ebd72 parents 2d12a52 afc8c482 files · +7 −5Browse files

Unified · Split

2 files
  1. vp9/encoder/vp9_encoder.c +1 −1
  2. vp9/encoder/vp9_ratectrl.c +6 −4
vp9/encoder/vp9_encoder.c+1−1
@@ -3133,7 +3133,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi, size_t *size, · 3132 unmodified lines
31333133 if (cpi->oxcf.pass == 0 && cpi->oxcf.mode == REALTIME &&
31343134 cpi->oxcf.speed >= 5 && cpi->resize_state == 0 &&
31353135 (cpi->oxcf.content == VP9E_CONTENT_SCREEN ||
3136− cpi->oxcf.rc_mode == VPX_VBR) &&
3136+ cpi->oxcf.rc_mode == VPX_VBR || cpi->sf.copy_partition_flag) &&
31373137 cm->show_frame)
31383138 vp9_avg_source_sad(cpi);
31393139
vp9/encoder/vp9_ratectrl.c+6−4
@@ -2251,10 +2251,12 @@ void vp9_avg_source_sad(VP9_COMP *cpi) { · 2250 unmodified lines
22512251 for (sbi_row = 0; sbi_row < sb_rows; ++sbi_row) {
22522252 for (sbi_col = 0; sbi_col < sb_cols; ++sbi_col) {
22532253 // Checker-board pattern, ignore boundary.
2254− if ((sbi_row > 0 && sbi_col > 0) &&
2255− (sbi_row < sb_rows - 1 && sbi_col < sb_cols - 1) &&
2256− ((sbi_row % 2 == 0 && sbi_col % 2 == 0) ||
2257− (sbi_row % 2 != 0 && sbi_col % 2 != 0))) {
2254+ // If the partition copy is on, compute for every superblock.
2255+ if (cpi->sf.copy_partition_flag ||
2256+ ((sbi_row > 0 && sbi_col > 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)))) {
22582260 num_samples++;
22592261 avg_sad += cpi->fn_ptr[bsize].sdf(src_y, src_ystride, last_src_y,
22602262 last_src_ystride);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t