Use direct lookups Change-Id: If764137db27beff4b638bf23df843538c96bd257
diff --git a/av1/encoder/mcomp.c b/av1/encoder/mcomp.c index 43aaf79..566e96c 100644 --- a/av1/encoder/mcomp.c +++ b/av1/encoder/mcomp.c
@@ -1911,8 +1911,8 @@ return this_sad; } - const int bw = 4 << mi_size_wide_log2[bsize]; - const int bh = 4 << mi_size_high_log2[bsize]; + const int bw = block_size_wide[bsize]; + const int bh = block_size_high[bsize]; const int search_width = bw << 1; const int search_height = bh << 1; const int norm_factor = 3 + (bw >> 5);
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c index 595b79d..f70f8ce 100644 --- a/av1/encoder/rdopt.c +++ b/av1/encoder/rdopt.c
@@ -982,8 +982,8 @@ if (dct_idtx) { av1_subtract_plane(x, bsize, 0); const struct macroblock_plane *const p = &x->plane[0]; - const int bw = 4 << (mi_size_wide_log2[bsize]); - const int bh = 4 << (mi_size_high_log2[bsize]); + const int bw = block_size_wide[bsize]; + const int bh = block_size_high[bsize]; prune |= dct_vs_idtx(p->src_diff, bw, bw, bh); }