ref: eb6b443bd266d3c1f7931830de92fd11b86e27cd
parent: a71c5c0ee9d665290bb22f7c96220f93aad9bc66
parent: c827c59eafac8f03933c33a0dfa8deceed2a8255
author: Aℓex Converse <[email protected]>
date: Thu Jul 30 19:04:28 EDT 2015
Merge "Convert simple_model_rd_from_var from a speed check to a speed feature."
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -234,7 +234,7 @@
total_sse += sum_sse;
// Fast approximate the modelling function.
- if (cpi->oxcf.speed > 4) {
+ if (cpi->sf.simple_model_rd_from_var) {
int64_t rate;
const int64_t square_error = sum_sse;
int quantizer = (pd->dequant[1] >> 3);
--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -193,6 +193,7 @@
sf->use_fast_coef_costing = 1;
sf->motion_field_mode_search = !boosted;
sf->partition_search_breakout_rate_thr = 300;
+ sf->simple_model_rd_from_var = 1;
}
if (speed >= 5) {
@@ -335,6 +336,7 @@
sf->inter_mode_mask[BLOCK_64X64] = INTER_NEAREST;
sf->max_intra_bsize = BLOCK_32X32;
sf->allow_skip_recode = 1;
+ sf->simple_model_rd_from_var = 1;
}
if (speed >= 5) {
@@ -507,6 +509,7 @@
sf->tx_size_search_breakout = 0;
sf->partition_search_breakout_dist_thr = 0;
sf->partition_search_breakout_rate_thr = 0;
+ sf->simple_model_rd_from_var = 0;
if (oxcf->mode == REALTIME)
set_rt_speed_feature(cpi, sf, oxcf->speed, oxcf->content);
--- a/vp9/encoder/vp9_speed_features.h
+++ b/vp9/encoder/vp9_speed_features.h
@@ -415,6 +415,9 @@
// Allow skipping partition search for still image frame
int allow_partition_search_skip;
+
+ // Fast approximation of vp9_model_rd_from_var_lapndz
+ int simple_model_rd_from_var;
} SPEED_FEATURES;
struct VP9_COMP;