X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Flibvpx%2Fsource%2Flibvpx%2Ftest%2Fvp9_subtract_test.cc;h=d7df2867d0733d3a537bf00585882bf99cd02e49;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=332a83992b3b46b8907b8e33729c30f8b8d227f2;hpb=172ee7c03df346ff158858709f7f6494e695e0e4;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/libvpx/source/libvpx/test/vp9_subtract_test.cc b/src/third_party/libvpx/source/libvpx/test/vp9_subtract_test.cc index 332a839..d7df286 100644 --- a/src/third_party/libvpx/source/libvpx/test/vp9_subtract_test.cc +++ b/src/third_party/libvpx/source/libvpx/test/vp9_subtract_test.cc @@ -12,12 +12,10 @@ #include "test/acm_random.h" #include "test/clear_system_state.h" #include "test/register_state_check.h" -extern "C" { #include "./vpx_config.h" #include "./vp9_rtcd.h" #include "vp9/common/vp9_blockd.h" #include "vpx_mem/vpx_mem.h" -} typedef void (*subtract_fn_t)(int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, @@ -41,8 +39,8 @@ TEST_P(VP9SubtractBlockTest, SimpleSubtract) { // FIXME(rbultje) split in its own file for (BLOCK_SIZE bsize = BLOCK_4X4; bsize < BLOCK_SIZES; bsize = static_cast(static_cast(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( vpx_memalign(16, sizeof(*diff) * block_width * block_height * 2)); uint8_t *pred = reinterpret_cast(