diff eval.h @ 9880:e934c5f8f4a9 libavcodec

Export av_strtod() to eval.h.
author stefano
date Mon, 22 Jun 2009 22:22:40 +0000
parents e9d9d946f213
children 3207f2314192
line wrap: on
line diff
--- a/eval.h	Sun Jun 21 21:37:05 2009 +0000
+++ b/eval.h	Mon Jun 22 22:22:40 2009 +0000
@@ -74,4 +74,10 @@
 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 */