ref: c725502bf32b0df223aaf179a828360433606a1c
parent: 0d204f48b5c098dac4431b599c2dfd507a1a932e
author: Jingning Han <[email protected]>
date: Fri Jul 19 11:18:05 EDT 2013
Skip buffer update in sub8x8 rd loop This commit allows the encoder to skip a few buffer update steps in rd_pick_best_mbsegmentation, when early breakout has been triggered in the rd_check_segment_txsize. It provides about 1% speed-up for bus_cif at 2000 kbps, in the settings of speed 0. Change-Id: Ica034f10a24dec572b397d8389a2b81020ebc0b9
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2129,6 +2129,8 @@
rd_check_segment_txsize(cpi, x, &bsi, seg_mvs, mi_row, mi_col);
+ if (bsi.segment_rd > best_rd)
+ return INT64_MAX;
/* set it to the best */
for (i = 0; i < 4; i++) {
x->e_mbd.mode_info_context->bmi[i].as_mv[0].as_int = bsi.mvs[i].as_int;