summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2013-08-22 08:51:04 -0400
committerScott LaVarnway <slavarnway@google.com>2013-08-22 08:51:04 -0400
commit94bfbaa84ea956e733d4eb9602d589f9d3577b49 (patch)
tree03af81a12cbbf1e4e4d34096e51eb2f109673bc1 /vp9/encoder
parentce28d0ca89832c36c56f22873732582edf9ce9a0 (diff)
downloadlibvpx-94bfbaa84ea956e733d4eb9602d589f9d3577b49.tar
libvpx-94bfbaa84ea956e733d4eb9602d589f9d3577b49.tar.gz
libvpx-94bfbaa84ea956e733d4eb9602d589f9d3577b49.tar.bz2
libvpx-94bfbaa84ea956e733d4eb9602d589f9d3577b49.zip
Initialize mb_skip_coeff before picking modes
It appears that the above/left mb_skip_coeff used during the pick modes, is left over from the previously encode frame. This patch initializes the flag to the default value of zero. Change-Id: Ida4684cc99611d6e3e82628db35ed717e28ce550
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_encodeframe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index 51bd4477d..a65b1d5c2 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -590,7 +590,11 @@ static void pick_sb_modes(VP9_COMP *cpi, int mi_row, int mi_col,
set_offsets(cpi, mi_row, mi_col, bsize);
xd->mode_info_context->mbmi.sb_type = bsize;
+ // Set to zero to make sure we do not use the previous encoded frame stats
+ xd->mode_info_context->mbmi.skip_coeff = 0;
+
x->source_variance = get_sby_perpixel_variance(cpi, x, bsize);
+
if (cpi->oxcf.tuning == VP8_TUNE_SSIM)
vp9_activity_masking(cpi, x);