don't copy partitions for key frames or altrefs
authorJim Bankoski <jimbankoski@google.com>
Wed, 19 Jun 2013 18:05:34 +0000 (11:05 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 20 Jun 2013 16:34:32 +0000 (09:34 -0700)
force us to go through slow partitioning for keyframes, altref and
overlays.

Change-Id: I1a286361bf74083e71973575a7296be46eb98742

vp9/encoder/vp9_encodeframe.c

index 2084a64..604ab54 100644 (file)
@@ -1405,8 +1405,9 @@ static void encode_sb_row(VP9_COMP *cpi, int mi_row,
       MODE_INFO *m = cm->mi + idx_str;
       MODE_INFO *p = cm->prev_mi + idx_str;
 
-      if ((cpi->common.current_video_frame & 1) == 0 || cm->prev_mi == 0 ||
-          cpi->is_src_frame_alt_ref) {
+      if ((cpi->common.current_video_frame & 1) == 0 || cm->prev_mi == 0
+          || cpi->common.show_frame == 0 || cpi->common.frame_type == KEY_FRAME
+          || cpi->is_src_frame_alt_ref) {
         rd_pick_partition(cpi, tp, mi_row, mi_col, BLOCK_SIZE_SB64X64,
                           &dummy_rate, &dummy_dist);
       } else {