summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2014-08-13 17:19:34 -0700
committerYaowu Xu <yaowu@google.com>2014-08-13 17:19:34 -0700
commit741a23cd97f7f9c2f1f7ca7d80402fcdfd2c8914 (patch)
tree4b7f627cf52bb01a0c73c3334ffbc6ec4e96af18 /vp9
parentb6a41802c410969113c17856238afd88f462c507 (diff)
downloadlibvpx-741a23cd97f7f9c2f1f7ca7d80402fcdfd2c8914.tar
libvpx-741a23cd97f7f9c2f1f7ca7d80402fcdfd2c8914.tar.gz
libvpx-741a23cd97f7f9c2f1f7ca7d80402fcdfd2c8914.tar.bz2
libvpx-741a23cd97f7f9c2f1f7ca7d80402fcdfd2c8914.zip
Replace current_video_frame with better alternatives
In the encoder, current_video_frame is used in a couple of places to decide encoding strategy, this commit replaces with more appropriate variables. Change-Id: I3d3d8d8e2ea02c489e4639b9d4c446a63e357d29
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_encodeframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index c6bc2c205..4e7b8e4a2 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -2480,7 +2480,7 @@ static void encode_rd_sb_row(VP9_COMP *cpi, const TileInfo *const tile,
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 MV_REFERENCE_FRAME get_frame_type(const VP9_COMP *cpi) {
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;