Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: source/libvpx/test/vp9_quantize_test.cc

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/test/vp9_intrapred_test.cc ('k') | source/libvpx/test/vpx_scale_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/test/vp9_quantize_test.cc
diff --git a/source/libvpx/test/vp9_quantize_test.cc b/source/libvpx/test/vp9_quantize_test.cc
index 862edbe801b68e09f1d0bd3a3fb644b022c74c4d..2d910466d128ee6eb918756aa3bea75e315dc16e 100644
--- a/source/libvpx/test/vp9_quantize_test.cc
+++ b/source/libvpx/test/vp9_quantize_test.cc
@@ -80,18 +80,18 @@ class VP9Quantize32Test : public ::testing::TestWithParam<QuantizeParam> {
TEST_P(VP9QuantizeTest, OperationCheck) {
ACMRandom rnd(ACMRandom::DeterministicSeed());
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, coeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, int16_t, zbin_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, round_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_shift_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, qcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, dqcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_qcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_dqcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, int16_t, dequant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, eob_ptr, 1);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, ref_eob_ptr, 1);
+ DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[256]);
+ DECLARE_ALIGNED(16, int16_t, zbin_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, round_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_shift_ptr[2]);
+ DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_dqcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, int16_t, dequant_ptr[2]);
+ DECLARE_ALIGNED(16, uint16_t, eob_ptr[1]);
+ DECLARE_ALIGNED(16, uint16_t, ref_eob_ptr[1]);
int err_count_total = 0;
int first_failure = -1;
for (int i = 0; i < number_of_iterations; ++i) {
@@ -139,18 +139,18 @@ TEST_P(VP9QuantizeTest, OperationCheck) {
TEST_P(VP9Quantize32Test, OperationCheck) {
ACMRandom rnd(ACMRandom::DeterministicSeed());
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, coeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, int16_t, zbin_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, round_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_shift_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, qcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, dqcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_qcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_dqcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, int16_t, dequant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, eob_ptr, 1);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, ref_eob_ptr, 1);
+ DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[1024]);
+ DECLARE_ALIGNED(16, int16_t, zbin_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, round_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_shift_ptr[2]);
+ DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_dqcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, int16_t, dequant_ptr[2]);
+ DECLARE_ALIGNED(16, uint16_t, eob_ptr[1]);
+ DECLARE_ALIGNED(16, uint16_t, ref_eob_ptr[1]);
int err_count_total = 0;
int first_failure = -1;
for (int i = 0; i < number_of_iterations; ++i) {
@@ -198,18 +198,18 @@ TEST_P(VP9Quantize32Test, OperationCheck) {
TEST_P(VP9QuantizeTest, EOBCheck) {
ACMRandom rnd(ACMRandom::DeterministicSeed());
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, coeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, int16_t, zbin_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, round_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_shift_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, qcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, dqcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_qcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_dqcoeff_ptr, 256);
- DECLARE_ALIGNED_ARRAY(16, int16_t, dequant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, eob_ptr, 1);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, ref_eob_ptr, 1);
+ DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[256]);
+ DECLARE_ALIGNED(16, int16_t, zbin_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, round_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_shift_ptr[2]);
+ DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_dqcoeff_ptr[256]);
+ DECLARE_ALIGNED(16, int16_t, dequant_ptr[2]);
+ DECLARE_ALIGNED(16, uint16_t, eob_ptr[1]);
+ DECLARE_ALIGNED(16, uint16_t, ref_eob_ptr[1]);
int err_count_total = 0;
int first_failure = -1;
for (int i = 0; i < number_of_iterations; ++i) {
@@ -262,18 +262,18 @@ TEST_P(VP9QuantizeTest, EOBCheck) {
TEST_P(VP9Quantize32Test, EOBCheck) {
ACMRandom rnd(ACMRandom::DeterministicSeed());
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, coeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, int16_t, zbin_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, round_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, int16_t, quant_shift_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, qcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, dqcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_qcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, tran_low_t, ref_dqcoeff_ptr, 1024);
- DECLARE_ALIGNED_ARRAY(16, int16_t, dequant_ptr, 2);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, eob_ptr, 1);
- DECLARE_ALIGNED_ARRAY(16, uint16_t, ref_eob_ptr, 1);
+ DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[1024]);
+ DECLARE_ALIGNED(16, int16_t, zbin_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, round_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_ptr[2]);
+ DECLARE_ALIGNED(16, int16_t, quant_shift_ptr[2]);
+ DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, tran_low_t, ref_dqcoeff_ptr[1024]);
+ DECLARE_ALIGNED(16, int16_t, dequant_ptr[2]);
+ DECLARE_ALIGNED(16, uint16_t, eob_ptr[1]);
+ DECLARE_ALIGNED(16, uint16_t, ref_eob_ptr[1]);
int err_count_total = 0;
int first_failure = -1;
for (int i = 0; i < number_of_iterations; ++i) {
« no previous file with comments | « source/libvpx/test/vp9_intrapred_test.cc ('k') | source/libvpx/test/vpx_scale_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698