Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: celt/tests/test_unit_mdct.c

Issue 28553003: Updating Opus to a pre-release of 1.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Removing failing file Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « celt/tests/test_unit_mathops.c ('k') | celt/vq.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: celt/tests/test_unit_mdct.c
diff --git a/celt/tests/test_unit_mdct.c b/celt/tests/test_unit_mdct.c
index f8fb9acdbd9f8bfca5f95ebc29aa369c847d8dbb..ac8957fd3e33a3692277f4d5218eb3ad3742f73f 100644
--- a/celt/tests/test_unit_mdct.c
+++ b/celt/tests/test_unit_mdct.c
@@ -151,6 +151,9 @@ void test1d(int nfft,int isinverse)
for (k=0;k<nfft;++k)
out[k] = 0;
clt_mdct_backward(&cfg,in,out, window, nfft/2, 0, 1);
+ /* apply TDAC because clt_mdct_backward() no longer does that */
+ for (k=0;k<nfft/4;++k)
+ out[nfft-k-1] = out[nfft/2+k];
check_inv(in,out,nfft,isinverse);
} else {
clt_mdct_forward(&cfg,in,out,window, nfft/2, 0, 1);
@@ -180,15 +183,27 @@ int main(int argc,char ** argv)
test1d(256,1);
test1d(512,0);
test1d(512,1);
+ test1d(1024,0);
+ test1d(1024,1);
+ test1d(2048,0);
+ test1d(2048,1);
#ifndef RADIX_TWO_ONLY
+ test1d(36,0);
+ test1d(36,1);
test1d(40,0);
test1d(40,1);
+ test1d(60,0);
+ test1d(60,1);
test1d(120,0);
test1d(120,1);
test1d(240,0);
test1d(240,1);
test1d(480,0);
test1d(480,1);
+ test1d(960,0);
+ test1d(960,1);
+ test1d(1920,0);
+ test1d(1920,1);
#endif
}
return ret;
« no previous file with comments | « celt/tests/test_unit_mathops.c ('k') | celt/vq.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698