]> granicus.if.org Git - libvpx/commitdiff
Using num_4x4_blocks_* instead of b_{width, height}_log2.
authorDmitry Kovalev <dkovalev@google.com>
Thu, 21 Nov 2013 23:53:06 +0000 (15:53 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Thu, 21 Nov 2013 23:53:06 +0000 (15:53 -0800)
Change-Id: I9ea3946c17b19f511565cd771037abe7db8b3ddb

test/vp9_subtract_test.cc

index 332a83992b3b46b8907b8e33729c30f8b8d227f2..e4c4cfeffd279d1c09424691f84d8c219e3b8601 100644 (file)
@@ -41,8 +41,8 @@ TEST_P(VP9SubtractBlockTest, SimpleSubtract) {
   // 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 *>(