ref: 99cd4c7679fef347bb491afae6036d04cd1d4984
parent: 97ffad507a09ec06ecfe3a3106c5a8a0beb2fba3
parent: 90a8dad162ab678e3f669c11ec7624b8fd00e94b
author: Jingning Han <[email protected]>
date: Wed Mar 5 11:01:06 EST 2014
Merge "Fix set_mode_info settings"
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -2296,19 +2296,13 @@
static void set_mode_info(MB_MODE_INFO *mbmi, BLOCK_SIZE bsize,
MB_PREDICTION_MODE mode) {
- mbmi->interp_filter = EIGHTTAP;
mbmi->mode = mode;
+ mbmi->uv_mode = mode;
mbmi->mv[0].as_int = 0;
mbmi->mv[1].as_int = 0;
- if (mode < NEARESTMV) {
- mbmi->ref_frame[0] = INTRA_FRAME;
- } else {
- mbmi->ref_frame[0] = LAST_FRAME;
- }
-
- mbmi->ref_frame[1] = INTRA_FRAME;
+ mbmi->ref_frame[0] = INTRA_FRAME;
+ mbmi->ref_frame[1] = NONE;
mbmi->tx_size = max_txsize_lookup[bsize];
- mbmi->uv_mode = mode;
mbmi->skip = 0;
mbmi->sb_type = bsize;
mbmi->segment_id = 0;