Commit 16d26969 authored by James Zern's avatar James Zern Committed by Gerrit Code Review
Browse files

sad_test: fix vp8-only build

ROUND_POWER_OF_TWO() is defined in vp9 headers currently, avoid it in
non-high-bitdepth code

Change-Id: Ic28b8f95ef7964800475ee8b35be5f9cea9afab6
parent 21db24ef
......@@ -234,7 +234,7 @@ class SADTestBase : public ::testing::Test {
#else
const int tmp = second_pred[h * width_ + w] +
reference[h * reference_stride_ + w];
const uint8_t comp_pred = ROUND_POWER_OF_TWO(tmp, 1);
const uint8_t comp_pred = (tmp + 1) >> 1;
sad += abs(source[h * source_stride_ + w] - comp_pred);
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment