ref: 30d29529c984eabc7932bedc5629dda28a756b41
parent: 5de95cb09ff683dd14bc1f170ac0e9b89ab830dd
parent: 545bd0ca0e0c92383c159dfbfda300d28fb4ca05
author: Hui Su <huisu@google.com>
date: Wed Aug 29 11:39:31 EDT 2018
Merge "Skip unnecessary motion search"
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3144,7 +3144,8 @@
for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) {
x->pred_mv_sad[ref_frame] = INT_MAX;
- if (cpi->ref_frame_flags & flag_list[ref_frame]) {
+ if ((cpi->ref_frame_flags & flag_list[ref_frame]) &&
+ !(is_rect_partition && (ctx->skip_ref_frame_mask & (1 << ref_frame)))) {
assert(get_ref_frame_buffer(cpi, ref_frame) != NULL);
setup_buffer_inter(cpi, x, ref_frame, bsize, mi_row, mi_col,
frame_mv[NEARESTMV], frame_mv[NEARMV], yv12_mb);