diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-23 13:13:50 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-19 12:38:34 +0200 |
commit | 8cee38a298bb818a400f0dce0efd54d593250eec (patch) | |
tree | 656773e37b2d96dbc24ca23040b4231930e5bcb9 /doc | |
parent | 9bc393908a6b522c93034b87b8f9f21cb13d7d69 (diff) | |
download | ffmpeg-8cee38a298bb818a400f0dce0efd54d593250eec.tar.gz |
eval: implement not() expression
Diffstat (limited to 'doc')
-rw-r--r-- | doc/eval.texi | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/eval.texi b/doc/eval.texi index 4a9495cf30..7d8106b89e 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. |