| 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 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 /* Handling wrong input arguments in the command line */ | 157 /* Handling wrong input arguments in the command line */ |
| 158 if ((argc<3) || (argc>21)) { | 158 if ((argc<3) || (argc>21)) { |
| 159 printf("\n\nWrong number of arguments or flag values.\n\n"); | 159 printf("\n\nWrong number of arguments or flag values.\n\n"); |
| 160 | 160 |
| 161 printf("\n"); | 161 printf("\n"); |
| 162 WebRtcIsacfix_version(version_number); | 162 WebRtcIsacfix_version(version_number); |
| 163 printf("iSAC version %s \n\n", version_number); | 163 printf("iSAC version %s \n\n", version_number); |
| 164 | 164 |
| 165 printf("Usage:\n\n"); | 165 printf("Usage:\n\n"); |
| 166 printf("./kenny.exe [-F num][-I] bottleneck_value infile outfile \n\n"); | 166 printf("%s [-F num][-I] bottleneck_value infile outfile \n\n", argv[0]); |
| 167 printf("with:\n"); | 167 printf("with:\n"); |
| 168 printf("[-I] :if -I option is specified, the coder will use\n"); | 168 printf("[-I] :if -I option is specified, the coder will use\n"); |
| 169 printf(" an instantaneous Bottleneck value. If not, it\n"); | 169 printf(" an instantaneous Bottleneck value. If not, it\n"); |
| 170 printf(" will be an adaptive Bottleneck value.\n\n"); | 170 printf(" will be an adaptive Bottleneck value.\n\n"); |
| 171 printf("bottleneck_value :the value of the bottleneck provided either\n"); | 171 printf("bottleneck_value :the value of the bottleneck provided either\n"); |
| 172 printf(" as a fixed value (e.g. 25000) or\n"); | 172 printf(" as a fixed value (e.g. 25000) or\n"); |
| 173 printf(" read from a file (e.g. bottleneck.txt)\n\n"); | 173 printf(" read from a file (e.g. bottleneck.txt)\n\n"); |
| 174 printf("[-INITRATE num] :Set a new value for initial rate. Note! Only used" | 174 printf("[-INITRATE num] :Set a new value for initial rate. Note! Only used" |
| 175 " in adaptive mode.\n\n"); | 175 " in adaptive mode.\n\n"); |
| 176 printf("[-FL num] :Set (initial) frame length in msec. Valid length" | 176 printf("[-FL num] :Set (initial) frame length in msec. Valid length" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 printf(" CE 1 - createInternal, freeInternal," | 215 printf(" CE 1 - createInternal, freeInternal," |
| 216 " getNewBitstream \n"); | 216 " getNewBitstream \n"); |
| 217 printf(" CE 2 - transcode, getBWE \n"); | 217 printf(" CE 2 - transcode, getBWE \n"); |
| 218 printf(" CE 3 - getSendBWE, setSendBWE. \n\n"); | 218 printf(" CE 3 - getSendBWE, setSendBWE. \n\n"); |
| 219 printf("[-RTP_INIT num] : if -RTP_INIT option is specified num will be" | 219 printf("[-RTP_INIT num] : if -RTP_INIT option is specified num will be" |
| 220 " the initial\n"); | 220 " the initial\n"); |
| 221 printf(" value of the rtp sequence number.\n\n"); | 221 printf(" value of the rtp sequence number.\n\n"); |
| 222 printf("infile : Normal speech input file\n\n"); | 222 printf("infile : Normal speech input file\n\n"); |
| 223 printf("outfile : Speech output file\n\n"); | 223 printf("outfile : Speech output file\n\n"); |
| 224 printf("Example usage : \n\n"); | 224 printf("Example usage : \n\n"); |
| 225 printf("./kenny.exe -I bottleneck.txt speechIn.pcm speechOut.pcm\n\n"); | 225 printf("%s -I bottleneck.txt speechIn.pcm speechOut.pcm\n\n", argv[0]); |
| 226 exit(0); | 226 exit(0); |
| 227 | 227 |
| 228 } | 228 } |
| 229 | 229 |
| 230 /* Print version number */ | 230 /* Print version number */ |
| 231 WebRtcIsacfix_version(version_number); | 231 WebRtcIsacfix_version(version_number); |
| 232 printf("iSAC version %s \n\n", version_number); | 232 printf("iSAC version %s \n\n", version_number); |
| 233 | 233 |
| 234 /* Loop over all command line arguments */ | 234 /* Loop over all command line arguments */ |
| 235 CodingMode = 0; | 235 CodingMode = 0; |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 fclose(inp); | 830 fclose(inp); |
| 831 fclose(outp); | 831 fclose(outp); |
| 832 fclose(outbits); | 832 fclose(outbits); |
| 833 | 833 |
| 834 if ( testCE == 1) { | 834 if ( testCE == 1) { |
| 835 WebRtcIsacfix_FreeInternal(ISAC_main_inst); | 835 WebRtcIsacfix_FreeInternal(ISAC_main_inst); |
| 836 } | 836 } |
| 837 WebRtcIsacfix_Free(ISAC_main_inst); | 837 WebRtcIsacfix_Free(ISAC_main_inst); |
| 838 return 0; | 838 return 0; |
| 839 } | 839 } |
| OLD | NEW |