Skip to content
GitLab
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
fef2fa72
Commit
fef2fa72
authored
Jul 10, 2017
by
Sebastien Alaiwan
Browse files
tx tests: avoid dynamic memory allocation
Change-Id: I6534f21631b0f5cf66034c4ced9ef2db408b996c
parent
bc2e01c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/av1_inv_txfm_test.cc
View file @
fef2fa72
...
...
@@ -52,10 +52,10 @@ class TransTestBase {
protected:
void
RunInvAccuracyCheck
()
{
tran_low_t
*
input
=
new
tran_low_t
[
txfm_size_
];
tran_low_t
*
output
=
new
tran_low_t
[
txfm_size_
];
double
*
ref_input
=
new
double
[
txfm_size_
];
double
*
ref_output
=
new
double
[
txfm_size_
];
tran_low_t
input
[
64
];
tran_low_t
output
[
64
];
double
ref_input
[
64
];
double
ref_output
[
64
];
ACMRandom
rnd
(
ACMRandom
::
DeterministicSeed
());
const
int
count_test_block
=
5000
;
...
...
@@ -74,11 +74,6 @@ class TransTestBase {
max_error_
);
}
}
delete
[]
input
;
delete
[]
output
;
delete
[]
ref_input
;
delete
[]
ref_output
;
}
double
max_error_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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