X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils.h;h=6d2e82b4ebc926ba7e913b8df8b32394e91189ec;hb=c2553a5585c381971eca55e9e008cf4caee919fe;hp=005697e7c5f91c05fcb9e2c1775f37481e39290f;hpb=a6186f3a0006d43950aaa5416b7e71c4b82f49f5;p=ffmpeg diff --git a/cmdutils.h b/cmdutils.h index 005697e7c5f..6d2e82b4ebc 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -76,6 +76,8 @@ int opt_default(const char *opt, const char *arg); */ int opt_loglevel(const char *opt, const char *arg); +int opt_codec_debug(const char *opt, const char *arg); + /** * Limit the execution time. */ @@ -158,6 +160,12 @@ typedef struct { void show_help_options(const OptionDef *options, const char *msg, int mask, int value); +/** + * Show help for all options with given flags in class and all its + * children. + */ +void show_help_children(const AVClass *class, int flags); + /** * Parse the command line arguments. * @@ -178,6 +186,11 @@ void parse_options(void *optctx, int argc, char **argv, const OptionDef *options */ int parse_option(void *optctx, const char *opt, const char *arg, const OptionDef *options); +/** + * Find the '-loglevel' option in the commandline args and apply it. + */ +void parse_loglevel(int argc, char **argv, const OptionDef *options); + /** * Check if the given stream matches a stream specifier. * @@ -349,4 +362,4 @@ void exit_program(int ret); */ void *grow_array(void *array, int elem_size, int *size, int new_size); -#endif /* LIBAV_CMDUTILS_H */ +#endif /* CMDUTILS_H */