Go to the documentation of this file.
21 #ifndef FFTOOLS_OPT_COMMON_H
22 #define FFTOOLS_OPT_COMMON_H
33 int show_sinks(
void *optctx,
const char *opt,
const char *
arg);
39 int show_sources(
void *optctx,
const char *opt,
const char *
arg);
43 #define CMDUTILS_COMMON_OPTIONS_AVDEVICE \
44 { "sources" , OPT_EXIT | HAS_ARG, { .func_arg = show_sources }, \
45 "list sources of the input device", "device" }, \
46 { "sinks" , OPT_EXIT | HAS_ARG, { .func_arg = show_sinks }, \
47 "list sinks of the output device", "device" }, \
50 #define CMDUTILS_COMMON_OPTIONS_AVDEVICE
63 int show_help(
void *optctx,
const char *opt,
const char *
arg);
132 int show_bsfs(
void *optctx,
const char *opt,
const char *
arg);
184 int opt_report(
void *optctx,
const char *opt,
const char *
arg);
199 #define CMDUTILS_COMMON_OPTIONS \
200 { "L", OPT_EXIT, { .func_arg = show_license }, "show license" }, \
201 { "h", OPT_EXIT, { .func_arg = show_help }, "show help", "topic" }, \
202 { "?", OPT_EXIT, { .func_arg = show_help }, "show help", "topic" }, \
203 { "help", OPT_EXIT, { .func_arg = show_help }, "show help", "topic" }, \
204 { "-help", OPT_EXIT, { .func_arg = show_help }, "show help", "topic" }, \
205 { "version", OPT_EXIT, { .func_arg = show_version }, "show version" }, \
206 { "buildconf", OPT_EXIT, { .func_arg = show_buildconf }, "show build configuration" }, \
207 { "formats", OPT_EXIT, { .func_arg = show_formats }, "show available formats" }, \
208 { "muxers", OPT_EXIT, { .func_arg = show_muxers }, "show available muxers" }, \
209 { "demuxers", OPT_EXIT, { .func_arg = show_demuxers }, "show available demuxers" }, \
210 { "devices", OPT_EXIT, { .func_arg = show_devices }, "show available devices" }, \
211 { "codecs", OPT_EXIT, { .func_arg = show_codecs }, "show available codecs" }, \
212 { "decoders", OPT_EXIT, { .func_arg = show_decoders }, "show available decoders" }, \
213 { "encoders", OPT_EXIT, { .func_arg = show_encoders }, "show available encoders" }, \
214 { "bsfs", OPT_EXIT, { .func_arg = show_bsfs }, "show available bit stream filters" }, \
215 { "protocols", OPT_EXIT, { .func_arg = show_protocols }, "show available protocols" }, \
216 { "filters", OPT_EXIT, { .func_arg = show_filters }, "show available filters" }, \
217 { "pix_fmts", OPT_EXIT, { .func_arg = show_pix_fmts }, "show available pixel formats" }, \
218 { "layouts", OPT_EXIT, { .func_arg = show_layouts }, "show standard channel layouts" }, \
219 { "sample_fmts", OPT_EXIT, { .func_arg = show_sample_fmts }, "show available audio sample formats" }, \
220 { "dispositions", OPT_EXIT, { .func_arg = show_dispositions}, "show available stream dispositions" }, \
221 { "colors", OPT_EXIT, { .func_arg = show_colors }, "show available color names" }, \
222 { "loglevel", HAS_ARG, { .func_arg = opt_loglevel }, "set logging level", "loglevel" }, \
223 { "v", HAS_ARG, { .func_arg = opt_loglevel }, "set logging level", "loglevel" }, \
224 { "report", 0, { .func_arg = opt_report }, "generate a report" }, \
225 { "max_alloc", HAS_ARG, { .func_arg = opt_max_alloc }, "set maximum size of a single allocated block", "bytes" }, \
226 { "cpuflags", HAS_ARG | OPT_EXPERT, { .func_arg = opt_cpuflags }, "force specific cpu flags", "flags" }, \
227 { "cpucount", HAS_ARG | OPT_EXPERT, { .func_arg = opt_cpucount }, "force specific cpu count", "count" }, \
228 { "hide_banner", OPT_BOOL | OPT_EXPERT, {&hide_banner}, "do not show program banner", "hide_banner" }, \
229 CMDUTILS_COMMON_OPTIONS_AVDEVICE \
int show_buildconf(void *optctx, const char *opt, const char *arg)
Print the build configuration of the program to stdout.
int show_demuxers(void *optctx, const char *opt, const char *arg)
Print a listing containing all the demuxer supported by the program (including devices).
int show_version(void *optctx, const char *opt, const char *arg)
Print the version of the program to stdout.
int show_bsfs(void *optctx, const char *opt, const char *arg)
Print a listing containing all the bit stream filters supported by the program.
int opt_cpucount(void *optctx, const char *opt, const char *arg)
Override the cpucount.
int show_protocols(void *optctx, const char *opt, const char *arg)
Print a listing containing all the protocols supported by the program.
int show_dispositions(void *optctx, const char *opt, const char *arg)
Print a listing containing all supported stream dispositions.
int init_report(const char *env, FILE **file)
int show_license(void *optctx, const char *opt, const char *arg)
Print the license of the program to stdout.
int show_encoders(void *optctx, const char *opt, const char *arg)
Print a listing containing all the encoders supported by the program.
int opt_loglevel(void *optctx, const char *opt, const char *arg)
Set the libav* libraries log level.
int show_colors(void *optctx, const char *opt, const char *arg)
Print a listing containing all the color names and values recognized by the program.
int show_decoders(void *optctx, const char *opt, const char *arg)
Print a listing containing all the decoders supported by the program.
int opt_max_alloc(void *optctx, const char *opt, const char *arg)
int show_codecs(void *optctx, const char *opt, const char *arg)
Print a listing containing all the codecs supported by the program.
int opt_report(void *optctx, const char *opt, const char *arg)
int show_pix_fmts(void *optctx, const char *opt, const char *arg)
Print a listing containing all the pixel formats supported by the program.
int show_sample_fmts(void *optctx, const char *opt, const char *arg)
Print a listing containing all the sample formats supported by the program.
int show_layouts(void *optctx, const char *opt, const char *arg)
Print a listing containing all the standard channel layouts supported by the program.
int show_formats(void *optctx, const char *opt, const char *arg)
Print a listing containing all the formats supported by the program (including devices).
int opt_cpuflags(void *optctx, const char *opt, const char *arg)
Override the cpuflags.
int show_muxers(void *optctx, const char *opt, const char *arg)
Print a listing containing all the muxers supported by the program (including devices).
int show_filters(void *optctx, const char *opt, const char *arg)
Print a listing containing all the filters supported by the program.
int show_devices(void *optctx, const char *opt, const char *arg)
Print a listing containing all the devices supported by the program.
int show_help(void *optctx, const char *opt, const char *arg)
Generic -h handler common to all fftools.