diff options
author | Deb Mukherjee <debargha@google.com> | 2015-01-06 10:37:08 -0800 |
---|---|---|
committer | Deb Mukherjee <debargha@google.com> | 2015-01-06 16:40:45 -0800 |
commit | e7570493b8e99756321e44608913cff60eb37d41 (patch) | |
tree | fc019e59aba59cce1a896dc2a7234458cb0b2dff /vp9/encoder/vp9_bitstream.c | |
parent | 0c2ee67ad60fd53502edacb584f8973e2af6a5f7 (diff) | |
download | libvpx-e7570493b8e99756321e44608913cff60eb37d41.tar libvpx-e7570493b8e99756321e44608913cff60eb37d41.tar.gz libvpx-e7570493b8e99756321e44608913cff60eb37d41.tar.bz2 libvpx-e7570493b8e99756321e44608913cff60eb37d41.zip |
Moves inter mode count updates to update_stats
This makes the inter_mode counts update consistent with other symbols.
Also, forward updates should work corerctly now.
Change-Id: Id98be26fd08875162e644bb8f1de6f0918f85396
Diffstat (limited to 'vp9/encoder/vp9_bitstream.c')
-rw-r--r-- | vp9/encoder/vp9_bitstream.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c index 752429c8f..19bcfd2b6 100644 --- a/vp9/encoder/vp9_bitstream.c +++ b/vp9/encoder/vp9_bitstream.c @@ -297,7 +297,6 @@ static void pack_inter_mode_mvs(VP9_COMP *cpi, const MODE_INFO *mi, if (!vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP)) { if (bsize >= BLOCK_8X8) { write_inter_mode(w, mode, inter_probs); - ++cpi->td.counts->inter_mode[mode_ctx][INTER_OFFSET(mode)]; } } @@ -320,7 +319,6 @@ static void pack_inter_mode_mvs(VP9_COMP *cpi, const MODE_INFO *mi, const int j = idy * 2 + idx; const PREDICTION_MODE b_mode = mi->bmi[j].as_mode; write_inter_mode(w, b_mode, inter_probs); - ++cpi->td.counts->inter_mode[mode_ctx][INTER_OFFSET(b_mode)]; if (b_mode == NEWMV) { for (ref = 0; ref < 1 + is_compound; ++ref) vp9_encode_mv(cpi, w, &mi->bmi[j].as_mv[ref].as_mv, @@ -1172,8 +1170,6 @@ static size_t write_compressed_header(VP9_COMP *cpi, uint8_t *data) { prob_diff_update(vp9_inter_mode_tree, cm->fc->inter_mode_probs[i], counts->inter_mode[i], INTER_MODES, &header_bc); - vp9_zero(counts->inter_mode); - if (cm->interp_filter == SWITCHABLE) update_switchable_interp_probs(cm, &header_bc, counts); |