OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 /****************************************************************** | 11 /****************************************************************** |
12 | 12 |
13 iLBC Speech Coder ANSI-C Source Code | 13 iLBC Speech Coder ANSI-C Source Code |
14 | 14 |
15 iLBC_test.c | 15 iLBC_test.c |
16 | 16 |
17 ******************************************************************/ | 17 ******************************************************************/ |
18 | 18 |
19 #include <math.h> | 19 #include <math.h> |
20 #include <stdlib.h> | 20 #include <stdlib.h> |
21 #include <stdio.h> | 21 #include <stdio.h> |
22 #include <string.h> | 22 #include <string.h> |
23 | 23 |
24 #include "defines.h" | 24 #include "webrtc/modules/audio_coding/codecs/ilbc/defines.h" |
25 #include "nit_encode.h" | 25 #include "webrtc/modules/audio_coding/codecs/ilbc/nit_encode.h" |
26 #include "encode.h" | 26 #include "webrtc/modules/audio_coding/codecs/ilbc/encode.h" |
27 #include "init_decode.h" | 27 #include "webrtc/modules/audio_coding/codecs/ilbc/init_decode.h" |
28 #include "decode.h" | 28 #include "webrtc/modules/audio_coding/codecs/ilbc/decode.h" |
29 #include "constants.h" | 29 #include "webrtc/modules/audio_coding/codecs/ilbc/constants.h" |
30 #include "ilbc.h" | 30 #include "webrtc/modules/audio_coding/codecs/ilbc/ilbc.h" |
31 | 31 |
32 #define ILBCNOOFWORDS_MAX (NO_OF_BYTES_30MS)/2 | 32 #define ILBCNOOFWORDS_MAX (NO_OF_BYTES_30MS)/2 |
33 | 33 |
34 /* Runtime statistics */ | 34 /* Runtime statistics */ |
35 #include <time.h> | 35 #include <time.h> |
36 /* #define CLOCKS_PER_SEC 1000 */ | 36 /* #define CLOCKS_PER_SEC 1000 */ |
37 | 37 |
38 /*----------------------------------------------------------------* | 38 /*----------------------------------------------------------------* |
39 * Encoder interface function | 39 * Encoder interface function |
40 *---------------------------------------------------------------*/ | 40 *---------------------------------------------------------------*/ |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 /* return memory and close files */ | 335 /* return memory and close files */ |
336 | 336 |
337 free(inputdata); | 337 free(inputdata); |
338 free(encodeddata); | 338 free(encodeddata); |
339 free(decodeddata); | 339 free(decodeddata); |
340 free(channeldata); | 340 free(channeldata); |
341 fclose(ifileid); fclose(efileid); fclose(ofileid); | 341 fclose(ifileid); fclose(efileid); fclose(ofileid); |
342 return(0); | 342 return(0); |
343 } | 343 } |
OLD | NEW |