ref: 013db649faa8f5f26b908a5f320cf9500671e676
parent: 8933b964e92bbaa3e00997321eb867686db7f99c
author: Jingning Han <[email protected]>
date: Wed Oct 9 10:36:48 EDT 2013
Fix intra dist model of skip_encode feature The intra mode distortion adjustment for skip_encode feature was broken in the refactoring cc91851. This commit fixes it and tunes the distortion models used therein. Change-Id: I0d676e82f8e855536a90cf9b3e3fdefafcd886c6
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -565,9 +565,9 @@
xd->this_mi->mbmi.ref_frame[0] == INTRA_FRAME) {
// TODO(jingning): tune the model to better capture the distortion.
int64_t p = (pd->dequant[1] * pd->dequant[1] *
- (1 << ss_txfrm_size)) >> shift;
- args->dist[block] = p;
- args->sse[block] = p;
+ (1 << ss_txfrm_size)) >> (shift + 2);
+ args->dist[block] += (p >> 4);
+ args->sse[block] += p;
}
}