diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-01-23 00:02:36 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-01-24 12:19:01 +0100 |
commit | 2ed0803c6c994c540bdf0849473e1baaad6af511 (patch) | |
tree | 13abbc72c1972a8aeb0788d7262bf78f6bb4c1b6 /doc/eval.texi | |
parent | 056664ff25c674e2bb5c448d4cd646a09fc87607 (diff) | |
download | ffmpeg-2ed0803c6c994c540bdf0849473e1baaad6af511.tar.gz |
lavu/eval: extend if/ifnot functions to accept a third parameter
Add support to an if/else construct, simplify logic in expressions.
Diffstat (limited to 'doc/eval.texi')
-rw-r--r-- | doc/eval.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/eval.texi b/doc/eval.texi index a1faff6e16..f691821d1a 100644 --- a/doc/eval.texi +++ b/doc/eval.texi @@ -151,10 +151,18 @@ Return the greatest common divisor of @var{x} and @var{y}. If both @var{x} and Evaluate @var{x}, and if the result is non-zero return the result of the evaluation of @var{y}, return 0 otherwise. +@item if(x, y, z) +Evaluate @var{x}, and if the result is non-zero return the evaluation +result of @var{y}, otherwise the evaluation result of @var{z}. + @item ifnot(x, y) Evaluate @var{x}, and if the result is zero return the result of the evaluation of @var{y}, return 0 otherwise. +@item ifnot(x, y, z) +Evaluate @var{x}, and if the result is zero return the evaluation +result of @var{y}, otherwise the evaluation result of @var{z}. + @item taylor(expr, x) taylor(expr, x, id) Evaluate a taylor series at x. expr represents the LD(id)-th derivates of f(x) at 0. If id is not specified |