Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
20e4beae
Commit
20e4beae
authored
Feb 03, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11840 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
652a5bf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
eval.c
libavcodec/eval.c
+4
-4
eval.h
libavcodec/eval.h
+2
-2
No files found.
libavcodec/eval.c
View file @
20e4beae
...
@@ -55,7 +55,7 @@ typedef struct Parser{
...
@@ -55,7 +55,7 @@ typedef struct Parser{
double
(
**
func2
)(
void
*
,
double
a
,
double
b
);
// NULL terminated
double
(
**
func2
)(
void
*
,
double
a
,
double
b
);
// NULL terminated
char
**
func2_name
;
// NULL terminated
char
**
func2_name
;
// NULL terminated
void
*
opaque
;
void
*
opaque
;
char
**
error
;
c
onst
c
har
**
error
;
#define VARS 10
#define VARS 10
double
var
[
VARS
];
double
var
[
VARS
];
}
Parser
;
}
Parser
;
...
@@ -379,7 +379,7 @@ static int verify_expr(AVEvalExpr * e) {
...
@@ -379,7 +379,7 @@ static int verify_expr(AVEvalExpr * e) {
AVEvalExpr
*
ff_parse
(
char
*
s
,
const
char
**
const_name
,
AVEvalExpr
*
ff_parse
(
char
*
s
,
const
char
**
const_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
char
**
error
){
c
onst
c
har
**
error
){
Parser
p
;
Parser
p
;
AVEvalExpr
*
e
;
AVEvalExpr
*
e
;
char
w
[
strlen
(
s
)
+
1
],
*
wp
=
w
;
char
w
[
strlen
(
s
)
+
1
],
*
wp
=
w
;
...
@@ -416,7 +416,7 @@ double ff_parse_eval(AVEvalExpr * e, double *const_value, void *opaque) {
...
@@ -416,7 +416,7 @@ double ff_parse_eval(AVEvalExpr * e, double *const_value, void *opaque) {
double
ff_eval2
(
char
*
s
,
double
*
const_value
,
const
char
**
const_name
,
double
ff_eval2
(
char
*
s
,
double
*
const_value
,
const
char
**
const_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
void
*
opaque
,
char
**
error
){
void
*
opaque
,
c
onst
c
har
**
error
){
AVEvalExpr
*
e
=
ff_parse
(
s
,
const_name
,
func1
,
func1_name
,
func2
,
func2_name
,
error
);
AVEvalExpr
*
e
=
ff_parse
(
s
,
const_name
,
func1
,
func1_name
,
func2
,
func2_name
,
error
);
double
d
;
double
d
;
if
(
!
e
)
return
NAN
;
if
(
!
e
)
return
NAN
;
...
@@ -430,7 +430,7 @@ attribute_deprecated double ff_eval(char *s, double *const_value, const char **c
...
@@ -430,7 +430,7 @@ attribute_deprecated double ff_eval(char *s, double *const_value, const char **c
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
void
*
opaque
){
void
*
opaque
){
char
*
error
=
NULL
;
c
onst
c
har
*
error
=
NULL
;
double
ret
;
double
ret
;
ret
=
ff_eval2
(
s
,
const_value
,
const_name
,
func1
,
func1_name
,
func2
,
func2_name
,
opaque
,
&
error
);
ret
=
ff_eval2
(
s
,
const_value
,
const_name
,
func1
,
func1_name
,
func2
,
func2_name
,
opaque
,
&
error
);
if
(
error
)
if
(
error
)
...
...
libavcodec/eval.h
View file @
20e4beae
...
@@ -55,7 +55,7 @@ double ff_eval(char *s, double *const_value, const char **const_name,
...
@@ -55,7 +55,7 @@ double ff_eval(char *s, double *const_value, const char **const_name,
double
ff_eval2
(
char
*
s
,
double
*
const_value
,
const
char
**
const_name
,
double
ff_eval2
(
char
*
s
,
double
*
const_value
,
const
char
**
const_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
void
*
opaque
,
char
**
error
);
void
*
opaque
,
c
onst
c
har
**
error
);
typedef
struct
ff_expr_s
AVEvalExpr
;
typedef
struct
ff_expr_s
AVEvalExpr
;
...
@@ -74,7 +74,7 @@ typedef struct ff_expr_s AVEvalExpr;
...
@@ -74,7 +74,7 @@ typedef struct ff_expr_s AVEvalExpr;
AVEvalExpr
*
ff_parse
(
char
*
s
,
const
char
**
const_name
,
AVEvalExpr
*
ff_parse
(
char
*
s
,
const
char
**
const_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func1
)(
void
*
,
double
),
const
char
**
func1_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
double
(
**
func2
)(
void
*
,
double
,
double
),
char
**
func2_name
,
char
**
error
);
c
onst
c
har
**
error
);
/**
/**
* Evaluates a previously parsed expression.
* Evaluates a previously parsed expression.
* @param const_value a zero terminated array of values for the identifers from ff_parse const_name
* @param const_value a zero terminated array of values for the identifers from ff_parse const_name
...
...
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