diff options
author | Jim Bankoski <jimbankoski@google.com> | 2016-05-07 12:47:49 -0700 |
---|---|---|
committer | Jim Bankoski <jimbankoski@google.com> | 2016-05-07 12:47:49 -0700 |
commit | 7a91d21d69573b1cefb709d7a97fb6eed8dcbae6 (patch) | |
tree | e1f39606045967302f6c56d39a3d63e61ef72a89 /test/add_noise_test.cc | |
parent | 34d5aff747b3c545de497675f372c6b599860cbd (diff) | |
download | libvpx-7a91d21d69573b1cefb709d7a97fb6eed8dcbae6.tar libvpx-7a91d21d69573b1cefb709d7a97fb6eed8dcbae6.tar.gz libvpx-7a91d21d69573b1cefb709d7a97fb6eed8dcbae6.tar.bz2 libvpx-7a91d21d69573b1cefb709d7a97fb6eed8dcbae6.zip |
libvpx: vpx_add_plane_noise make c match assembly
This change makes the c match the assembly and removes the todo's
associated with getting this to work.
Change-Id: Ie32e9ebb584a9d60399662d8bcb71b74fbd19d1e
Diffstat (limited to 'test/add_noise_test.cc')
-rw-r--r-- | test/add_noise_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/add_noise_test.cc b/test/add_noise_test.cc index 96e3afbee..d25e4f5f5 100644 --- a/test/add_noise_test.cc +++ b/test/add_noise_test.cc @@ -144,8 +144,7 @@ TEST_P(AddNoiseTest, CheckNoiseAdded) { vpx_free(s); } -// TODO(jimbankoski): Make the c work like assembly so we can enable this. -TEST_P(AddNoiseTest, DISABLED_CheckCvsAssembly) { +TEST_P(AddNoiseTest, CheckCvsAssembly) { DECLARE_ALIGNED(16, char, blackclamp[16]); DECLARE_ALIGNED(16, char, whiteclamp[16]); DECLARE_ALIGNED(16, char, bothclamp[16]); @@ -167,8 +166,10 @@ TEST_P(AddNoiseTest, DISABLED_CheckCvsAssembly) { memset(s, 99, image_size); memset(d, 99, image_size); + srand(0); ASM_REGISTER_STATE_CHECK(GetParam()(s, noise, blackclamp, whiteclamp, bothclamp, width, height, width)); + srand(0); ASM_REGISTER_STATE_CHECK(vpx_plane_add_noise_c(d, noise, blackclamp, whiteclamp, bothclamp, width, height, width)); |