2012-06-29 01:26:31 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 The WebM project authors. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "third_party/googletest/src/include/gtest/gtest.h"
|
2013-09-17 01:01:50 +02:00
|
|
|
#include "test/acm_random.h"
|
2013-09-03 22:50:17 +02:00
|
|
|
#include "test/clear_system_state.h"
|
|
|
|
#include "test/register_state_check.h"
|
2013-09-17 01:01:50 +02:00
|
|
|
#include "test/util.h"
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-03 22:50:17 +02:00
|
|
|
#include "./vp9_rtcd.h"
|
2014-01-18 22:03:31 +01:00
|
|
|
#include "vp9/common/vp9_entropy.h"
|
|
|
|
#include "vpx/vpx_integer.h"
|
|
|
|
|
|
|
|
extern "C" {
|
2013-10-12 03:27:12 +02:00
|
|
|
void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *output, int pitch);
|
2012-06-29 01:26:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
using libvpx_test::ACMRandom;
|
|
|
|
|
|
|
|
namespace {
|
2014-07-17 03:56:22 +02:00
|
|
|
typedef void (*FdctFunc)(const int16_t *in, int16_t *out, int stride);
|
|
|
|
typedef void (*IdctFunc)(const int16_t *in, uint8_t *out, int stride);
|
|
|
|
typedef void (*FhtFunc)(const int16_t *in, int16_t *out, int stride,
|
|
|
|
int tx_type);
|
|
|
|
typedef void (*IhtFunc)(const int16_t *in, uint8_t *out, int stride,
|
|
|
|
int tx_type);
|
2013-10-24 20:48:25 +02:00
|
|
|
|
2014-07-17 03:56:22 +02:00
|
|
|
typedef std::tr1::tuple<FdctFunc, IdctFunc, int> Dct8x8Param;
|
|
|
|
typedef std::tr1::tuple<FhtFunc, IhtFunc, int> Ht8x8Param;
|
2013-11-19 02:07:55 +01:00
|
|
|
|
2013-10-24 20:48:25 +02:00
|
|
|
void fdct8x8_ref(const int16_t *in, int16_t *out, int stride, int tx_type) {
|
2013-10-23 19:52:33 +02:00
|
|
|
vp9_fdct8x8_c(in, out, stride);
|
2013-06-21 20:45:47 +02:00
|
|
|
}
|
2013-09-17 01:01:50 +02:00
|
|
|
|
2013-10-24 20:48:25 +02:00
|
|
|
void fht8x8_ref(const int16_t *in, int16_t *out, int stride, int tx_type) {
|
2014-02-06 20:54:15 +01:00
|
|
|
vp9_fht8x8_c(in, out, stride, tx_type);
|
2013-06-21 20:45:47 +02:00
|
|
|
}
|
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
class FwdTrans8x8TestBase {
|
2013-06-21 20:45:47 +02:00
|
|
|
public:
|
2013-09-17 01:01:50 +02:00
|
|
|
virtual ~FwdTrans8x8TestBase() {}
|
2013-06-21 20:45:47 +02:00
|
|
|
|
|
|
|
protected:
|
2013-09-17 01:01:50 +02:00
|
|
|
virtual void RunFwdTxfm(int16_t *in, int16_t *out, int stride) = 0;
|
|
|
|
virtual void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) = 0;
|
2013-06-21 20:45:47 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
void RunSignBiasCheck() {
|
|
|
|
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
|
|
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 64);
|
|
|
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_output_block, 64);
|
|
|
|
int count_sign_block[64][2];
|
|
|
|
const int count_test_block = 100000;
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
memset(count_sign_block, 0, sizeof(count_sign_block));
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
for (int i = 0; i < count_test_block; ++i) {
|
|
|
|
// Initialize a test block with input range [-255, 255].
|
|
|
|
for (int j = 0; j < 64; ++j)
|
|
|
|
test_input_block[j] = rnd.Rand8() - rnd.Rand8();
|
2014-07-10 06:02:02 +02:00
|
|
|
ASM_REGISTER_STATE_CHECK(
|
2013-09-17 01:01:50 +02:00
|
|
|
RunFwdTxfm(test_input_block, test_output_block, pitch_));
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
for (int j = 0; j < 64; ++j) {
|
|
|
|
if (test_output_block[j] < 0)
|
|
|
|
++count_sign_block[j][0];
|
|
|
|
else if (test_output_block[j] > 0)
|
|
|
|
++count_sign_block[j][1];
|
|
|
|
}
|
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
|
|
|
|
for (int j = 0; j < 64; ++j) {
|
2013-09-17 01:01:50 +02:00
|
|
|
const int diff = abs(count_sign_block[j][0] - count_sign_block[j][1]);
|
|
|
|
const int max_diff = 1125;
|
|
|
|
EXPECT_LT(diff, max_diff)
|
|
|
|
<< "Error: 8x8 FDCT/FHT has a sign bias > "
|
|
|
|
<< 1. * max_diff / count_test_block * 100 << "%"
|
|
|
|
<< " for input range [-255, 255] at index " << j
|
|
|
|
<< " count0: " << count_sign_block[j][0]
|
|
|
|
<< " count1: " << count_sign_block[j][1]
|
|
|
|
<< " diff: " << diff;
|
2012-06-29 01:26:31 +02:00
|
|
|
}
|
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
memset(count_sign_block, 0, sizeof(count_sign_block));
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
for (int i = 0; i < count_test_block; ++i) {
|
|
|
|
// Initialize a test block with input range [-15, 15].
|
|
|
|
for (int j = 0; j < 64; ++j)
|
|
|
|
test_input_block[j] = (rnd.Rand8() >> 4) - (rnd.Rand8() >> 4);
|
2014-07-10 06:02:02 +02:00
|
|
|
ASM_REGISTER_STATE_CHECK(
|
2013-09-17 01:01:50 +02:00
|
|
|
RunFwdTxfm(test_input_block, test_output_block, pitch_));
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
for (int j = 0; j < 64; ++j) {
|
|
|
|
if (test_output_block[j] < 0)
|
|
|
|
++count_sign_block[j][0];
|
|
|
|
else if (test_output_block[j] > 0)
|
|
|
|
++count_sign_block[j][1];
|
|
|
|
}
|
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
|
|
|
|
for (int j = 0; j < 64; ++j) {
|
2013-09-17 01:01:50 +02:00
|
|
|
const int diff = abs(count_sign_block[j][0] - count_sign_block[j][1]);
|
|
|
|
const int max_diff = 10000;
|
|
|
|
EXPECT_LT(diff, max_diff)
|
|
|
|
<< "Error: 4x4 FDCT/FHT has a sign bias > "
|
|
|
|
<< 1. * max_diff / count_test_block * 100 << "%"
|
|
|
|
<< " for input range [-15, 15] at index " << j
|
|
|
|
<< " count0: " << count_sign_block[j][0]
|
|
|
|
<< " count1: " << count_sign_block[j][1]
|
|
|
|
<< " diff: " << diff;
|
2012-06-29 01:26:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
void RunRoundTripErrorCheck() {
|
|
|
|
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
|
|
|
int max_error = 0;
|
|
|
|
int total_error = 0;
|
|
|
|
const int count_test_block = 100000;
|
2013-06-26 20:59:46 +02:00
|
|
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 64);
|
|
|
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_temp_block, 64);
|
|
|
|
DECLARE_ALIGNED_ARRAY(16, uint8_t, dst, 64);
|
|
|
|
DECLARE_ALIGNED_ARRAY(16, uint8_t, src, 64);
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
for (int i = 0; i < count_test_block; ++i) {
|
|
|
|
// Initialize a test block with input range [-255, 255].
|
|
|
|
for (int j = 0; j < 64; ++j) {
|
|
|
|
src[j] = rnd.Rand8();
|
|
|
|
dst[j] = rnd.Rand8();
|
|
|
|
test_input_block[j] = src[j] - dst[j];
|
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2014-07-10 06:02:02 +02:00
|
|
|
ASM_REGISTER_STATE_CHECK(
|
2013-09-17 01:01:50 +02:00
|
|
|
RunFwdTxfm(test_input_block, test_temp_block, pitch_));
|
|
|
|
for (int j = 0; j < 64; ++j) {
|
|
|
|
if (test_temp_block[j] > 0) {
|
|
|
|
test_temp_block[j] += 2;
|
|
|
|
test_temp_block[j] /= 4;
|
|
|
|
test_temp_block[j] *= 4;
|
|
|
|
} else {
|
|
|
|
test_temp_block[j] -= 2;
|
|
|
|
test_temp_block[j] /= 4;
|
|
|
|
test_temp_block[j] *= 4;
|
|
|
|
}
|
|
|
|
}
|
2014-07-10 06:02:02 +02:00
|
|
|
ASM_REGISTER_STATE_CHECK(
|
2013-09-17 01:01:50 +02:00
|
|
|
RunInvTxfm(test_temp_block, dst, pitch_));
|
|
|
|
|
|
|
|
for (int j = 0; j < 64; ++j) {
|
|
|
|
const int diff = dst[j] - src[j];
|
|
|
|
const int error = diff * diff;
|
|
|
|
if (max_error < error)
|
|
|
|
max_error = error;
|
|
|
|
total_error += error;
|
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
}
|
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
EXPECT_GE(1, max_error)
|
|
|
|
<< "Error: 8x8 FDCT/IDCT or FHT/IHT has an individual"
|
|
|
|
<< " roundtrip error > 1";
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
EXPECT_GE(count_test_block/5, total_error)
|
|
|
|
<< "Error: 8x8 FDCT/IDCT or FHT/IHT has average roundtrip "
|
|
|
|
<< "error > 1/5 per block";
|
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
void RunExtremalCheck() {
|
|
|
|
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
|
|
|
int max_error = 0;
|
|
|
|
int total_error = 0;
|
2014-06-03 01:40:01 +02:00
|
|
|
int total_coeff_error = 0;
|
2013-09-17 01:01:50 +02:00
|
|
|
const int count_test_block = 100000;
|
2013-06-26 20:59:46 +02:00
|
|
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 64);
|
|
|
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_temp_block, 64);
|
2014-06-03 01:40:01 +02:00
|
|
|
DECLARE_ALIGNED_ARRAY(16, int16_t, ref_temp_block, 64);
|
2013-06-26 20:59:46 +02:00
|
|
|
DECLARE_ALIGNED_ARRAY(16, uint8_t, dst, 64);
|
|
|
|
DECLARE_ALIGNED_ARRAY(16, uint8_t, src, 64);
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
for (int i = 0; i < count_test_block; ++i) {
|
|
|
|
// Initialize a test block with input range [-255, 255].
|
|
|
|
for (int j = 0; j < 64; ++j) {
|
2014-06-03 01:40:01 +02:00
|
|
|
if (i == 0) {
|
|
|
|
src[j] = 255;
|
|
|
|
dst[j] = 0;
|
|
|
|
} else if (i == 1) {
|
|
|
|
src[j] = 0;
|
|
|
|
dst[j] = 255;
|
2014-06-04 01:45:22 +02:00
|
|
|
} else {
|
|
|
|
src[j] = rnd.Rand8() % 2 ? 255 : 0;
|
|
|
|
dst[j] = rnd.Rand8() % 2 ? 255 : 0;
|
2014-06-03 01:40:01 +02:00
|
|
|
}
|
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
test_input_block[j] = src[j] - dst[j];
|
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2014-07-10 06:02:02 +02:00
|
|
|
ASM_REGISTER_STATE_CHECK(
|
2013-09-17 01:01:50 +02:00
|
|
|
RunFwdTxfm(test_input_block, test_temp_block, pitch_));
|
2014-07-10 06:02:02 +02:00
|
|
|
ASM_REGISTER_STATE_CHECK(
|
2014-06-03 01:40:01 +02:00
|
|
|
fwd_txfm_ref(test_input_block, ref_temp_block, pitch_, tx_type_));
|
2014-07-10 06:02:02 +02:00
|
|
|
ASM_REGISTER_STATE_CHECK(
|
2013-09-17 01:01:50 +02:00
|
|
|
RunInvTxfm(test_temp_block, dst, pitch_));
|
|
|
|
|
|
|
|
for (int j = 0; j < 64; ++j) {
|
|
|
|
const int diff = dst[j] - src[j];
|
|
|
|
const int error = diff * diff;
|
|
|
|
if (max_error < error)
|
|
|
|
max_error = error;
|
|
|
|
total_error += error;
|
2014-06-03 01:40:01 +02:00
|
|
|
|
|
|
|
const int coeff_diff = test_temp_block[j] - ref_temp_block[j];
|
|
|
|
total_coeff_error += abs(coeff_diff);
|
2013-09-17 01:01:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
EXPECT_GE(1, max_error)
|
|
|
|
<< "Error: Extremal 8x8 FDCT/IDCT or FHT/IHT has"
|
|
|
|
<< "an individual roundtrip error > 1";
|
|
|
|
|
|
|
|
EXPECT_GE(count_test_block/5, total_error)
|
|
|
|
<< "Error: Extremal 8x8 FDCT/IDCT or FHT/IHT has average"
|
|
|
|
<< " roundtrip error > 1/5 per block";
|
2014-06-03 01:40:01 +02:00
|
|
|
|
|
|
|
EXPECT_EQ(0, total_coeff_error)
|
|
|
|
<< "Error: Extremal 8x8 FDCT/FHT has"
|
|
|
|
<< "overflow issues in the intermediate steps > 1";
|
2012-06-29 01:26:31 +02:00
|
|
|
}
|
2013-09-17 01:01:50 +02:00
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
int pitch_;
|
|
|
|
int tx_type_;
|
2014-07-17 03:56:22 +02:00
|
|
|
FhtFunc fwd_txfm_ref;
|
2013-09-17 01:01:50 +02:00
|
|
|
};
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-11-19 02:07:55 +01:00
|
|
|
class FwdTrans8x8DCT
|
|
|
|
: public FwdTrans8x8TestBase,
|
2014-07-17 03:56:22 +02:00
|
|
|
public ::testing::TestWithParam<Dct8x8Param> {
|
2013-09-17 01:01:50 +02:00
|
|
|
public:
|
|
|
|
virtual ~FwdTrans8x8DCT() {}
|
|
|
|
|
|
|
|
virtual void SetUp() {
|
|
|
|
fwd_txfm_ = GET_PARAM(0);
|
|
|
|
inv_txfm_ = GET_PARAM(1);
|
|
|
|
tx_type_ = GET_PARAM(2);
|
2013-10-18 21:20:26 +02:00
|
|
|
pitch_ = 8;
|
2013-09-17 01:01:50 +02:00
|
|
|
fwd_txfm_ref = fdct8x8_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void TearDown() { libvpx_test::ClearSystemState(); }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void RunFwdTxfm(int16_t *in, int16_t *out, int stride) {
|
|
|
|
fwd_txfm_(in, out, stride);
|
|
|
|
}
|
|
|
|
void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) {
|
2013-10-18 21:20:26 +02:00
|
|
|
inv_txfm_(out, dst, stride);
|
2012-06-29 01:26:31 +02:00
|
|
|
}
|
2013-09-17 01:01:50 +02:00
|
|
|
|
2014-07-17 03:56:22 +02:00
|
|
|
FdctFunc fwd_txfm_;
|
|
|
|
IdctFunc inv_txfm_;
|
2013-09-17 01:01:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
TEST_P(FwdTrans8x8DCT, SignBiasCheck) {
|
|
|
|
RunSignBiasCheck();
|
2013-06-21 20:45:47 +02:00
|
|
|
}
|
2012-06-29 01:26:31 +02:00
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
TEST_P(FwdTrans8x8DCT, RoundTripErrorCheck) {
|
|
|
|
RunRoundTripErrorCheck();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_P(FwdTrans8x8DCT, ExtremalCheck) {
|
|
|
|
RunExtremalCheck();
|
|
|
|
}
|
|
|
|
|
2013-11-19 02:07:55 +01:00
|
|
|
class FwdTrans8x8HT
|
|
|
|
: public FwdTrans8x8TestBase,
|
2014-07-17 03:56:22 +02:00
|
|
|
public ::testing::TestWithParam<Ht8x8Param> {
|
2013-09-17 01:01:50 +02:00
|
|
|
public:
|
|
|
|
virtual ~FwdTrans8x8HT() {}
|
|
|
|
|
|
|
|
virtual void SetUp() {
|
|
|
|
fwd_txfm_ = GET_PARAM(0);
|
|
|
|
inv_txfm_ = GET_PARAM(1);
|
|
|
|
tx_type_ = GET_PARAM(2);
|
|
|
|
pitch_ = 8;
|
|
|
|
fwd_txfm_ref = fht8x8_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void TearDown() { libvpx_test::ClearSystemState(); }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void RunFwdTxfm(int16_t *in, int16_t *out, int stride) {
|
|
|
|
fwd_txfm_(in, out, stride, tx_type_);
|
|
|
|
}
|
|
|
|
void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) {
|
|
|
|
inv_txfm_(out, dst, stride, tx_type_);
|
|
|
|
}
|
|
|
|
|
2014-07-17 03:56:22 +02:00
|
|
|
FhtFunc fwd_txfm_;
|
|
|
|
IhtFunc inv_txfm_;
|
2013-09-17 01:01:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
TEST_P(FwdTrans8x8HT, SignBiasCheck) {
|
|
|
|
RunSignBiasCheck();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_P(FwdTrans8x8HT, RoundTripErrorCheck) {
|
|
|
|
RunRoundTripErrorCheck();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_P(FwdTrans8x8HT, ExtremalCheck) {
|
|
|
|
RunExtremalCheck();
|
|
|
|
}
|
|
|
|
|
|
|
|
using std::tr1::make_tuple;
|
|
|
|
|
|
|
|
INSTANTIATE_TEST_CASE_P(
|
|
|
|
C, FwdTrans8x8DCT,
|
|
|
|
::testing::Values(
|
2013-10-23 19:52:33 +02:00
|
|
|
make_tuple(&vp9_fdct8x8_c, &vp9_idct8x8_64_add_c, 0)));
|
2013-09-17 01:01:50 +02:00
|
|
|
INSTANTIATE_TEST_CASE_P(
|
|
|
|
C, FwdTrans8x8HT,
|
|
|
|
::testing::Values(
|
2014-02-06 20:54:15 +01:00
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 0),
|
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 1),
|
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 2),
|
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 3)));
|
2013-09-17 01:01:50 +02:00
|
|
|
|
2014-05-07 20:01:31 +02:00
|
|
|
#if HAVE_NEON_ASM
|
2014-02-26 08:11:49 +01:00
|
|
|
INSTANTIATE_TEST_CASE_P(
|
|
|
|
NEON, FwdTrans8x8DCT,
|
|
|
|
::testing::Values(
|
2014-07-29 00:21:10 +02:00
|
|
|
make_tuple(&vp9_fdct8x8_neon, &vp9_idct8x8_64_add_neon, 0)));
|
2014-02-26 08:11:49 +01:00
|
|
|
INSTANTIATE_TEST_CASE_P(
|
|
|
|
DISABLED_NEON, FwdTrans8x8HT,
|
|
|
|
::testing::Values(
|
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_neon, 0),
|
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_neon, 1),
|
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_neon, 2),
|
|
|
|
make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_neon, 3)));
|
|
|
|
#endif
|
|
|
|
|
2013-09-17 01:01:50 +02:00
|
|
|
#if HAVE_SSE2
|
|
|
|
INSTANTIATE_TEST_CASE_P(
|
|
|
|
SSE2, FwdTrans8x8DCT,
|
|
|
|
::testing::Values(
|
2013-10-23 19:52:33 +02:00
|
|
|
make_tuple(&vp9_fdct8x8_sse2, &vp9_idct8x8_64_add_sse2, 0)));
|
2013-09-17 01:01:50 +02:00
|
|
|
INSTANTIATE_TEST_CASE_P(
|
|
|
|
SSE2, FwdTrans8x8HT,
|
|
|
|
::testing::Values(
|
2014-02-06 20:54:15 +01:00
|
|
|
make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 0),
|
|
|
|
make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 1),
|
|
|
|
make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 2),
|
|
|
|
make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 3)));
|
2013-09-17 01:01:50 +02:00
|
|
|
#endif
|
2014-05-08 18:56:38 +02:00
|
|
|
|
|
|
|
#if HAVE_SSSE3 && ARCH_X86_64
|
|
|
|
INSTANTIATE_TEST_CASE_P(
|
2014-06-04 01:45:22 +02:00
|
|
|
SSSE3, FwdTrans8x8DCT,
|
2014-05-08 18:56:38 +02:00
|
|
|
::testing::Values(
|
|
|
|
make_tuple(&vp9_fdct8x8_ssse3, &vp9_idct8x8_64_add_ssse3, 0)));
|
|
|
|
#endif
|
2012-06-29 01:26:31 +02:00
|
|
|
} // namespace
|