ref: 01e29025210bc4b04a2eb3c44a757b37c852a90d
parent: aa0eb67bf7c009b515ec5130cca71bf8f4a5340b
author: Alex Converse <aconverse@google.com>
date: Mon Sep 19 06:04:47 EDT 2016
Zero the whole rd_counts struct rather than the each member Change-Id: I495aa9cec2b2b8f1ae69bdab8b3feeca76358472
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3990,17 +3990,12 @@
MACROBLOCK *const x = &td->mb;
VP9_COMMON *const cm = &cpi->common;
MACROBLOCKD *const xd = &x->e_mbd;
- RD_COUNTS *const rdc = &cpi->td.rd_counts;
xd->mi = cm->mi_grid_visible;
xd->mi[0] = cm->mi;
vp9_zero(*td->counts);
- vp9_zero(rdc->coef_counts);
- vp9_zero(rdc->comp_pred_diff);
- vp9_zero(rdc->filter_diff);
- rdc->m_search_count = 0; // Count of motion search hits.
- rdc->ex_search_count = 0; // Exhaustive mesh search hits.
+ vp9_zero(cpi->td.rd_counts);
xd->lossless = cm->base_qindex == 0 && cm->y_dc_delta_q == 0 &&
cm->uv_dc_delta_q == 0 && cm->uv_ac_delta_q == 0;