ref: a66b68c7b2b6cb456af47618e0af05f3a3171ee7
parent: 7c6337ba9e486c8066db83ea2d845c3e8b7697f8
parent: ca0625ff3128f32510f21bfc47e7675ff47882b3
author: Jingning Han <jingning@google.com>
date: Fri Mar 14 05:05:32 EDT 2014
Merge "Return rate and distortion cost values from non-RD mode decision"
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -327,6 +327,8 @@
if (this_rd < best_rd) {
best_rd = this_rd;
+ *returnrate = rate;
+ *returndistortion = dist;
best_mode = this_mode;
best_ref_frame = ref_frame;
}
@@ -353,6 +355,8 @@
if (this_rd + intra_mode_cost < best_rd) {
best_rd = this_rd;
+ *returnrate = rate;
+ *returndistortion = dist;
mbmi->mode = this_mode;
mbmi->ref_frame[0] = INTRA_FRAME;
mbmi->uv_mode = this_mode;
--
⑨