Go to the documentation of this file.
22 #ifndef FFMPEG_CMDUTILS_H
23 #define FFMPEG_CMDUTILS_H
106 int opt_opencl(
void *optctx,
const char *opt,
const char *
arg);
127 double min,
double max);
160 #define HAS_ARG 0x0001
161 #define OPT_BOOL 0x0002
162 #define OPT_EXPERT 0x0004
163 #define OPT_STRING 0x0008
164 #define OPT_VIDEO 0x0010
165 #define OPT_AUDIO 0x0020
166 #define OPT_INT 0x0080
167 #define OPT_FLOAT 0x0100
168 #define OPT_SUBTITLE 0x0200
169 #define OPT_INT64 0x0400
170 #define OPT_EXIT 0x0800
171 #define OPT_DATA 0x1000
172 #define OPT_PERFILE 0x2000
174 #define OPT_OFFSET 0x4000
175 #define OPT_SPEC 0x8000
178 #define OPT_TIME 0x10000
179 #define OPT_DOUBLE 0x20000
180 #define OPT_INPUT 0x40000
181 #define OPT_OUTPUT 0x80000
184 int (*
func_arg)(
void *,
const char *,
const char *);
201 int rej_flags,
int alt_flags);
218 int show_help(
void *optctx,
const char *opt,
const char *
arg);
233 void (* parse_arg_function)(
void *optctx,
const char*));
347 const char *optname);
462 int show_bsfs(
void *optctx,
const char *opt,
const char *
arg);
534 const char *preset_name,
int is_path,
const char *codec_name);
546 void *
grow_array(
void *array,
int elem_size,
int *
size,
int new_size);
548 #define media_type_string av_get_media_type_string
550 #define GROW_ARRAY(array, nb_elems)\
551 array = grow_array(array, sizeof(*array), &nb_elems, nb_elems + 1)
553 #define GET_PIX_FMT_NAME(pix_fmt)\
554 const char *name = av_get_pix_fmt_name(pix_fmt);
556 #define GET_SAMPLE_FMT_NAME(sample_fmt)\
557 const char *name = av_get_sample_fmt_name(sample_fmt)
559 #define GET_SAMPLE_RATE_NAME(rate)\
561 snprintf(name, sizeof(name), "%d", rate);
563 #define GET_CH_LAYOUT_NAME(ch_layout)\
565 snprintf(name, sizeof(name), "0x%"PRIx64, ch_layout);
567 #define GET_CH_LAYOUT_DESC(ch_layout)\
569 av_get_channel_layout_string(name, sizeof(name), 0, ch_layout);