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

Side by Side Diff: third_party/opus/src/celt/tests/test_unit_rotation.c

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « third_party/opus/src/celt/tests/test_unit_mdct.c ('k') | third_party/opus/src/celt/vq.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2008-2011 Xiph.Org Foundation 1 /* Copyright (c) 2008-2011 Xiph.Org Foundation
2 Written by Jean-Marc Valin */ 2 Written by Jean-Marc Valin */
3 /* 3 /*
4 Redistribution and use in source and binary forms, with or without 4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions 5 modification, are permitted provided that the following conditions
6 are met: 6 are met:
7 7
8 - Redistributions of source code must retain the above copyright 8 - Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer. 9 notice, this list of conditions and the following disclaimer.
10 10
(...skipping 19 matching lines...) Expand all
30 #endif 30 #endif
31 31
32 #ifndef CUSTOM_MODES 32 #ifndef CUSTOM_MODES
33 #define CUSTOM_MODES 33 #define CUSTOM_MODES
34 #endif 34 #endif
35 35
36 #define CELT_C 36 #define CELT_C
37 37
38 #include <stdio.h> 38 #include <stdio.h>
39 #include <stdlib.h> 39 #include <stdlib.h>
40 #include "vq.c" 40 #include "vq.h"
41 #include "cwrs.c"
42 #include "entcode.c"
43 #include "entenc.c"
44 #include "entdec.c"
45 #include "mathops.c"
46 #include "bands.h" 41 #include "bands.h"
47 #include "pitch.c" 42 #include "stack_alloc.h"
48 #include "celt_lpc.c"
49 #include "celt.c"
50 #include <math.h> 43 #include <math.h>
51 44
52 #if defined(OPUS_X86_MAY_HAVE_SSE) || defined(OPUS_X86_MAY_HAVE_SSE2) || defined (OPUS_X86_MAY_HAVE_SSE4_1)
53 # if defined(OPUS_X86_MAY_HAVE_SSE)
54 # include "x86/pitch_sse.c"
55 # endif
56 # if defined(OPUS_X86_MAY_HAVE_SSE2)
57 # include "x86/pitch_sse2.c"
58 # endif
59 # if defined(OPUS_X86_MAY_HAVE_SSE4_1)
60 # include "x86/pitch_sse4_1.c"
61 # include "x86/celt_lpc_sse.c"
62 # endif
63 # include "x86/x86_celt_map.c"
64 #elif defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR)
65 # include "arm/armcpu.c"
66 # if defined(OPUS_ARM_MAY_HAVE_NEON_INTR)
67 # include "arm/celt_neon_intr.c"
68 # if defined(HAVE_ARM_NE10)
69 # include "kiss_fft.c"
70 # include "mdct.c"
71 # include "arm/celt_ne10_fft.c"
72 # include "arm/celt_ne10_mdct.c"
73 # endif
74 # endif
75 # include "arm/arm_celt_map.c"
76 #endif
77 45
78 #define MAX_SIZE 100 46 #define MAX_SIZE 100
79 47
80 int ret=0; 48 int ret=0;
81 void test_rotation(int N, int K) 49 void test_rotation(int N, int K)
82 { 50 {
83 int i; 51 int i;
84 double err = 0, ener = 0, snr, snr0; 52 double err = 0, ener = 0, snr, snr0;
85 opus_val16 x0[MAX_SIZE]; 53 opus_val16 x0[MAX_SIZE];
86 opus_val16 x1[MAX_SIZE]; 54 opus_val16 x1[MAX_SIZE];
(...skipping 24 matching lines...) Expand all
111 79
112 int main(void) 80 int main(void)
113 { 81 {
114 ALLOC_STACK; 82 ALLOC_STACK;
115 test_rotation(15, 3); 83 test_rotation(15, 3);
116 test_rotation(23, 5); 84 test_rotation(23, 5);
117 test_rotation(50, 3); 85 test_rotation(50, 3);
118 test_rotation(80, 1); 86 test_rotation(80, 1);
119 return ret; 87 return ret;
120 } 88 }
OLDNEW
« no previous file with comments | « third_party/opus/src/celt/tests/test_unit_mdct.c ('k') | third_party/opus/src/celt/vq.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698