Go to the documentation of this file.
22 #ifndef FFMPEG_CMDUTILS_H
23 #define FFMPEG_CMDUTILS_H
104 int opt_opencl(
void *optctx,
const char *opt,
const char *
arg);
128 double min,
double max);
161 #define HAS_ARG 0x0001
162 #define OPT_BOOL 0x0002
163 #define OPT_EXPERT 0x0004
164 #define OPT_STRING 0x0008
165 #define OPT_VIDEO 0x0010
166 #define OPT_AUDIO 0x0020
167 #define OPT_INT 0x0080
168 #define OPT_FLOAT 0x0100
169 #define OPT_SUBTITLE 0x0200
170 #define OPT_INT64 0x0400
171 #define OPT_EXIT 0x0800
172 #define OPT_DATA 0x1000
173 #define OPT_PERFILE 0x2000
175 #define OPT_OFFSET 0x4000
176 #define OPT_SPEC 0x8000
179 #define OPT_TIME 0x10000
180 #define OPT_DOUBLE 0x20000
181 #define OPT_INPUT 0x40000
182 #define OPT_OUTPUT 0x80000
185 int (*
func_arg)(
void *,
const char *,
const char *);
202 int rej_flags,
int alt_flags);
219 int show_help(
void *optctx,
const char *opt,
const char *
arg);
234 void (* parse_arg_function)(
void *optctx,
const char*));
348 const char *optname);
451 int show_sinks(
void *optctx,
const char *opt,
const char *
arg);
457 int show_sources(
void *optctx,
const char *opt,
const char *
arg);
491 int show_bsfs(
void *optctx,
const char *opt,
const char *
arg);
563 const char *preset_name,
int is_path,
const char *codec_name);
575 void *
grow_array(
void *array,
int elem_size,
int *
size,
int new_size);
577 #define media_type_string av_get_media_type_string
579 #define GROW_ARRAY(array, nb_elems)\
580 array = grow_array(array, sizeof(*array), &nb_elems, nb_elems + 1)
582 #define GET_PIX_FMT_NAME(pix_fmt)\
583 const char *name = av_get_pix_fmt_name(pix_fmt);
585 #define GET_SAMPLE_FMT_NAME(sample_fmt)\
586 const char *name = av_get_sample_fmt_name(sample_fmt)
588 #define GET_SAMPLE_RATE_NAME(rate)\
590 snprintf(name, sizeof(name), "%d", rate);
592 #define GET_CH_LAYOUT_NAME(ch_layout)\
594 snprintf(name, sizeof(name), "0x%"PRIx64, ch_layout);
596 #define GET_CH_LAYOUT_DESC(ch_layout)\
598 av_get_channel_layout_string(name, sizeof(name), 0, ch_layout);