ref: 5925ba08a33cafceb0a2d21ca6d30923dc58f372
parent: ad3333e2cd9ecfcf13a96ef4a176df50bbbba2bf
parent: 27e6b5b6bd26ee0e9bd4c7f6a56dc2fa885be6f8
author: Dmitry Kovalev <[email protected]>
date: Thu Nov 21 11:48:34 EST 2013
Merge "Using num_4x4_blocks_* instead of b_{width, height}_log2."
--- a/test/vp9_subtract_test.cc
+++ b/test/vp9_subtract_test.cc
@@ -41,8 +41,8 @@
// FIXME(rbultje) split in its own file
for (BLOCK_SIZE bsize = BLOCK_4X4; bsize < BLOCK_SIZES;
bsize = static_cast<BLOCK_SIZE>(static_cast<int>(bsize) + 1)) {
- const int block_width = 4 << b_width_log2(bsize);
- const int block_height = 4 << b_height_log2(bsize);
+ const int block_width = 4 * num_4x4_blocks_wide_lookup[bsize];
+ const int block_height = 4 * num_4x4_blocks_high_lookup[bsize];
int16_t *diff = reinterpret_cast<int16_t *>(
vpx_memalign(16, sizeof(*diff) * block_width * block_height * 2));
uint8_t *pred = reinterpret_cast<uint8_t *>(