Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
218dfbd5
Commit
218dfbd5
authored
Apr 19, 2016
by
Angie Chiang
Browse files
Change the naming of txfm#d_test
Change-Id: I151b18b38f7a000fb6e431cd42675ac4e7e9e3ca
parent
ab759be8
Changes
6
Hide whitespace changes
Inline
Side-by-side
test/vp10_fwd_txfm1d_test.cc
View file @
218dfbd5
...
...
@@ -12,7 +12,7 @@
#include "test/vp10_txfm_test.h"
using
libvpx_test
::
ACMRandom
;
using
libvpx_test
::
base
;
using
libvpx_test
::
input_
base
;
using
libvpx_test
::
reference_hybrid_1d
;
using
libvpx_test
::
TYPE_TXFM
;
using
libvpx_test
::
TYPE_DCT
;
...
...
@@ -103,7 +103,7 @@ TEST(vp10_fwd_txfm1d, accuracy) {
if
(
fwd_txfm_func
!=
NULL
)
{
for
(
int
ti
=
0
;
ti
<
count_test_block
;
++
ti
)
{
for
(
int
ni
=
0
;
ni
<
txfm_size
;
++
ni
)
{
input
[
ni
]
=
rnd
.
Rand16
()
%
base
-
rnd
.
Rand16
()
%
base
;
input
[
ni
]
=
rnd
.
Rand16
()
%
input_
base
-
rnd
.
Rand16
()
%
input_
base
;
ref_input
[
ni
]
=
static_cast
<
double
>
(
input
[
ni
]);
}
...
...
test/vp10_fwd_txfm2d_sse4_test.cc
View file @
218dfbd5
...
...
@@ -9,7 +9,7 @@
using
libvpx_test
::
ACMRandom
;
using
libvpx_test
::
Fwd_Txfm2d_Func
;
using
libvpx_test
::
base
;
using
libvpx_test
::
input_
base
;
using
libvpx_test
::
bd
;
namespace
{
...
...
@@ -57,7 +57,7 @@ TEST(vp10_fwd_txfm2d_sse4_1, accuracy) {
// init input
for
(
int
r
=
0
;
r
<
txfm_size
;
r
++
)
{
for
(
int
c
=
0
;
c
<
txfm_size
;
c
++
)
{
input
[
r
*
txfm_size
+
c
]
=
rnd
.
Rand16
()
%
base
;
input
[
r
*
txfm_size
+
c
]
=
rnd
.
Rand16
()
%
input_
base
;
}
}
...
...
test/vp10_fwd_txfm2d_test.cc
View file @
218dfbd5
...
...
@@ -18,7 +18,7 @@
#include "./vp10_rtcd.h"
using
libvpx_test
::
ACMRandom
;
using
libvpx_test
::
base
;
using
libvpx_test
::
input_
base
;
using
libvpx_test
::
bd
;
using
libvpx_test
::
compute_avg_abs_error
;
using
libvpx_test
::
Fwd_Txfm2d_Func
;
...
...
@@ -77,7 +77,7 @@ TEST(vp10_fwd_txfm2d, accuracy) {
double
avg_abs_error
=
0
;
for
(
int
ci
=
0
;
ci
<
count
;
ci
++
)
{
for
(
int
ni
=
0
;
ni
<
sqr_txfm_size
;
++
ni
)
{
input
[
ni
]
=
rnd
.
Rand16
()
%
base
;
input
[
ni
]
=
rnd
.
Rand16
()
%
input_
base
;
ref_input
[
ni
]
=
static_cast
<
double
>
(
input
[
ni
]);
output
[
ni
]
=
0
;
ref_output
[
ni
]
=
0
;
...
...
test/vp10_inv_txfm1d_test.cc
View file @
218dfbd5
...
...
@@ -13,7 +13,7 @@
#include "vp10/common/vp10_inv_txfm1d.h"
using
libvpx_test
::
ACMRandom
;
using
libvpx_test
::
base
;
using
libvpx_test
::
input_
base
;
namespace
{
const
int
txfm_type_num
=
2
;
...
...
@@ -53,7 +53,7 @@ TEST(vp10_inv_txfm1d, round_trip) {
const
int
count_test_block
=
5000
;
for
(
int
ci
=
0
;
ci
<
count_test_block
;
++
ci
)
{
for
(
int
ni
=
0
;
ni
<
txfm_size
;
++
ni
)
{
input
[
ni
]
=
rnd
.
Rand16
()
%
base
-
rnd
.
Rand16
()
%
base
;
input
[
ni
]
=
rnd
.
Rand16
()
%
input_
base
-
rnd
.
Rand16
()
%
input_
base
;
}
fwd_txfm_func
(
input
,
output
,
cos_bit
,
range_bit
);
...
...
test/vp10_inv_txfm2d_test.cc
View file @
218dfbd5
...
...
@@ -19,7 +19,7 @@
#include "vp10/common/vp10_inv_txfm2d_cfg.h"
using
libvpx_test
::
ACMRandom
;
using
libvpx_test
::
base
;
using
libvpx_test
::
input_
base
;
using
libvpx_test
::
bd
;
using
libvpx_test
::
compute_avg_abs_error
;
using
libvpx_test
::
Fwd_Txfm2d_Func
;
...
...
@@ -85,11 +85,11 @@ TEST(vp10_inv_txfm2d, round_trip) {
for
(
int
ci
=
0
;
ci
<
count
;
ci
++
)
{
for
(
int
ni
=
0
;
ni
<
sqr_txfm_size
;
++
ni
)
{
if
(
ci
==
0
)
{
int
extreme_input
=
base
-
1
;
int
extreme_input
=
input_
base
-
1
;
input
[
ni
]
=
extreme_input
;
// extreme case
ref_input
[
ni
]
=
0
;
}
else
{
input
[
ni
]
=
rnd
.
Rand16
()
%
base
;
input
[
ni
]
=
rnd
.
Rand16
()
%
input_
base
;
ref_input
[
ni
]
=
0
;
}
}
...
...
test/vp10_txfm_test.h
View file @
218dfbd5
...
...
@@ -109,6 +109,6 @@ typedef void (*Inv_Txfm2d_Func)(const int32_t*, uint16_t*, const int,
const
TXFM_2D_CFG
*
,
const
int
);
static
const
int
bd
=
10
;
static
const
int
base
=
(
1
<<
bd
);
static
const
int
input_
base
=
(
1
<<
bd
);
}
// namespace libvpx_test
#endif // VP10_TXFM_TEST_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment