| 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 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 int main(int argc, char* argv[]) { | 81 int main(int argc, char* argv[]) { |
| 82 char inname[50], outname[50], bottleneck_file[50], bitfilename[60], | 82 char inname[50], outname[50], bottleneck_file[50], bitfilename[60], |
| 83 bitending[10] = "_bits.pcm"; | 83 bitending[10] = "_bits.pcm"; |
| 84 FILE* inp, *outp, *f_bn, *bitsp; | 84 FILE* inp, *outp, *f_bn, *bitsp; |
| 85 int framecnt, endfile; | 85 int framecnt, endfile; |
| 86 | 86 |
| 87 int i, j, errtype, plc = 0; | 87 int i, j, errtype, plc = 0; |
| 88 int16_t CodingMode; | 88 int16_t CodingMode; |
| 89 int16_t bottleneck; | 89 int16_t bottleneck; |
| 90 | 90 |
| 91 int framesize = 30; /* ms */ | 91 int16_t framesize = 30; /* ms */ |
| 92 // int framesize = 60; /* To invoke cisco complexity case at frame 2252 */ | 92 // int16_t framesize = 60; /* To invoke cisco complexity case at frame 2252 */ |
| 93 | 93 |
| 94 int cur_framesmpls, err; | 94 int cur_framesmpls, err; |
| 95 | 95 |
| 96 /* Runtime statistics */ | 96 /* Runtime statistics */ |
| 97 double starttime; | 97 double starttime; |
| 98 double runtime; | 98 double runtime; |
| 99 double length_file; | 99 double length_file; |
| 100 | 100 |
| 101 int16_t stream_len = 0; | 101 int16_t stream_len = 0; |
| 102 int declen; | 102 int16_t declen; |
| 103 | 103 |
| 104 int16_t shortdata[FRAMESAMPLES_10ms]; | 104 int16_t shortdata[FRAMESAMPLES_10ms]; |
| 105 int16_t decoded[MAX_FRAMESAMPLES]; | 105 int16_t decoded[MAX_FRAMESAMPLES]; |
| 106 uint16_t streamdata[600]; | 106 uint16_t streamdata[600]; |
| 107 int16_t speechType[1]; | 107 int16_t speechType[1]; |
| 108 | 108 |
| 109 // int16_t* iSACstruct; | 109 // int16_t* iSACstruct; |
| 110 | 110 |
| 111 char version_number[20]; | 111 char version_number[20]; |
| 112 int mode = -1, tmp, nbTest = 0; /*,sss;*/ | 112 int mode = -1, tmp, nbTest = 0; /*,sss;*/ |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 fclose(outp); | 610 fclose(outp); |
| 611 | 611 |
| 612 WebRtcIsac_Free(ISAC_main_inst); | 612 WebRtcIsac_Free(ISAC_main_inst); |
| 613 WebRtcIsacfix_Free(ISACFIX_main_inst); | 613 WebRtcIsacfix_Free(ISACFIX_main_inst); |
| 614 | 614 |
| 615 // fclose(histfile); | 615 // fclose(histfile); |
| 616 // fclose(ratefile); | 616 // fclose(ratefile); |
| 617 | 617 |
| 618 return 0; | 618 return 0; |
| 619 } | 619 } |
| OLD | NEW |