Commit 4005b2d8 authored by Yunqing Wang's avatar Yunqing Wang Committed by Gerrit Code Review
Browse files

Merge "Allocate aligned source in variance test"

parents f5827aee 5c93e62e
...@@ -90,14 +90,14 @@ class VarianceTest ...@@ -90,14 +90,14 @@ class VarianceTest
rnd(ACMRandom::DeterministicSeed()); rnd(ACMRandom::DeterministicSeed());
block_size_ = width_ * height_; block_size_ = width_ * height_;
src_ = new uint8_t[block_size_]; src_ = reinterpret_cast<uint8_t *>(vpx_memalign(16, block_size_));
ref_ = new uint8_t[block_size_]; ref_ = new uint8_t[block_size_];
ASSERT_TRUE(src_ != NULL); ASSERT_TRUE(src_ != NULL);
ASSERT_TRUE(ref_ != NULL); ASSERT_TRUE(ref_ != NULL);
} }
virtual void TearDown() { virtual void TearDown() {
delete[] src_; vpx_free(src_);
delete[] ref_; delete[] ref_;
libvpx_test::ClearSystemState(); libvpx_test::ClearSystemState();
} }
......
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