if (cpi->oxcf.pass == 0 && cpi->oxcf.mode == REALTIME &&
cpi->oxcf.speed >= 5 && cpi->resize_state == 0 &&
(cpi->oxcf.content == VP9E_CONTENT_SCREEN ||
- cpi->oxcf.rc_mode == VPX_VBR || cpi->sf.copy_partition_flag) &&
+ cpi->oxcf.rc_mode == VPX_VBR || cpi->sf.use_source_sad) &&
cm->show_frame)
vp9_avg_source_sad(cpi);
for (sbi_row = 0; sbi_row < sb_rows; ++sbi_row) {
for (sbi_col = 0; sbi_col < sb_cols; ++sbi_col) {
// Checker-board pattern, ignore boundary.
- // If the partition copy is on, compute for every superblock.
- if (cpi->sf.copy_partition_flag ||
+ // If the use_source_sad is on, compute for every superblock.
+ if (cpi->sf.use_source_sad ||
((sbi_row > 0 && sbi_col > 0) &&
(sbi_row < sb_rows - 1 && sbi_col < sb_cols - 1) &&
((sbi_row % 2 == 0 && sbi_col % 2 == 0) ||
sf->exhaustive_searches_thresh = INT_MAX;
sf->allow_acl = 0;
sf->copy_partition_flag = 0;
+ sf->use_source_sad = 0;
if (speed >= 1) {
sf->allow_txfm_domain_distortion = 1;
!cpi->external_resize)
sf->copy_partition_flag = 1;
if (sf->copy_partition_flag) {
+ sf->use_source_sad = 1;
if (cpi->prev_partition == NULL) {
cpi->prev_partition = (BLOCK_SIZE *)vpx_calloc(
cm->mi_stride * cm->mi_rows, sizeof(BLOCK_SIZE));
// Global flag to enable partition copy from the previous frame.
int copy_partition_flag;
+
+ // Compute the source sad for every superblock of the frame,
+ // prior to encoding the frame, to be used to bypass some encoder decisions.
+ int use_source_sad;
} SPEED_FEATURES;
struct VP9_COMP;