Lines Matching defs:arg
397 static int opt_add_vfilter(void *optctx, const char *opt, const char *arg)
400 vfilters_list[nb_vfilters - 1] = arg;
1901 #define INSERT_FILT(name, arg) do { \
1906 "ffplay_" name, arg, NULL, graph); \
2020 static int audio_thread(void *arg)
2022 VideoState *is = arg;
2105 static int decoder_start(Decoder *d, int (*fn)(void *), const char *thread_name, void* arg)
2108 d->decoder_tid = SDL_CreateThread(fn, thread_name, arg);
2116 static int video_thread(void *arg)
2118 VideoState *is = arg;
2223 static int subtitle_thread(void *arg)
2225 VideoState *is = arg;
2742 static int read_thread(void *arg)
2744 VideoState *is = arg;
3467 static int opt_width(void *optctx, const char *opt, const char *arg)
3469 screen_width = parse_number_or_die(opt, arg, OPT_INT64, 1, INT_MAX);
3473 static int opt_height(void *optctx, const char *opt, const char *arg)
3475 screen_height = parse_number_or_die(opt, arg, OPT_INT64, 1, INT_MAX);
3479 static int opt_format(void *optctx, const char *opt, const char *arg)
3481 file_iformat = av_find_input_format(arg);
3483 av_log(NULL, AV_LOG_FATAL, "Unknown input format: %s\n", arg);
3489 static int opt_sync(void *optctx, const char *opt, const char *arg)
3491 if (!strcmp(arg, "audio"))
3493 else if (!strcmp(arg, "video"))
3495 else if (!strcmp(arg, "ext"))
3498 av_log(NULL, AV_LOG_ERROR, "Unknown value for %s: %s\n", opt, arg);
3504 static int opt_seek(void *optctx, const char *opt, const char *arg)
3506 start_time = parse_time_or_die(opt, arg, 1);
3510 static int opt_duration(void *optctx, const char *opt, const char *arg)
3512 duration = parse_time_or_die(opt, arg, 1);
3516 static int opt_show_mode(void *optctx, const char *opt, const char *arg)
3518 show_mode = !strcmp(arg, "video") ? SHOW_MODE_VIDEO :
3519 !strcmp(arg, "waves") ? SHOW_MODE_WAVES :
3520 !strcmp(arg, "rdft" ) ? SHOW_MODE_RDFT :
3521 parse_number_or_die(opt, arg, OPT_INT, 0, SHOW_MODE_NB-1);
3538 static int opt_codec(void *optctx, const char *opt, const char *arg)
3544 arg, opt);
3549 case 'a' : audio_codec_name = arg; break;
3550 case 's' : subtitle_codec_name = arg; break;
3551 case 'v' : video_codec_name = arg; break;
3622 void show_help_default(const char *opt, const char *arg)