Go to the documentation of this file.
22 #ifndef FFMPEG_CMDUTILS_H
23 #define FFMPEG_CMDUTILS_H
93 int opt_opencl(
void *optctx,
const char *opt,
const char *
arg);
114 double min,
double max);
147 #define HAS_ARG 0x0001
148 #define OPT_BOOL 0x0002
149 #define OPT_EXPERT 0x0004
150 #define OPT_STRING 0x0008
151 #define OPT_VIDEO 0x0010
152 #define OPT_AUDIO 0x0020
153 #define OPT_INT 0x0080
154 #define OPT_FLOAT 0x0100
155 #define OPT_SUBTITLE 0x0200
156 #define OPT_INT64 0x0400
157 #define OPT_EXIT 0x0800
158 #define OPT_DATA 0x1000
159 #define OPT_PERFILE 0x2000
161 #define OPT_OFFSET 0x4000
162 #define OPT_SPEC 0x8000
165 #define OPT_TIME 0x10000
166 #define OPT_DOUBLE 0x20000
167 #define OPT_INPUT 0x40000
168 #define OPT_OUTPUT 0x80000
171 int (*
func_arg)(
void *,
const char *,
const char *);
188 int rej_flags,
int alt_flags);
205 int show_help(
void *optctx,
const char *opt,
const char *
arg);
220 void (* parse_arg_function)(
void *optctx,
const char*));
334 const char *optname);
449 int show_bsfs(
void *optctx,
const char *opt,
const char *
arg);
515 const char *preset_name,
int is_path,
const char *codec_name);
527 void *
grow_array(
void *array,
int elem_size,
int *
size,
int new_size);
529 #define media_type_string av_get_media_type_string
531 #define GROW_ARRAY(array, nb_elems)\
532 array = grow_array(array, sizeof(*array), &nb_elems, nb_elems + 1)
534 #define GET_PIX_FMT_NAME(pix_fmt)\
535 const char *name = av_get_pix_fmt_name(pix_fmt);
537 #define GET_SAMPLE_FMT_NAME(sample_fmt)\
538 const char *name = av_get_sample_fmt_name(sample_fmt)
540 #define GET_SAMPLE_RATE_NAME(rate)\
542 snprintf(name, sizeof(name), "%d", rate);
544 #define GET_CH_LAYOUT_NAME(ch_layout)\
546 snprintf(name, sizeof(name), "0x%"PRIx64, ch_layout);
548 #define GET_CH_LAYOUT_DESC(ch_layout)\
550 av_get_channel_layout_string(name, sizeof(name), 0, ch_layout);