ref: a619f5a776dca22f563ef8739b1d557a92bf5d16
parent: 84b4d8c692538e4d85b1179f432757e2c540c545
parent: 431aaefbec27f40204b20f72731f8dd28077292f
author: Dmitry Kovalev <dkovalev@google.com>
date: Thu Dec 19 09:28:58 EST 2013
Merge "Replacing 1 << mi_{width, height}_log2() with lookup tables."
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -368,8 +368,8 @@
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;
--
⑨