]> granicus.if.org Git - libvpx/commitdiff
Zero the whole rd_counts struct rather than the each member
authorAlex Converse <aconverse@google.com>
Mon, 19 Sep 2016 17:04:47 +0000 (10:04 -0700)
committerAlex Converse <aconverse@google.com>
Mon, 19 Sep 2016 17:04:47 +0000 (10:04 -0700)
Change-Id: I495aa9cec2b2b8f1ae69bdab8b3feeca76358472

vp9/encoder/vp9_encodeframe.c

index 8d7c3576b2a81e754c245febc6bd0cf9feb4f262..335faca82b1c2841e74de728ba4e1824d98f9705 100644 (file)
@@ -3990,17 +3990,12 @@ static void encode_frame_internal(VP9_COMP *cpi) {
   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;