Commit ef8fd2d1 authored by Sebastien Alaiwan's avatar Sebastien Alaiwan

Reduce scope of locals

Change-Id: I46fe14a799254b9430ef178d1450bb170496a724
parent 612eb2e2
......@@ -39,20 +39,20 @@ class TransTestBase {
protected:
void RunInvAccuracyCheck() {
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;
for (int ti = 0; ti < count_test_block; ++ti) {
tran_low_t input[64];
double ref_input[64];
for (int ni = 0; ni < txfm_size_; ++ni) {
input[ni] = rnd.Rand8() - rnd.Rand8();
ref_input[ni] = static_cast<double>(input[ni]);
}
tran_low_t output[64];
inv_txfm_(input, output);
double ref_output[64];
libaom_test::reference_idct_1d(ref_input, ref_output, txfm_size_);
for (int ni = 0; ni < txfm_size_; ++ni) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment