summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_speed_features.h
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2017-03-08 12:24:15 -0800
committerYunqing Wang <yunqingwang@google.com>2017-03-08 12:56:41 -0800
commit099e9bf1ff823ca3720c7ba24791a1482c1e7d16 (patch)
treed8ea82e85ffd8216a7e65b962225cd78d278616b /vp9/encoder/vp9_speed_features.h
parent2fa710aa6db08aabd00f139274780e9300e815f1 (diff)
downloadlibvpx-099e9bf1ff823ca3720c7ba24791a1482c1e7d16.tar
libvpx-099e9bf1ff823ca3720c7ba24791a1482c1e7d16.tar.gz
libvpx-099e9bf1ff823ca3720c7ba24791a1482c1e7d16.tar.bz2
libvpx-099e9bf1ff823ca3720c7ba24791a1482c1e7d16.zip
Make the partition search early termination feature to be frame size dependent
The 2 thresholds(i.e. partition_search_breakout_dist_thr and partition_search_breakout_rate_thr) are used as the partition search early termination speed feature. This refactoring patch made this feature to be frame size dependent consistently throughout the code. Change-Id: Idaa0bd8400badaa0f8e2091e3f41ed2544e71be9
Diffstat (limited to 'vp9/encoder/vp9_speed_features.h')
-rw-r--r--vp9/encoder/vp9_speed_features.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_speed_features.h b/vp9/encoder/vp9_speed_features.h
index a7cc77872..b04cd872c 100644
--- a/vp9/encoder/vp9_speed_features.h
+++ b/vp9/encoder/vp9_speed_features.h
@@ -193,6 +193,11 @@ typedef struct MV_SPEED_FEATURES {
int fullpel_search_step_param;
} MV_SPEED_FEATURES;
+typedef struct PARTITION_SEARCH_BREAKOUT_THR {
+ int64_t dist;
+ int rate;
+} PARTITION_SEARCH_BREAKOUT_THR;
+
#define MAX_MESH_STEP 4
typedef struct MESH_PATTERN {
@@ -442,8 +447,7 @@ typedef struct SPEED_FEATURES {
INTERP_FILTER_MASK interp_filter_search_mask;
// Partition search early breakout thresholds.
- int64_t partition_search_breakout_dist_thr;
- int partition_search_breakout_rate_thr;
+ PARTITION_SEARCH_BREAKOUT_THR partition_search_breakout_thr;
// Allow skipping partition search for still image frame
int allow_partition_search_skip;