shithub: libvpx

Download patch

ref: d4a47a6cc0d869bea3071c15bc61da6836026d0b
parent: 940db8fc4e3c9cca983acf2d7c920e8dbc34b267
parent: 741a23cd97f7f9c2f1f7ca7d80402fcdfd2c8914
author: Yaowu Xu <[email protected]>
date: Thu Aug 14 05:06:38 EDT 2014

Merge "Replace current_video_frame with better alternatives"

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -2480,7 +2480,7 @@
           if (gf_grp->update_type[gf_grp->index - 1] == OVERLAY_UPDATE)
             last_was_mid_sequence_overlay = 1;
         }
-        if ((cm->current_video_frame
+        if ((cpi->rc.frames_since_key
             % sf->last_partitioning_redo_frequency) == 0
             || last_was_mid_sequence_overlay
             || cm->prev_mi == 0
@@ -2583,7 +2583,7 @@
 static TX_MODE select_tx_mode(const VP9_COMP *cpi) {
   if (cpi->mb.e_mbd.lossless)
     return ONLY_4X4;
-  if (cpi->common.current_video_frame == 0)
+  if (cpi->common.frame_type == KEY_FRAME)
     return TX_MODE_SELECT;
   if (cpi->sf.tx_size_search_method == USE_LARGESTALL)
     return ALLOW_32X32;