Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-23 15:13:50 +0400
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-25 14:42:19 +0400
commit3c2c52baecb6c8c2af62989462804af7765694c4 (patch)
treed8fa87db9c675efbf8150f5afec196f4a114effb /doc
parentcf06e3e4dd8c1023fb1dcad905f3f77fdc1cf3fb (diff)
eval: implement not() expression
Diffstat (limited to 'doc')
-rw-r--r--doc/eval.texi8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/eval.texi b/doc/eval.texi
index e07267bdfa..25c0ea6524 100644
--- a/doc/eval.texi
+++ b/doc/eval.texi
@@ -76,6 +76,9 @@ integer. For example, "trunc(-1.5)" is "-1.0".
@item sqrt(expr)
Compute the square root of @var{expr}. This is equivalent to
"(@var{expr})^.5".
+
+@item not(expr)
+Return 1.0 if @var{expr} is zero, 0.0 otherwise.
@end table
Note that:
@@ -93,11 +96,6 @@ is equivalent to
A*B + not(A)*C
@end example
-When A evaluates to either 1 or 0, that is the same as
-@example
-A*B + eq(A,0)*C
-@end example
-
In your C code, you can extend the list of unary and binary functions,
and define recognized constants, so that they are available for your
expressions.