| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 /* Handling wrong input arguments in the command line */ | 115 /* Handling wrong input arguments in the command line */ |
| 116 if ((argc < 3) || (argc > 17)) { | 116 if ((argc < 3) || (argc > 17)) { |
| 117 printf("\n\nWrong number of arguments or flag values.\n\n"); | 117 printf("\n\nWrong number of arguments or flag values.\n\n"); |
| 118 | 118 |
| 119 printf("\n"); | 119 printf("\n"); |
| 120 WebRtcIsac_version(version_number); | 120 WebRtcIsac_version(version_number); |
| 121 printf("iSAC-swb version %s \n\n", version_number); | 121 printf("iSAC-swb version %s \n\n", version_number); |
| 122 | 122 |
| 123 printf("Usage:\n\n"); | 123 printf("Usage:\n\n"); |
| 124 printf("./kenny.exe [-I] bottleneck_value infile outfile \n\n"); | 124 printf("%s [-I] bottleneck_value infile outfile \n\n", argv[0]); |
| 125 printf("with:\n"); | 125 printf("with:\n"); |
| 126 printf("[-FS num] : sampling frequency in kHz, valid values are\n"); | 126 printf("[-FS num] : sampling frequency in kHz, valid values are\n"); |
| 127 printf(" 16 & 32, with 16 as default.\n"); | 127 printf(" 16 & 32, with 16 as default.\n"); |
| 128 printf("[-I] : if -I option is specified, the coder will use\n"); | 128 printf("[-I] : if -I option is specified, the coder will use\n"); |
| 129 printf(" an instantaneous Bottleneck value. If not, it\n"); | 129 printf(" an instantaneous Bottleneck value. If not, it\n"); |
| 130 printf(" will be an adaptive Bottleneck value.\n"); | 130 printf(" will be an adaptive Bottleneck value.\n"); |
| 131 printf("[-assign] : Use Assign API.\n"); | 131 printf("[-assign] : Use Assign API.\n"); |
| 132 printf("[-B num] : the value of the bottleneck provided either\n"); | 132 printf("[-B num] : the value of the bottleneck provided either\n"); |
| 133 printf(" as a fixed value in bits/sec (e.g. 25000) or\n"); | 133 printf(" as a fixed value in bits/sec (e.g. 25000) or\n"); |
| 134 printf(" read from a file (e.g. bottleneck.txt)\n"); | 134 printf(" read from a file (e.g. bottleneck.txt)\n"); |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 fprintf(stderr, " transcoding rate %.0f kbps", | 940 fprintf(stderr, " transcoding rate %.0f kbps", |
| 941 (double)numTransCodingBytes * 8.0 * (sampFreqKHz) / totalsmpls); | 941 (double)numTransCodingBytes * 8.0 * (sampFreqKHz) / totalsmpls); |
| 942 } | 942 } |
| 943 | 943 |
| 944 fclose(inp); | 944 fclose(inp); |
| 945 fclose(outp); | 945 fclose(outp); |
| 946 WebRtcIsac_Free(ISAC_main_inst); | 946 WebRtcIsac_Free(ISAC_main_inst); |
| 947 | 947 |
| 948 exit(0); | 948 exit(0); |
| 949 } | 949 } |
| OLD | NEW |