Lines Matching defs:opt
51 #include "libavutil/opt.h"
241 static int show_hwaccels(void *optctx, const char *opt, const char *arg)
343 static int opt_filter_threads(void *optctx, const char *opt, const char *arg)
350 static int opt_abort_on(void *optctx, const char *opt, const char *arg)
369 static int opt_stats_period(void *optctx, const char *opt, const char *arg)
371 int64_t user_stats_period = parse_time_or_die(opt, arg, 1);
384 static int opt_audio_codec(void *optctx, const char *opt, const char *arg)
390 static int opt_video_codec(void *optctx, const char *opt, const char *arg)
396 static int opt_subtitle_codec(void *optctx, const char *opt, const char *arg)
402 static int opt_data_codec(void *optctx, const char *opt, const char *arg)
408 static int opt_map(void *optctx, const char *opt, const char *arg)
526 static int opt_attach(void *optctx, const char *opt, const char *arg)
534 static int opt_map_channel(void *optctx, const char *opt, const char *arg)
611 static int opt_sdp_file(void *optctx, const char *opt, const char *arg)
619 static int opt_vaapi_device(void *optctx, const char *opt, const char *arg)
634 static int opt_qsv_device(void *optctx, const char *opt, const char *arg)
650 static int opt_init_hw_device(void *optctx, const char *opt, const char *arg)
665 static int opt_filter_hw_device(void *optctx, const char *opt, const char *arg)
803 static int opt_recording_timestamp(void *optctx, const char *opt, const char *arg)
807 int64_t recording_timestamp = parse_time_or_die(opt, arg, 0) / 1E6;
814 "tag instead.\n", opt);
2197 static int opt_streamid(void *optctx, const char *opt, const char *arg)
2209 arg, opt);
2213 idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, MAX_STREAMS-1);
2215 o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);
2355 const char *opt = ost->filters ? "-vf/-af/-filter" : "-filter_script";
2362 opt, ost->file_index, ost->index, opt);
3055 static int opt_target(void *optctx, const char *opt, const char *arg)
3198 static int opt_vstats_file(void *optctx, const char *opt, const char *arg)
3205 static int opt_vstats(void *optctx, const char *opt, const char *arg)
3218 return opt_vstats_file(NULL, opt, filename);
3221 static int opt_video_frames(void *optctx, const char *opt, const char *arg)
3227 static int opt_audio_frames(void *optctx, const char *opt, const char *arg)
3233 static int opt_data_frames(void *optctx, const char *opt, const char *arg)
3239 static int opt_default_new(OptionsContext *o, const char *opt, const char *arg)
3247 ret = opt_default(NULL, opt, arg);
3259 static int opt_preset(void *optctx, const char *opt, const char *arg)
3266 tmp_line[0] = *opt;
3270 if (!(f = get_preset_file(filename, sizeof(filename), arg, *opt == 'f', codec_name))) {
3307 static int opt_old2new(void *optctx, const char *opt, const char *arg)
3311 char *s = av_asprintf("%s:%c", opt + 1, *opt);
3319 static int opt_bitrate(void *optctx, const char *opt, const char *arg)
3323 if(!strcmp(opt, "ab")){
3326 } else if(!strcmp(opt, "b")){
3331 av_dict_set(&o->g->codec_opts, opt, arg, 0);
3335 static int opt_qscale(void *optctx, const char *opt, const char *arg)
3340 if(!strcmp(opt, "qscale")){
3344 s = av_asprintf("q%s", opt + 6);
3352 static int opt_profile(void *optctx, const char *opt, const char *arg)
3355 if(!strcmp(opt, "profile")){
3360 av_dict_set(&o->g->codec_opts, opt, arg, 0);
3364 static int opt_video_filters(void *optctx, const char *opt, const char *arg)
3370 static int opt_audio_filters(void *optctx, const char *opt, const char *arg)
3376 static int opt_vsync(void *optctx, const char *opt, const char *arg)
3383 static int opt_timecode(void *optctx, const char *opt, const char *arg)
3397 static int opt_audio_qscale(void *optctx, const char *opt, const char *arg)
3403 static int opt_filter_complex(void *optctx, const char *opt, const char *arg)
3417 static int opt_filter_complex_script(void *optctx, const char *opt, const char *arg)
3433 void show_help_default(const char *opt, const char *arg)
3439 if (opt && *opt) {
3440 if (!strcmp(opt, "long"))
3442 else if (!strcmp(opt, "full"))
3445 av_log(NULL, AV_LOG_ERROR, "Unknown help option '%s'.\n", opt);
3616 static int opt_progress(void *optctx, const char *opt, const char *arg)
3633 int opt_timelimit(void *optctx, const char *opt, const char *arg)
3636 int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
3641 av_log(NULL, AV_LOG_WARNING, "-%s not implemented on this OS\n", opt);