2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
17 #include "third_party/googletest/src/include/gtest/gtest.h"
19 #include "./vp9_rtcd.h"
20 #include "./vpx_dsp_rtcd.h"
21 #include "test/acm_random.h"
22 #include "test/clear_system_state.h"
23 #include "test/register_state_check.h"
24 #include "test/util.h"
25 #include "vp9/common/vp9_blockd.h"
26 #include "vp9/common/vp9_scan.h"
27 #include "vpx/vpx_integer.h"
28 #include "vpx_ports/vpx_timer.h"
30 using libvpx_test::ACMRandom;
34 typedef void (*FwdTxfmFunc)(const int16_t *in, tran_low_t *out, int stride);
35 typedef void (*InvTxfmFunc)(const tran_low_t *in, uint8_t *out, int stride);
36 typedef void (*InvTxfmWithBdFunc)(const tran_low_t *in, uint8_t *out,
39 template <InvTxfmFunc fn>
40 void wrapper(const tran_low_t *in, uint8_t *out, int stride, int bd) {
45 #if CONFIG_VP9_HIGHBITDEPTH
46 typedef void (*InvTxfmHighbdFunc)(const tran_low_t *in, uint16_t *out,
48 template <InvTxfmHighbdFunc fn>
49 void highbd_wrapper(const tran_low_t *in, uint8_t *out, int stride, int bd) {
50 fn(in, CAST_TO_SHORTPTR(out), stride, bd);
54 typedef std::tr1::tuple<FwdTxfmFunc, InvTxfmWithBdFunc, InvTxfmWithBdFunc,
55 TX_SIZE, int, int, int>
57 const int kMaxNumCoeffs = 1024;
58 const int kCountTestBlock = 1000;
60 class PartialIDctTest : public ::testing::TestWithParam<PartialInvTxfmParam> {
62 virtual ~PartialIDctTest() {}
63 virtual void SetUp() {
64 rnd_.Reset(ACMRandom::DeterministicSeed());
65 ftxfm_ = GET_PARAM(0);
66 full_itxfm_ = GET_PARAM(1);
67 partial_itxfm_ = GET_PARAM(2);
68 tx_size_ = GET_PARAM(3);
69 last_nonzero_ = GET_PARAM(4);
70 bit_depth_ = GET_PARAM(5);
71 pixel_size_ = GET_PARAM(6);
72 mask_ = (1 << bit_depth_) - 1;
75 case TX_4X4: size_ = 4; break;
76 case TX_8X8: size_ = 8; break;
77 case TX_16X16: size_ = 16; break;
78 case TX_32X32: size_ = 32; break;
79 default: FAIL() << "Wrong Size!"; break;
82 // Randomize stride_ to a value less than or equal to 1024
83 stride_ = rnd_(1024) + 1;
84 if (stride_ < size_) {
87 // Align stride_ to 16 if it's bigger than 16.
92 input_block_size_ = size_ * size_;
93 output_block_size_ = size_ * stride_;
95 input_block_ = reinterpret_cast<tran_low_t *>(
96 vpx_memalign(16, sizeof(*input_block_) * input_block_size_));
97 output_block_ = reinterpret_cast<uint8_t *>(
98 vpx_memalign(16, pixel_size_ * output_block_size_));
99 output_block_ref_ = reinterpret_cast<uint8_t *>(
100 vpx_memalign(16, pixel_size_ * output_block_size_));
103 virtual void TearDown() {
104 vpx_free(input_block_);
106 vpx_free(output_block_);
107 output_block_ = NULL;
108 vpx_free(output_block_ref_);
109 output_block_ref_ = NULL;
110 libvpx_test::ClearSystemState();
114 memset(input_block_, 0, sizeof(*input_block_) * input_block_size_);
115 if (pixel_size_ == 1) {
116 for (int j = 0; j < output_block_size_; ++j) {
117 output_block_[j] = output_block_ref_[j] = rnd_.Rand16() & mask_;
120 ASSERT_EQ(2, pixel_size_);
121 uint16_t *const output = reinterpret_cast<uint16_t *>(output_block_);
122 uint16_t *const output_ref =
123 reinterpret_cast<uint16_t *>(output_block_ref_);
124 for (int j = 0; j < output_block_size_; ++j) {
125 output[j] = output_ref[j] = rnd_.Rand16() & mask_;
131 const int max_coeff = 32766 / 4;
132 int max_energy_leftover = max_coeff * max_coeff;
133 for (int j = 0; j < last_nonzero_; ++j) {
134 int16_t coeff = static_cast<int16_t>(sqrt(1.0 * max_energy_leftover) *
135 (rnd_.Rand16() - 32768) / 65536);
136 max_energy_leftover -= coeff * coeff;
137 if (max_energy_leftover < 0) {
138 max_energy_leftover = 0;
141 input_block_[vp9_default_scan_orders[tx_size_].scan[j]] = coeff;
148 tran_low_t *input_block_;
149 uint8_t *output_block_;
150 uint8_t *output_block_ref_;
154 int input_block_size_;
155 int output_block_size_;
159 InvTxfmWithBdFunc full_itxfm_;
160 InvTxfmWithBdFunc partial_itxfm_;
164 TEST_P(PartialIDctTest, RunQuantCheck) {
165 DECLARE_ALIGNED(16, int16_t, input_extreme_block[kMaxNumCoeffs]);
166 DECLARE_ALIGNED(16, tran_low_t, output_ref_block[kMaxNumCoeffs]);
169 for (int i = 0; i < kCountTestBlock; ++i) {
170 // Initialize a test block with input range [-mask_, mask_].
172 for (int k = 0; k < input_block_size_; ++k) {
173 input_extreme_block[k] = mask_;
176 for (int k = 0; k < input_block_size_; ++k) {
177 input_extreme_block[k] = -mask_;
180 for (int k = 0; k < input_block_size_; ++k) {
181 input_extreme_block[k] = rnd_.Rand8() % 2 ? mask_ : -mask_;
185 ftxfm_(input_extreme_block, output_ref_block, size_);
187 // quantization with minimum allowed step sizes
188 input_block_[0] = (output_ref_block[0] / 4) * 4;
189 for (int k = 1; k < last_nonzero_; ++k) {
190 const int pos = vp9_default_scan_orders[tx_size_].scan[k];
191 input_block_[pos] = (output_ref_block[pos] / 4) * 4;
194 ASM_REGISTER_STATE_CHECK(
195 full_itxfm_(input_block_, output_block_ref_, stride_, bit_depth_));
196 ASM_REGISTER_STATE_CHECK(
197 partial_itxfm_(input_block_, output_block_, stride_, bit_depth_));
198 ASSERT_EQ(0, memcmp(output_block_ref_, output_block_,
199 pixel_size_ * output_block_size_))
200 << "Error: partial inverse transform produces different results";
204 TEST_P(PartialIDctTest, ResultsMatch) {
205 for (int i = 0; i < kCountTestBlock; ++i) {
209 ASM_REGISTER_STATE_CHECK(
210 full_itxfm_(input_block_, output_block_ref_, stride_, bit_depth_));
211 ASM_REGISTER_STATE_CHECK(
212 partial_itxfm_(input_block_, output_block_, stride_, bit_depth_));
213 ASSERT_EQ(0, memcmp(output_block_ref_, output_block_,
214 pixel_size_ * output_block_size_))
215 << "Error: partial inverse transform produces different results";
219 TEST_P(PartialIDctTest, AddOutputBlock) {
220 for (int i = 0; i < kCountTestBlock; ++i) {
222 for (int j = 0; j < last_nonzero_; ++j) {
223 input_block_[vp9_default_scan_orders[tx_size_].scan[j]] = 10;
226 ASM_REGISTER_STATE_CHECK(
227 full_itxfm_(input_block_, output_block_ref_, stride_, bit_depth_));
228 ASM_REGISTER_STATE_CHECK(
229 partial_itxfm_(input_block_, output_block_, stride_, bit_depth_));
230 ASSERT_EQ(0, memcmp(output_block_ref_, output_block_,
231 pixel_size_ * output_block_size_))
232 << "Error: Transform results are not correctly added to output.";
236 TEST_P(PartialIDctTest, SingleExtremeCoeff) {
237 const int16_t max_coeff = std::numeric_limits<int16_t>::max();
238 const int16_t min_coeff = std::numeric_limits<int16_t>::min();
239 for (int i = 0; i < last_nonzero_; ++i) {
240 memset(input_block_, 0, sizeof(*input_block_) * input_block_size_);
241 // Run once for min and once for max.
242 for (int j = 0; j < 2; ++j) {
243 const int coeff = j ? min_coeff : max_coeff;
245 memset(output_block_, 0, pixel_size_ * output_block_size_);
246 memset(output_block_ref_, 0, pixel_size_ * output_block_size_);
247 input_block_[vp9_default_scan_orders[tx_size_].scan[i]] = coeff;
249 ASM_REGISTER_STATE_CHECK(
250 full_itxfm_(input_block_, output_block_ref_, stride_, bit_depth_));
251 ASM_REGISTER_STATE_CHECK(
252 partial_itxfm_(input_block_, output_block_, stride_, bit_depth_));
253 ASSERT_EQ(0, memcmp(output_block_ref_, output_block_,
254 pixel_size_ * output_block_size_))
255 << "Error: Fails with single coeff of " << coeff << " at " << i
261 TEST_P(PartialIDctTest, DISABLED_Speed) {
262 // Keep runtime stable with transform size.
263 const int kCountSpeedTestBlock = 500000000 / input_block_size_;
267 for (int i = 0; i < kCountSpeedTestBlock; ++i) {
268 ASM_REGISTER_STATE_CHECK(
269 full_itxfm_(input_block_, output_block_ref_, stride_, bit_depth_));
271 vpx_usec_timer timer;
272 vpx_usec_timer_start(&timer);
273 for (int i = 0; i < kCountSpeedTestBlock; ++i) {
274 partial_itxfm_(input_block_, output_block_, stride_, bit_depth_);
276 libvpx_test::ClearSystemState();
277 vpx_usec_timer_mark(&timer);
278 const int elapsed_time =
279 static_cast<int>(vpx_usec_timer_elapsed(&timer) / 1000);
280 printf("idct%dx%d_%d (bitdepth %d) time: %5d ms\n", size_, size_,
281 last_nonzero_, bit_depth_, elapsed_time);
283 ASSERT_EQ(0, memcmp(output_block_ref_, output_block_,
284 pixel_size_ * output_block_size_))
285 << "Error: partial inverse transform produces different results";
288 using std::tr1::make_tuple;
290 const PartialInvTxfmParam c_partial_idct_tests[] = {
291 #if CONFIG_VP9_HIGHBITDEPTH
293 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
294 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>, TX_32X32, 1024, 8, 2),
296 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
297 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>, TX_32X32, 1024, 10, 2),
299 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
300 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>, TX_32X32, 1024, 12, 2),
302 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
303 &highbd_wrapper<vpx_highbd_idct32x32_135_add_c>, TX_32X32, 135, 8, 2),
305 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
306 &highbd_wrapper<vpx_highbd_idct32x32_135_add_c>, TX_32X32, 135, 10, 2),
308 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
309 &highbd_wrapper<vpx_highbd_idct32x32_135_add_c>, TX_32X32, 135, 12, 2),
311 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
312 &highbd_wrapper<vpx_highbd_idct32x32_34_add_c>, TX_32X32, 34, 8, 2),
314 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
315 &highbd_wrapper<vpx_highbd_idct32x32_34_add_c>, TX_32X32, 34, 10, 2),
317 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
318 &highbd_wrapper<vpx_highbd_idct32x32_34_add_c>, TX_32X32, 34, 12, 2),
319 make_tuple(&vpx_highbd_fdct32x32_c,
320 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
321 &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>, TX_32X32, 1, 8, 2),
322 make_tuple(&vpx_highbd_fdct32x32_c,
323 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
324 &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>, TX_32X32, 1, 10, 2),
325 make_tuple(&vpx_highbd_fdct32x32_c,
326 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
327 &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>, TX_32X32, 1, 12, 2),
329 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
330 &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>, TX_16X16, 256, 8, 2),
332 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
333 &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>, TX_16X16, 256, 10, 2),
335 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
336 &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>, TX_16X16, 256, 12, 2),
338 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
339 &highbd_wrapper<vpx_highbd_idct16x16_38_add_c>, TX_16X16, 38, 8, 2),
341 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
342 &highbd_wrapper<vpx_highbd_idct16x16_38_add_c>, TX_16X16, 38, 10, 2),
344 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
345 &highbd_wrapper<vpx_highbd_idct16x16_38_add_c>, TX_16X16, 38, 12, 2),
347 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
348 &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>, TX_16X16, 10, 8, 2),
350 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
351 &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>, TX_16X16, 10, 10, 2),
353 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
354 &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>, TX_16X16, 10, 12, 2),
355 make_tuple(&vpx_highbd_fdct16x16_c,
356 &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
357 &highbd_wrapper<vpx_highbd_idct16x16_1_add_c>, TX_16X16, 1, 8, 2),
358 make_tuple(&vpx_highbd_fdct16x16_c,
359 &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
360 &highbd_wrapper<vpx_highbd_idct16x16_1_add_c>, TX_16X16, 1, 10, 2),
361 make_tuple(&vpx_highbd_fdct16x16_c,
362 &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
363 &highbd_wrapper<vpx_highbd_idct16x16_1_add_c>, TX_16X16, 1, 12, 2),
364 make_tuple(&vpx_highbd_fdct8x8_c,
365 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
366 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>, TX_8X8, 64, 8, 2),
367 make_tuple(&vpx_highbd_fdct8x8_c,
368 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
369 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>, TX_8X8, 64, 10, 2),
370 make_tuple(&vpx_highbd_fdct8x8_c,
371 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
372 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>, TX_8X8, 64, 12, 2),
373 make_tuple(&vpx_highbd_fdct8x8_c,
374 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
375 &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>, TX_8X8, 12, 8, 2),
376 make_tuple(&vpx_highbd_fdct8x8_c,
377 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
378 &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>, TX_8X8, 12, 10, 2),
379 make_tuple(&vpx_highbd_fdct8x8_c,
380 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
381 &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>, TX_8X8, 12, 12, 2),
382 make_tuple(&vpx_highbd_fdct8x8_c,
383 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
384 &highbd_wrapper<vpx_highbd_idct8x8_1_add_c>, TX_8X8, 1, 8, 2),
385 make_tuple(&vpx_highbd_fdct8x8_c,
386 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
387 &highbd_wrapper<vpx_highbd_idct8x8_1_add_c>, TX_8X8, 1, 10, 2),
388 make_tuple(&vpx_highbd_fdct8x8_c,
389 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
390 &highbd_wrapper<vpx_highbd_idct8x8_1_add_c>, TX_8X8, 1, 12, 2),
391 make_tuple(&vpx_highbd_fdct4x4_c,
392 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
393 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>, TX_4X4, 16, 8, 2),
394 make_tuple(&vpx_highbd_fdct4x4_c,
395 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
396 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>, TX_4X4, 16, 10, 2),
397 make_tuple(&vpx_highbd_fdct4x4_c,
398 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
399 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>, TX_4X4, 16, 12, 2),
400 make_tuple(&vpx_highbd_fdct4x4_c,
401 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
402 &highbd_wrapper<vpx_highbd_idct4x4_1_add_c>, TX_4X4, 1, 8, 2),
403 make_tuple(&vpx_highbd_fdct4x4_c,
404 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
405 &highbd_wrapper<vpx_highbd_idct4x4_1_add_c>, TX_4X4, 1, 10, 2),
406 make_tuple(&vpx_highbd_fdct4x4_c,
407 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
408 &highbd_wrapper<vpx_highbd_idct4x4_1_add_c>, TX_4X4, 1, 12, 2),
409 #endif // CONFIG_VP9_HIGHBITDEPTH
410 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
411 &wrapper<vpx_idct32x32_1024_add_c>, TX_32X32, 1024, 8, 1),
412 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
413 &wrapper<vpx_idct32x32_135_add_c>, TX_32X32, 135, 8, 1),
414 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
415 &wrapper<vpx_idct32x32_34_add_c>, TX_32X32, 34, 8, 1),
416 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
417 &wrapper<vpx_idct32x32_1_add_c>, TX_32X32, 1, 8, 1),
418 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
419 &wrapper<vpx_idct16x16_256_add_c>, TX_16X16, 256, 8, 1),
420 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
421 &wrapper<vpx_idct16x16_38_add_c>, TX_16X16, 38, 8, 1),
422 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
423 &wrapper<vpx_idct16x16_10_add_c>, TX_16X16, 10, 8, 1),
424 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
425 &wrapper<vpx_idct16x16_1_add_c>, TX_16X16, 1, 8, 1),
426 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
427 &wrapper<vpx_idct8x8_64_add_c>, TX_8X8, 64, 8, 1),
428 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
429 &wrapper<vpx_idct8x8_12_add_c>, TX_8X8, 12, 8, 1),
430 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
431 &wrapper<vpx_idct8x8_1_add_c>, TX_8X8, 1, 8, 1),
432 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_16_add_c>,
433 &wrapper<vpx_idct4x4_16_add_c>, TX_4X4, 16, 8, 1),
434 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_16_add_c>,
435 &wrapper<vpx_idct4x4_1_add_c>, TX_4X4, 1, 8, 1)
438 INSTANTIATE_TEST_CASE_P(C, PartialIDctTest,
439 ::testing::ValuesIn(c_partial_idct_tests));
441 #if HAVE_NEON && !CONFIG_EMULATE_HARDWARE
442 const PartialInvTxfmParam neon_partial_idct_tests[] = {
443 #if CONFIG_VP9_HIGHBITDEPTH
444 make_tuple(&vpx_highbd_fdct32x32_c,
445 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
446 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_neon>, TX_32X32,
448 make_tuple(&vpx_highbd_fdct32x32_c,
449 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
450 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_neon>, TX_32X32,
452 make_tuple(&vpx_highbd_fdct32x32_c,
453 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_c>,
454 &highbd_wrapper<vpx_highbd_idct32x32_1024_add_neon>, TX_32X32,
457 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_135_add_c>,
458 &highbd_wrapper<vpx_highbd_idct32x32_135_add_neon>, TX_32X32, 135, 8, 2),
460 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_135_add_c>,
461 &highbd_wrapper<vpx_highbd_idct32x32_135_add_neon>, TX_32X32, 135, 10, 2),
463 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_135_add_c>,
464 &highbd_wrapper<vpx_highbd_idct32x32_135_add_neon>, TX_32X32, 135, 12, 2),
466 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_34_add_c>,
467 &highbd_wrapper<vpx_highbd_idct32x32_34_add_neon>, TX_32X32, 34, 8, 2),
469 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_34_add_c>,
470 &highbd_wrapper<vpx_highbd_idct32x32_34_add_neon>, TX_32X32, 34, 10, 2),
472 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_34_add_c>,
473 &highbd_wrapper<vpx_highbd_idct32x32_34_add_neon>, TX_32X32, 34, 12, 2),
475 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>,
476 &highbd_wrapper<vpx_highbd_idct32x32_1_add_neon>, TX_32X32, 1, 8, 2),
478 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>,
479 &highbd_wrapper<vpx_highbd_idct32x32_1_add_neon>, TX_32X32, 1, 10, 2),
481 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>,
482 &highbd_wrapper<vpx_highbd_idct32x32_1_add_neon>, TX_32X32, 1, 12, 2),
484 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
485 &highbd_wrapper<vpx_highbd_idct16x16_256_add_neon>, TX_16X16, 256, 8, 2),
487 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
488 &highbd_wrapper<vpx_highbd_idct16x16_256_add_neon>, TX_16X16, 256, 10, 2),
490 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
491 &highbd_wrapper<vpx_highbd_idct16x16_256_add_neon>, TX_16X16, 256, 12, 2),
493 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_38_add_c>,
494 &highbd_wrapper<vpx_highbd_idct16x16_38_add_neon>, TX_16X16, 38, 8, 2),
496 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_38_add_c>,
497 &highbd_wrapper<vpx_highbd_idct16x16_38_add_neon>, TX_16X16, 38, 10, 2),
499 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_38_add_c>,
500 &highbd_wrapper<vpx_highbd_idct16x16_38_add_neon>, TX_16X16, 38, 12, 2),
502 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>,
503 &highbd_wrapper<vpx_highbd_idct16x16_10_add_neon>, TX_16X16, 10, 8, 2),
505 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>,
506 &highbd_wrapper<vpx_highbd_idct16x16_10_add_neon>, TX_16X16, 10, 10, 2),
508 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>,
509 &highbd_wrapper<vpx_highbd_idct16x16_10_add_neon>, TX_16X16, 10, 12, 2),
511 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_1_add_c>,
512 &highbd_wrapper<vpx_highbd_idct16x16_1_add_neon>, TX_16X16, 1, 8, 2),
514 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_1_add_c>,
515 &highbd_wrapper<vpx_highbd_idct16x16_1_add_neon>, TX_16X16, 1, 10, 2),
517 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_1_add_c>,
518 &highbd_wrapper<vpx_highbd_idct16x16_1_add_neon>, TX_16X16, 1, 12, 2),
519 make_tuple(&vpx_highbd_fdct8x8_c,
520 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
521 &highbd_wrapper<vpx_highbd_idct8x8_64_add_neon>, TX_8X8, 64, 8, 2),
523 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
524 &highbd_wrapper<vpx_highbd_idct8x8_64_add_neon>, TX_8X8, 64, 10, 2),
526 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
527 &highbd_wrapper<vpx_highbd_idct8x8_64_add_neon>, TX_8X8, 64, 12, 2),
528 make_tuple(&vpx_highbd_fdct8x8_c,
529 &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>,
530 &highbd_wrapper<vpx_highbd_idct8x8_12_add_neon>, TX_8X8, 12, 8, 2),
532 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>,
533 &highbd_wrapper<vpx_highbd_idct8x8_12_add_neon>, TX_8X8, 12, 10, 2),
535 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>,
536 &highbd_wrapper<vpx_highbd_idct8x8_12_add_neon>, TX_8X8, 12, 12, 2),
537 make_tuple(&vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_1_add_c>,
538 &highbd_wrapper<vpx_highbd_idct8x8_1_add_neon>, TX_8X8, 1, 8, 2),
539 make_tuple(&vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_1_add_c>,
540 &highbd_wrapper<vpx_highbd_idct8x8_1_add_neon>, TX_8X8, 1, 10, 2),
541 make_tuple(&vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_1_add_c>,
542 &highbd_wrapper<vpx_highbd_idct8x8_1_add_neon>, TX_8X8, 1, 12, 2),
543 make_tuple(&vpx_highbd_fdct4x4_c,
544 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
545 &highbd_wrapper<vpx_highbd_idct4x4_16_add_neon>, TX_4X4, 16, 8, 2),
547 &vpx_highbd_fdct4x4_c, &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
548 &highbd_wrapper<vpx_highbd_idct4x4_16_add_neon>, TX_4X4, 16, 10, 2),
550 &vpx_highbd_fdct4x4_c, &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
551 &highbd_wrapper<vpx_highbd_idct4x4_16_add_neon>, TX_4X4, 16, 12, 2),
552 make_tuple(&vpx_highbd_fdct4x4_c, &highbd_wrapper<vpx_highbd_idct4x4_1_add_c>,
553 &highbd_wrapper<vpx_highbd_idct4x4_1_add_neon>, TX_4X4, 1, 8, 2),
554 make_tuple(&vpx_highbd_fdct4x4_c, &highbd_wrapper<vpx_highbd_idct4x4_1_add_c>,
555 &highbd_wrapper<vpx_highbd_idct4x4_1_add_neon>, TX_4X4, 1, 10, 2),
556 make_tuple(&vpx_highbd_fdct4x4_c, &highbd_wrapper<vpx_highbd_idct4x4_1_add_c>,
557 &highbd_wrapper<vpx_highbd_idct4x4_1_add_neon>, TX_4X4, 1, 12, 2),
558 #endif // CONFIG_VP9_HIGHBITDEPTH
559 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
560 &wrapper<vpx_idct32x32_1024_add_neon>, TX_32X32, 1024, 8, 1),
561 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_135_add_c>,
562 &wrapper<vpx_idct32x32_135_add_neon>, TX_32X32, 135, 8, 1),
563 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_34_add_c>,
564 &wrapper<vpx_idct32x32_34_add_neon>, TX_32X32, 34, 8, 1),
565 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1_add_c>,
566 &wrapper<vpx_idct32x32_1_add_neon>, TX_32X32, 1, 8, 1),
567 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
568 &wrapper<vpx_idct16x16_256_add_neon>, TX_16X16, 256, 8, 1),
569 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_38_add_c>,
570 &wrapper<vpx_idct16x16_38_add_neon>, TX_16X16, 38, 8, 1),
571 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_10_add_c>,
572 &wrapper<vpx_idct16x16_10_add_neon>, TX_16X16, 10, 8, 1),
573 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_1_add_c>,
574 &wrapper<vpx_idct16x16_1_add_neon>, TX_16X16, 1, 8, 1),
575 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
576 &wrapper<vpx_idct8x8_64_add_neon>, TX_8X8, 64, 8, 1),
577 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_12_add_c>,
578 &wrapper<vpx_idct8x8_12_add_neon>, TX_8X8, 12, 8, 1),
579 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_1_add_c>,
580 &wrapper<vpx_idct8x8_1_add_neon>, TX_8X8, 1, 8, 1),
581 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_16_add_c>,
582 &wrapper<vpx_idct4x4_16_add_neon>, TX_4X4, 16, 8, 1),
583 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_1_add_c>,
584 &wrapper<vpx_idct4x4_1_add_neon>, TX_4X4, 1, 8, 1)
587 INSTANTIATE_TEST_CASE_P(NEON, PartialIDctTest,
588 ::testing::ValuesIn(neon_partial_idct_tests));
589 #endif // HAVE_NEON && !CONFIG_EMULATE_HARDWARE
591 #if HAVE_SSE2 && !CONFIG_EMULATE_HARDWARE
592 // 32x32_135_ is implemented using the 1024 version.
593 const PartialInvTxfmParam sse2_partial_idct_tests[] = {
594 #if CONFIG_VP9_HIGHBITDEPTH
596 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>,
597 &highbd_wrapper<vpx_highbd_idct32x32_1_add_sse2>, TX_32X32, 1, 8, 2),
599 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>,
600 &highbd_wrapper<vpx_highbd_idct32x32_1_add_sse2>, TX_32X32, 1, 10, 2),
602 &vpx_highbd_fdct32x32_c, &highbd_wrapper<vpx_highbd_idct32x32_1_add_c>,
603 &highbd_wrapper<vpx_highbd_idct32x32_1_add_sse2>, TX_32X32, 1, 12, 2),
605 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
606 &highbd_wrapper<vpx_highbd_idct16x16_256_add_sse2>, TX_16X16, 256, 8, 2),
608 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
609 &highbd_wrapper<vpx_highbd_idct16x16_256_add_sse2>, TX_16X16, 256, 10, 2),
611 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_256_add_c>,
612 &highbd_wrapper<vpx_highbd_idct16x16_256_add_sse2>, TX_16X16, 256, 12, 2),
614 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>,
615 &highbd_wrapper<vpx_highbd_idct16x16_10_add_sse2>, TX_16X16, 10, 8, 2),
617 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>,
618 &highbd_wrapper<vpx_highbd_idct16x16_10_add_sse2>, TX_16X16, 10, 10, 2),
620 &vpx_highbd_fdct16x16_c, &highbd_wrapper<vpx_highbd_idct16x16_10_add_c>,
621 &highbd_wrapper<vpx_highbd_idct16x16_10_add_sse2>, TX_16X16, 10, 12, 2),
622 make_tuple(&vpx_highbd_fdct8x8_c,
623 &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
624 &highbd_wrapper<vpx_highbd_idct8x8_64_add_sse2>, TX_8X8, 64, 8, 2),
626 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
627 &highbd_wrapper<vpx_highbd_idct8x8_64_add_sse2>, TX_8X8, 64, 10, 2),
629 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_64_add_c>,
630 &highbd_wrapper<vpx_highbd_idct8x8_64_add_sse2>, TX_8X8, 64, 12, 2),
631 make_tuple(&vpx_highbd_fdct8x8_c,
632 &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>,
633 &highbd_wrapper<vpx_highbd_idct8x8_12_add_sse2>, TX_8X8, 12, 8, 2),
635 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>,
636 &highbd_wrapper<vpx_highbd_idct8x8_12_add_sse2>, TX_8X8, 12, 10, 2),
638 &vpx_highbd_fdct8x8_c, &highbd_wrapper<vpx_highbd_idct8x8_12_add_c>,
639 &highbd_wrapper<vpx_highbd_idct8x8_12_add_sse2>, TX_8X8, 12, 12, 2),
640 make_tuple(&vpx_highbd_fdct4x4_c,
641 &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
642 &highbd_wrapper<vpx_highbd_idct4x4_16_add_sse2>, TX_4X4, 16, 8, 2),
644 &vpx_highbd_fdct4x4_c, &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
645 &highbd_wrapper<vpx_highbd_idct4x4_16_add_sse2>, TX_4X4, 16, 10, 2),
647 &vpx_highbd_fdct4x4_c, &highbd_wrapper<vpx_highbd_idct4x4_16_add_c>,
648 &highbd_wrapper<vpx_highbd_idct4x4_16_add_sse2>, TX_4X4, 16, 12, 2),
649 #endif // CONFIG_VP9_HIGHBITDEPTH
650 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
651 &wrapper<vpx_idct32x32_1024_add_sse2>, TX_32X32, 1024, 8, 1),
652 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_34_add_c>,
653 &wrapper<vpx_idct32x32_34_add_sse2>, TX_32X32, 34, 8, 1),
654 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1_add_c>,
655 &wrapper<vpx_idct32x32_1_add_sse2>, TX_32X32, 1, 8, 1),
656 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
657 &wrapper<vpx_idct16x16_256_add_sse2>, TX_16X16, 256, 8, 1),
658 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_10_add_c>,
659 &wrapper<vpx_idct16x16_10_add_sse2>, TX_16X16, 10, 8, 1),
660 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_1_add_c>,
661 &wrapper<vpx_idct16x16_1_add_sse2>, TX_16X16, 1, 8, 1),
662 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
663 &wrapper<vpx_idct8x8_64_add_sse2>, TX_8X8, 64, 8, 1),
664 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_12_add_c>,
665 &wrapper<vpx_idct8x8_12_add_sse2>, TX_8X8, 12, 8, 1),
666 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_1_add_c>,
667 &wrapper<vpx_idct8x8_1_add_sse2>, TX_8X8, 1, 8, 1),
668 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_16_add_c>,
669 &wrapper<vpx_idct4x4_16_add_sse2>, TX_4X4, 16, 8, 1),
670 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_1_add_c>,
671 &wrapper<vpx_idct4x4_1_add_sse2>, TX_4X4, 1, 8, 1)
674 INSTANTIATE_TEST_CASE_P(SSE2, PartialIDctTest,
675 ::testing::ValuesIn(sse2_partial_idct_tests));
677 #endif // HAVE_SSE2 && !CONFIG_EMULATE_HARDWARE
679 #if HAVE_SSSE3 && !CONFIG_EMULATE_HARDWARE
680 const PartialInvTxfmParam ssse3_partial_idct_tests[] = {
681 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
682 &wrapper<vpx_idct32x32_1024_add_ssse3>, TX_32X32, 1024, 8, 1),
683 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_135_add_c>,
684 &wrapper<vpx_idct32x32_135_add_ssse3>, TX_32X32, 135, 8, 1),
685 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_34_add_c>,
686 &wrapper<vpx_idct32x32_34_add_ssse3>, TX_32X32, 34, 8, 1),
687 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
688 &wrapper<vpx_idct8x8_64_add_ssse3>, TX_8X8, 64, 8, 1),
689 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_12_add_c>,
690 &wrapper<vpx_idct8x8_12_add_ssse3>, TX_8X8, 12, 8, 1)
693 INSTANTIATE_TEST_CASE_P(SSSE3, PartialIDctTest,
694 ::testing::ValuesIn(ssse3_partial_idct_tests));
695 #endif // HAVE_SSSE3 && ARCH_X86_64 && !CONFIG_EMULATE_HARDWARE
697 #if HAVE_DSPR2 && !CONFIG_EMULATE_HARDWARE && !CONFIG_VP9_HIGHBITDEPTH
698 const PartialInvTxfmParam dspr2_partial_idct_tests[] = {
699 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
700 &wrapper<vpx_idct32x32_1024_add_dspr2>, TX_32X32, 1024, 8, 1),
701 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_34_add_c>,
702 &wrapper<vpx_idct32x32_34_add_dspr2>, TX_32X32, 34, 8, 1),
703 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1_add_c>,
704 &wrapper<vpx_idct32x32_1_add_dspr2>, TX_32X32, 1, 8, 1),
705 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
706 &wrapper<vpx_idct16x16_256_add_dspr2>, TX_16X16, 256, 8, 1),
707 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_10_add_c>,
708 &wrapper<vpx_idct16x16_10_add_dspr2>, TX_16X16, 10, 8, 1),
709 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_1_add_c>,
710 &wrapper<vpx_idct16x16_1_add_dspr2>, TX_16X16, 1, 8, 1),
711 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
712 &wrapper<vpx_idct8x8_64_add_dspr2>, TX_8X8, 64, 8, 1),
713 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_12_add_c>,
714 &wrapper<vpx_idct8x8_12_add_dspr2>, TX_8X8, 12, 8, 1),
715 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_1_add_c>,
716 &wrapper<vpx_idct8x8_1_add_dspr2>, TX_8X8, 1, 8, 1),
717 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_16_add_c>,
718 &wrapper<vpx_idct4x4_16_add_dspr2>, TX_4X4, 16, 8, 1),
719 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_1_add_c>,
720 &wrapper<vpx_idct4x4_1_add_dspr2>, TX_4X4, 1, 8, 1)
723 INSTANTIATE_TEST_CASE_P(DSPR2, PartialIDctTest,
724 ::testing::ValuesIn(dspr2_partial_idct_tests));
725 #endif // HAVE_DSPR2 && !CONFIG_EMULATE_HARDWARE && !CONFIG_VP9_HIGHBITDEPTH
727 #if HAVE_MSA && !CONFIG_EMULATE_HARDWARE && !CONFIG_VP9_HIGHBITDEPTH
728 // 32x32_135_ is implemented using the 1024 version.
729 const PartialInvTxfmParam msa_partial_idct_tests[] = {
730 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
731 &wrapper<vpx_idct32x32_1024_add_msa>, TX_32X32, 1024, 8, 1),
732 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_34_add_c>,
733 &wrapper<vpx_idct32x32_34_add_msa>, TX_32X32, 34, 8, 1),
734 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1_add_c>,
735 &wrapper<vpx_idct32x32_1_add_msa>, TX_32X32, 1, 8, 1),
736 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
737 &wrapper<vpx_idct16x16_256_add_msa>, TX_16X16, 256, 8, 1),
738 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_10_add_c>,
739 &wrapper<vpx_idct16x16_10_add_msa>, TX_16X16, 10, 8, 1),
740 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_1_add_c>,
741 &wrapper<vpx_idct16x16_1_add_msa>, TX_16X16, 1, 8, 1),
742 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_64_add_c>,
743 &wrapper<vpx_idct8x8_64_add_msa>, TX_8X8, 64, 8, 1),
744 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_12_add_c>,
745 &wrapper<vpx_idct8x8_12_add_msa>, TX_8X8, 12, 8, 1),
746 make_tuple(&vpx_fdct8x8_c, &wrapper<vpx_idct8x8_1_add_c>,
747 &wrapper<vpx_idct8x8_1_add_msa>, TX_8X8, 1, 8, 1),
748 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_16_add_c>,
749 &wrapper<vpx_idct4x4_16_add_msa>, TX_4X4, 16, 8, 1),
750 make_tuple(&vpx_fdct4x4_c, &wrapper<vpx_idct4x4_1_add_c>,
751 &wrapper<vpx_idct4x4_1_add_msa>, TX_4X4, 1, 8, 1)
754 INSTANTIATE_TEST_CASE_P(MSA, PartialIDctTest,
755 ::testing::ValuesIn(msa_partial_idct_tests));
756 #endif // HAVE_MSA && !CONFIG_EMULATE_HARDWARE && !CONFIG_VP9_HIGHBITDEPTH