X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils.h;h=3544cdb9f07e827eaf956dfaa02634f8482fde72;hb=1567243e8fff8ecdc06c5a0e8db1eb45371ab400;hp=586cff6c5fa1c8a641e7eaece39472b200ee038d;hpb=7db7eb08e051d0d95215f645e0cfa9a5879cded0;p=ffmpeg diff --git a/cmdutils.h b/cmdutils.h index 586cff6c5fa..3544cdb9f07 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. * @@ -289,6 +302,12 @@ int opt_protocols(const char *opt, const char *arg); */ int opt_pix_fmts(const char *opt, const char *arg); +/** + * Print a listing containing all the sample formats supported by the + * program. + */ +int show_sample_fmts(const char *opt, const char *arg); + /** * Return a positive value if a line read from standard input * starts with [yY], otherwise return 0. @@ -304,7 +323,7 @@ int read_yesno(void); * @return 0 in case of success, a negative value corresponding to an * AVERROR error code in case of failure. */ -int read_file(const char *filename, char **bufptr, size_t *size); +int cmdutils_read_file(const char *filename, char **bufptr, size_t *size); /** * Get a file corresponding to a preset file. @@ -343,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 */