diff options
author | Ronald S. Bultje <rbultje@google.com> | 2012-10-15 13:54:05 -0700 |
---|---|---|
committer | Ronald S. Bultje <rbultje@google.com> | 2012-10-15 13:54:05 -0700 |
commit | 23a64c890e99e7c70365f12694c76e8605a11f85 (patch) | |
tree | 1394197ff1a2fc99ffb2e28870b6af47d83e4fed /vp8/encoder/rdopt.c | |
parent | 66180f228c9b369f920013f93c64b9bd54d88e69 (diff) | |
download | libvpx-23a64c890e99e7c70365f12694c76e8605a11f85.tar libvpx-23a64c890e99e7c70365f12694c76e8605a11f85.tar.gz libvpx-23a64c890e99e7c70365f12694c76e8605a11f85.tar.bz2 libvpx-23a64c890e99e7c70365f12694c76e8605a11f85.zip |
Remove test from B_MODE_INFO.
It is essentially a duplicate of mode for RD-only purposes. Removing it
saves us 4 bytes per B_MODE_INFO, or ~0.5MB for a 1080p video encode.
Change-Id: I0a54db5f51658b3946d7efb1ca6e8cfbda0cdf88
Diffstat (limited to 'vp8/encoder/rdopt.c')
-rw-r--r-- | vp8/encoder/rdopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c index fe6b7de6d..bb2160701 100644 --- a/vp8/encoder/rdopt.c +++ b/vp8/encoder/rdopt.c @@ -1182,6 +1182,7 @@ static int64_t rd_pick_intra4x4block(VP8_COMP *cpi, MACROBLOCK *x, BLOCK *be, // Do we need to do this for mode2 also? if (mode == B_LD_PRED || mode == B_VL_PRED) continue; + b->bmi.as_mode.first = mode; rate = bmode_costs[mode]; #if CONFIG_COMP_INTRA_PRED @@ -1200,7 +1201,6 @@ static int64_t rd_pick_intra4x4block(VP8_COMP *cpi, MACROBLOCK *x, BLOCK *be, #if CONFIG_HYBRIDTRANSFORM if (active_ht) { - b->bmi.as_mode.test = mode; txfm_map(b, mode); vp8_fht_c(be->src_diff, be->coeff, 32, b->bmi.as_mode.tx_type, 4); vp8_ht_quantize_b_4x4(be, b); |