Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
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
1f40e221
Commit
1f40e221
authored
Mar 08, 2017
by
Sebastien Alaiwan
Committed by
sebastien alaiwan
Mar 14, 2017
Browse files
Reduce scope of local variable
Change-Id: Ib87563cc84812137070534b76f18305c243e2fad
parent
7889e5fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/av1_inv_txfm1d_test.cc
View file @
1f40e221
...
...
@@ -50,11 +50,6 @@ TEST(av1_inv_txfm1d, round_trip) {
ACMRandom
rnd
(
ACMRandom
::
DeterministicSeed
());
for
(
int
si
=
0
;
si
<
ARRAY_SIZE
(
fwd_txfm_func_ls
);
++
si
)
{
int
txfm_size
=
txfm_size_ls
[
si
];
int32_t
input
[
64
];
int32_t
output
[
64
];
int32_t
round_trip_output
[
64
];
assert
(
txfm_size
<=
ARRAY_SIZE
(
input
));
for
(
int
ti
=
0
;
ti
<
txfm_type_num
;
++
ti
)
{
TxfmFunc
fwd_txfm_func
=
fwd_txfm_func_ls
[
si
][
ti
];
...
...
@@ -65,6 +60,12 @@ TEST(av1_inv_txfm1d, round_trip) {
const
int
count_test_block
=
5000
;
for
(
int
ci
=
0
;
ci
<
count_test_block
;
++
ci
)
{
int32_t
input
[
64
];
int32_t
output
[
64
];
int32_t
round_trip_output
[
64
];
assert
(
txfm_size
<=
ARRAY_SIZE
(
input
));
for
(
int
ni
=
0
;
ni
<
txfm_size
;
++
ni
)
{
input
[
ni
]
=
rnd
.
Rand16
()
%
input_base
-
rnd
.
Rand16
()
%
input_base
;
}
...
...
Write
Preview
Supports
Markdown
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