Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1c2744d1
Commit
1c2744d1
authored
Jun 22, 2009
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export av_strtod() to eval.h.
Originally committed as revision 19252 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b394438e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
eval.c
libavcodec/eval.c
+1
-5
eval.h
libavcodec/eval.h
+6
-0
No files found.
libavcodec/eval.c
View file @
1c2744d1
...
...
@@ -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
);
...
...
libavcodec/eval.h
View file @
1c2744d1
...
...
@@ -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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment