diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-06-22 22:22:40 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-06-22 22:22:40 +0000 |
commit | 1c2744d139e84eb205909c378b271995753c8e1a (patch) | |
tree | fe4e199360fcabe63ad7cb9eb9193a3885b0d480 /libavcodec/eval.h | |
parent | b394438e8a4d7e43a90a85ec3bebd889255d759a (diff) | |
download | ffmpeg-1c2744d139e84eb205909c378b271995753c8e1a.tar.gz |
Export av_strtod() to eval.h.
Originally committed as revision 19252 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.h')
-rw-r--r-- | libavcodec/eval.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/eval.h b/libavcodec/eval.h index 82d4315bac..6fe70bca5c 100644 --- a/libavcodec/eval.h +++ b/libavcodec/eval.h @@ -74,4 +74,10 @@ AVEvalExpr * ff_parse(const char *s, const char * const *const_name, double ff_parse_eval(AVEvalExpr * e, const double *const_value, void *opaque); void ff_eval_free(AVEvalExpr * e); +/** strtod() function extended with 'k', 'M', 'G', 'ki', 'Mi', 'Gi' and 'B' + * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This + * function assumes that the unit of numbers is bits not bytes. + */ +double av_strtod(const char *numstr, char **tail); + #endif /* AVCODEC_EVAL_H */ |