Refine txfm domain dist speed feature for speeds 1,2
Introduced txfm domain distortion logic for boosted
frames in speed presets 1,2.
For speed = 1 and 2 presets, BD-rate impact is seen
as 0.03% and 0.05% (as per AWCY runs), with encode time
reduction of 4.85% and 4.72% (averaged across multiple
test cases) respectively.
STATS_CHANGED
Change-Id: Ia142f3238c905474eed38b9b0229835ced8d711c
diff --git a/av1/encoder/speed_features.c b/av1/encoder/speed_features.c
index 450331b..f52ac00 100644
--- a/av1/encoder/speed_features.c
+++ b/av1/encoder/speed_features.c
@@ -50,7 +50,7 @@
// based on block MSE
// TODO(any): Experiment the threshold logic based on variance metric
static unsigned int tx_domain_dist_thresholds[MAX_TX_DOMAIN_EVAL_SPEED + 1] = {
- UINT_MAX, 162754, 22026, 22026, 22026, 0
+ UINT_MAX, 22026, 22026, 22026, 22026, 0
};
// Threshold values to be used for disabling coeff RD-optimization
// based on block MSE
@@ -277,7 +277,7 @@
sf->prune_motion_mode_level = 2;
sf->gm_search_type = GM_REDUCED_REF_SEARCH_SKIP_L2_L3_ARF2;
sf->cb_pred_filter_search = 1;
- sf->use_transform_domain_distortion = boosted ? 0 : 1;
+ sf->use_transform_domain_distortion = boosted ? 1 : 2;
sf->perform_coeff_opt = boosted ? 0 : 1;
sf->use_inter_txb_hash = 0;
}
@@ -322,7 +322,6 @@
// See aomedia:1778.
// sf->adaptive_motion_search = 1;
sf->recode_loop = ALLOW_RECODE_KFARFGF;
- sf->use_transform_domain_distortion = boosted ? 1 : 2;
sf->use_accurate_subpel_search = USE_2_TAPS;
sf->adaptive_rd_thresh = 2;
if (cpi->oxcf.enable_smooth_interintra) {