Go to the documentation of this file.
22 #ifndef FFMPEG_CMDUTILS_H
23 #define FFMPEG_CMDUTILS_H
112 double min,
double max);
145 #define HAS_ARG 0x0001
146 #define OPT_BOOL 0x0002
147 #define OPT_EXPERT 0x0004
148 #define OPT_STRING 0x0008
149 #define OPT_VIDEO 0x0010
150 #define OPT_AUDIO 0x0020
151 #define OPT_INT 0x0080
152 #define OPT_FLOAT 0x0100
153 #define OPT_SUBTITLE 0x0200
154 #define OPT_INT64 0x0400
155 #define OPT_EXIT 0x0800
156 #define OPT_DATA 0x1000
157 #define OPT_PERFILE 0x2000
159 #define OPT_OFFSET 0x4000
160 #define OPT_SPEC 0x8000
163 #define OPT_TIME 0x10000
164 #define OPT_DOUBLE 0x20000
167 int (*
func_arg)(
void *,
const char *,
const char *);
184 int rej_flags,
int alt_flags);
201 int show_help(
void *optctx,
const char *opt,
const char *
arg);
216 void (* parse_arg_function)(
void *optctx,
const char*));
324 const char *optname);
439 int show_bsfs(
void *optctx,
const char *opt,
const char *
arg);
505 const char *preset_name,
int is_path,
const char *codec_name);
517 void *
grow_array(
void *array,
int elem_size,
int *
size,
int new_size);
519 #define GROW_ARRAY(array, nb_elems)\
520 array = grow_array(array, sizeof(*array), &nb_elems, nb_elems + 1)
565 #define GET_PIX_FMT_NAME(pix_fmt)\
566 const char *name = av_get_pix_fmt_name(pix_fmt);
568 #define GET_SAMPLE_FMT_NAME(sample_fmt)\
569 const char *name = av_get_sample_fmt_name(sample_fmt)
571 #define GET_SAMPLE_RATE_NAME(rate)\
573 snprintf(name, sizeof(name), "%d", rate);
575 #define GET_CH_LAYOUT_NAME(ch_layout)\
577 snprintf(name, sizeof(name), "0x%"PRIx64, ch_layout);
579 #define GET_CH_LAYOUT_DESC(ch_layout)\
581 av_get_channel_layout_string(name, sizeof(name), 0, ch_layout);