Export av_strtod() to eval.h.
Originally committed as revision 19252 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b394438e8a
commit
1c2744d139
@ -82,11 +82,7 @@ static const int8_t si_prefixes['z' - 'E' + 1]={
|
|||||||
['Y'-'E']= 24,
|
['Y'-'E']= 24,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** strtod() function extended with 'k', 'M', 'G', 'ki', 'Mi', 'Gi' and 'B'
|
double av_strtod(const char *numstr, char **tail) {
|
||||||
* 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 d;
|
double d;
|
||||||
char *next;
|
char *next;
|
||||||
d = strtod(numstr, &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);
|
double ff_parse_eval(AVEvalExpr * e, const double *const_value, void *opaque);
|
||||||
void ff_eval_free(AVEvalExpr * e);
|
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 */
|
#endif /* AVCODEC_EVAL_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user