X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils.h;h=a20b779f1a02f3db712add66ccc7be095fad9c56;hb=76db17dc7d4f19f9a03bdd6de79c2ea37b76888f;hp=61cfc229b72edd6c5a0746b2f86344a7c7ea01b0;hpb=6b779cccaab1856575b1840e09510b0f54e988a6;p=ffmpeg diff --git a/cmdutils.h b/cmdutils.h index 61cfc229b72..a20b779f1a0 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -115,6 +115,7 @@ typedef struct SpecifierOpt { int i; int64_t i64; float f; + double dbl; } u; } SpecifierOpt; @@ -140,6 +141,7 @@ typedef struct { Implies OPT_OFFSET. Next element after the offset is an int containing element count in the array. */ #define OPT_TIME 0x10000 +#define OPT_DOUBLE 0x20000 union { void *dst_ptr; int (*func_arg)(const char *, const char *); @@ -172,6 +174,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. * @@ -275,6 +282,12 @@ void show_protocols(void); */ void show_pix_fmts(void); +/** + * 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.