Lines Matching full:argv
45 void print_usage( char* argv[] )
48 "<bits per second> [options] <input> <output>\n", argv[0]);
50 "[options] <input> <output>\n\n", argv[0]);
217 int main(int argc, char *argv[])
273 print_usage( argv );
281 if (strcmp(argv[args], "-e")==0)
285 } else if (strcmp(argv[args], "-d")==0)
292 print_usage( argv );
298 if (strcmp(argv[args], "voip")==0)
300 else if (strcmp(argv[args], "restricted-lowdelay")==0)
302 else if (strcmp(argv[args], "audio")!=0) {
303 fprintf(stderr, "unknown application: %s\n", argv[args]);
304 print_usage(argv);
309 sampling_rate = (opus_int32)atol(argv[args]);
322 channels = atoi(argv[args]);
333 bitrate_bps = (opus_int32)atol(argv[args]);
351 if( strcmp( argv[ args ], "-cbr" ) == 0 ) {
355 } else if( strcmp( argv[ args ], "-bandwidth" ) == 0 ) {
357 if (strcmp(argv[ args + 1 ], "NB")==0)
359 else if (strcmp(argv[ args + 1 ], "MB")==0)
361 else if (strcmp(argv[ args + 1 ], "WB")==0)
363 else if (strcmp(argv[ args + 1 ], "SWB")==0)
365 else if (strcmp(argv[ args + 1 ], "FB")==0)
370 argv[ args + 1 ]);
374 } else if( strcmp( argv[ args ], "-framesize" ) == 0 ) {
376 if (strcmp(argv[ args + 1 ], "2.5")==0)
378 else if (strcmp(argv[ args + 1 ], "5")==0)
380 else if (strcmp(argv[ args + 1 ], "10")==0)
382 else if (strcmp(argv[ args + 1 ], "20")==0)
384 else if (strcmp(argv[ args + 1 ], "40")==0)
386 else if (strcmp(argv[ args + 1 ], "60")==0)
391 argv[ args + 1 ]);
395 } else if( strcmp( argv[ args ], "-max_payload" ) == 0 ) {
397 max_payload_bytes = atoi( argv[ args + 1 ] );
399 } else if( strcmp( argv[ args ], "-complexity" ) == 0 ) {
401 complexity = atoi( argv[ args + 1 ] );
403 } else if( strcmp( argv[ args ], "-inbandfec" ) == 0 ) {
406 } else if( strcmp( argv[ args ], "-forcemono" ) == 0 ) {
410 } else if( strcmp( argv[ args ], "-cvbr" ) == 0 ) {
414 } else if( strcmp( argv[ args ], "-variable-duration" ) == 0 ) {
418 } else if( strcmp( argv[ args ], "-delayed-decision" ) == 0 ) {
422 } else if( strcmp( argv[ args ], "-dtx") == 0 ) {
426 } else if( strcmp( argv[ args ], "-loss" ) == 0 ) {
427 packet_loss_perc = atoi( argv[ args + 1 ] );
429 } else if( strcmp( argv[ args ], "-sweep" ) == 0 ) {
431 sweep_bps = atoi( argv[ args + 1 ] );
433 } else if( strcmp( argv[ args ], "-random_framesize" ) == 0 ) {
437 } else if( strcmp( argv[ args ], "-sweep_max" ) == 0 ) {
439 sweep_max = atoi( argv[ args + 1 ] );
441 } else if( strcmp( argv[ args ], "-random_fec" ) == 0 ) {
445 } else if( strcmp( argv[ args ], "-silk8k_test" ) == 0 ) {
450 } else if( strcmp( argv[ args ], "-silk12k_test" ) == 0 ) {
455 } else if( strcmp( argv[ args ], "-silk16k_test" ) == 0 ) {
460 } else if( strcmp( argv[ args ], "-hybrid24k_test" ) == 0 ) {
465 } else if( strcmp( argv[ args ], "-hybrid48k_test" ) == 0 ) {
470 } else if( strcmp( argv[ args ], "-celt_test" ) == 0 ) {
475 } else if( strcmp( argv[ args ], "-celt_hq_test" ) == 0 ) {
481 printf( "Error: unrecognized setting: %s\n\n", argv[ args ] );
482 print_usage( argv );
497 inFile = argv[argc-2];
501 fprintf (stderr, "Could not open input file %s\n", argv[argc-2]);
515 outFile = argv[argc-1];
519 fprintf (stderr, "Could not open output file %s\n", argv[argc-1]);