This commit allows the non-RD mode decision process to return the
rate and distortion costs associated with the selected mode.
Change-Id: Ibe0f67d323f65839fd9cb0a726c1219bf7b55da9
if (this_rd < best_rd) {
best_rd = this_rd;
+ *returnrate = rate;
+ *returndistortion = dist;
best_mode = this_mode;
best_ref_frame = ref_frame;
}
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;