Commit 048c90d5 authored by stefano's avatar stefano

Export av_strtod() to eval.h.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19252 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 971bad4c
......@@ -82,11 +82,7 @@ static const int8_t si_prefixes['z' - 'E' + 1]={
['Y'-'E']= 24,
};
/** 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.
*/
static double av_strtod(const char *numstr, char **tail) {
double av_strtod(const char *numstr, char **tail) {
double d;
char *next;
d = strtod(numstr, &next);
......
......@@ -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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment