| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include <stdio.h> | 11 #include <stdio.h> |
| 12 #include <stdlib.h> | 12 #include <stdlib.h> |
| 13 #include <string.h> | 13 #include <string.h> |
| 14 #include <time.h> | 14 #include <time.h> |
| 15 #include <ctype.h> | 15 #include <ctype.h> |
| 16 | 16 |
| 17 #include "webrtc/modules/audio_coding/codecs/isac/fix/interface/isacfix.h" | 17 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/isacfix.h" |
| 18 #include "webrtc/test/testsupport/perf_test.h" | 18 #include "webrtc/test/testsupport/perf_test.h" |
| 19 | 19 |
| 20 // TODO(kma): Clean up the code and change benchmarking the whole codec to | 20 // TODO(kma): Clean up the code and change benchmarking the whole codec to |
| 21 // separate encoder and decoder. | 21 // separate encoder and decoder. |
| 22 | 22 |
| 23 /* Defines */ | 23 /* Defines */ |
| 24 #define SEED_FILE "randseed.txt" /* Used when running decoder on garbage data *
/ | 24 #define SEED_FILE "randseed.txt" /* Used when running decoder on garbage data *
/ |
| 25 #define MAX_FRAMESAMPLES 960 /* max number of samples per frame (= 60 ms fr
ame) */ | 25 #define MAX_FRAMESAMPLES 960 /* max number of samples per frame (= 60 ms fr
ame) */ |
| 26 #define FRAMESAMPLES_10ms 160 /* number of samples per 10ms frame */ | 26 #define FRAMESAMPLES_10ms 160 /* number of samples per 10ms frame */ |
| 27 #define FS 16000 /* sampling frequency (Hz) */ | 27 #define FS 16000 /* sampling frequency (Hz) */ |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 fclose(inp); | 826 fclose(inp); |
| 827 fclose(outp); | 827 fclose(outp); |
| 828 fclose(outbits); | 828 fclose(outbits); |
| 829 | 829 |
| 830 if ( testCE == 1) { | 830 if ( testCE == 1) { |
| 831 WebRtcIsacfix_FreeInternal(ISAC_main_inst); | 831 WebRtcIsacfix_FreeInternal(ISAC_main_inst); |
| 832 } | 832 } |
| 833 WebRtcIsacfix_Free(ISAC_main_inst); | 833 WebRtcIsacfix_Free(ISAC_main_inst); |
| 834 return 0; | 834 return 0; |
| 835 } | 835 } |
| OLD | NEW |