diff options
author | Jingning Han <jingning@google.com> | 2014-07-25 16:43:27 -0700 |
---|---|---|
committer | Jingning Han <jingning@google.com> | 2014-07-29 10:55:56 -0700 |
commit | c36f78b054db7633b2e3963d414fd205d7fea3c5 (patch) | |
tree | ee528b1b40eda8ec20c500c75b81a093db907756 /vp9/encoder/vp9_rdopt.c | |
parent | 4ba92dc5ab706c02ddae282fdeb4d3d098595eaf (diff) | |
download | libvpx-c36f78b054db7633b2e3963d414fd205d7fea3c5.tar libvpx-c36f78b054db7633b2e3963d414fd205d7fea3c5.tar.gz libvpx-c36f78b054db7633b2e3963d414fd205d7fea3c5.tar.bz2 libvpx-c36f78b054db7633b2e3963d414fd205d7fea3c5.zip |
Use frame index directly in get_chessboard_index
The get_chessboard_index() used to call the entire VP9_COMMON
struct pointer to retrieve the chessboard pattern index. This cl
makes it call the frame index directly.
Change-Id: I3cad9d209ea2e77a358085a04fe1ff0ddec5ba03
Diffstat (limited to 'vp9/encoder/vp9_rdopt.c')
-rw-r--r-- | vp9/encoder/vp9_rdopt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index f65ac7b2b..c6580eed7 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -2025,7 +2025,8 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, int bsl = mi_width_log2_lookup[bsize]; int pred_filter_search = cpi->sf.cb_pred_filter_search ? - (((mi_row + mi_col) >> bsl)) & 0x01 : 0; + (((mi_row + mi_col) >> bsl) + + get_chessboard_index(cm->current_video_frame)) & 0x1 : 0; if (pred_filter_search) { INTERP_FILTER af = SWITCHABLE, lf = SWITCHABLE; |