Go to the documentation of this file.
22 #ifndef FFMPEG_CMDUTILS_H
23 #define FFMPEG_CMDUTILS_H
103 int opt_opencl(
void *optctx,
const char *opt,
const char *
arg);
124 double min,
double max);
157 #define HAS_ARG 0x0001
158 #define OPT_BOOL 0x0002
159 #define OPT_EXPERT 0x0004
160 #define OPT_STRING 0x0008
161 #define OPT_VIDEO 0x0010
162 #define OPT_AUDIO 0x0020
163 #define OPT_INT 0x0080
164 #define OPT_FLOAT 0x0100
165 #define OPT_SUBTITLE 0x0200
166 #define OPT_INT64 0x0400
167 #define OPT_EXIT 0x0800
168 #define OPT_DATA 0x1000
169 #define OPT_PERFILE 0x2000
171 #define OPT_OFFSET 0x4000
172 #define OPT_SPEC 0x8000
175 #define OPT_TIME 0x10000
176 #define OPT_DOUBLE 0x20000
177 #define OPT_INPUT 0x40000
178 #define OPT_OUTPUT 0x80000
181 int (*
func_arg)(
void *,
const char *,
const char *);
198 int rej_flags,
int alt_flags);
215 int show_help(
void *optctx,
const char *opt,
const char *
arg);
230 void (* parse_arg_function)(
void *optctx,
const char*));
344 const char *optname);
459 int show_bsfs(
void *optctx,
const char *opt,
const char *
arg);
525 const char *preset_name,
int is_path,
const char *codec_name);
537 void *
grow_array(
void *array,
int elem_size,
int *
size,
int new_size);
539 #define media_type_string av_get_media_type_string
541 #define GROW_ARRAY(array, nb_elems)\
542 array = grow_array(array, sizeof(*array), &nb_elems, nb_elems + 1)
544 #define GET_PIX_FMT_NAME(pix_fmt)\
545 const char *name = av_get_pix_fmt_name(pix_fmt);
547 #define GET_SAMPLE_FMT_NAME(sample_fmt)\
548 const char *name = av_get_sample_fmt_name(sample_fmt)
550 #define GET_SAMPLE_RATE_NAME(rate)\
552 snprintf(name, sizeof(name), "%d", rate);
554 #define GET_CH_LAYOUT_NAME(ch_layout)\
556 snprintf(name, sizeof(name), "0x%"PRIx64, ch_layout);
558 #define GET_CH_LAYOUT_DESC(ch_layout)\
560 av_get_channel_layout_string(name, sizeof(name), 0, ch_layout);