shithub: libvpx

Download patch

ref: 4b3e44f91d2742319556a247647fb95d52b3c24c
parent: 8e3ef6c0e13098b8fc76a27dc60d0239ff18bc71
parent: 836252bfa6338ca29bbfe3c9ccc8798ea32140d2
author: Jingning Han <[email protected]>
date: Sat Feb 22 06:54:20 EST 2014

Merge "Periodically update mode and mv costs"

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -295,13 +295,15 @@
 
   set_block_thresholds(cpi);
 
-  fill_token_costs(x->token_costs, cm->fc.coef_probs);
-
   if (!cpi->sf.use_pick_mode) {
+    fill_token_costs(x->token_costs, cm->fc.coef_probs);
+
     for (i = 0; i < PARTITION_CONTEXTS; i++)
       vp9_cost_tokens(x->partition_cost[i], get_partition_probs(cm, i),
                       vp9_partition_tree);
+  }
 
+  if (!cpi->sf.use_pick_mode || (cm->current_video_frame & 0x07) == 1) {
     fill_mode_costs(cpi);
 
     if (!frame_is_intra_only(cm)) {