diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-12-19 13:43:45 -0800 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2013-12-19 13:43:45 -0800 |
commit | 431aaefbec27f40204b20f72731f8dd28077292f (patch) | |
tree | 2a3cb5fa65728650d0dceb50776d9558445d91ad | |
parent | c67ee5ea24e6c4549c9929ef0e9cb3838a851fcf (diff) | |
download | libvpx-431aaefbec27f40204b20f72731f8dd28077292f.tar libvpx-431aaefbec27f40204b20f72731f8dd28077292f.tar.gz libvpx-431aaefbec27f40204b20f72731f8dd28077292f.tar.bz2 libvpx-431aaefbec27f40204b20f72731f8dd28077292f.zip |
Replacing 1 << mi_{width, height}_log2() with lookup tables.
Change-Id: Iba91ff1e797a83517e2cd7c3ab86cba39f39415b
-rw-r--r-- | vp9/encoder/vp9_encodeframe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index b18408780..28d4db74f 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -368,8 +368,8 @@ static void select_in_frame_q_segment(VP9_COMP *cpi, int target_rate = cpi->rc.sb64_target_rate << 8; // convert to bits << 8 const int mi_offset = mi_row * cm->mi_cols + mi_col; - const int bw = 1 << mi_width_log2(BLOCK_64X64); - const int bh = 1 << mi_height_log2(BLOCK_64X64); + const int bw = num_8x8_blocks_wide_lookup[BLOCK_64X64]; + const int bh = num_8x8_blocks_high_lookup[BLOCK_64X64]; const int xmis = MIN(cm->mi_cols - mi_col, bw); const int ymis = MIN(cm->mi_rows - mi_row, bh); int complexity_metric = 64; |