diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-03-27 22:56:49 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-05 15:34:16 +0200 |
commit | 25601bc5649fb71f645e9a619871cc85170f5dd8 (patch) | |
tree | 782350908d0bae27dd85bd5181d9c29e38c7c68b /doc/eval.texi | |
parent | d1eb50bb29caad9745631759265f475177df99b9 (diff) | |
download | ffmpeg-25601bc5649fb71f645e9a619871cc85170f5dd8.tar.gz |
eval: add support for trunc, ceil, and floor functions
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Diffstat (limited to 'doc/eval.texi')
-rw-r--r-- | doc/eval.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/eval.texi b/doc/eval.texi index 99cd034cdf..d0e04c0c3b 100644 --- a/doc/eval.texi +++ b/doc/eval.texi @@ -60,6 +60,18 @@ The function returns the loaded value. Evaluate expression @var{expr} while the expression @var{cond} is non-zero, and returns the value of the last @var{expr} evaluation, or NAN if @var{cond} was always false. + +@item ceil(expr) +Round the value of expression @var{expr} upwards to the nearest +integer. For example, "ceil(1.5)" is "2.0". + +@item floor(expr) +Round the value of expression @var{expr} downwards to the nearest +integer. For example, "floor(-1.5)" is "-2.0". + +@item trunc(expr) +Round the value of expression @var{expr} towards zero to the nearest +integer. For example, "trunc(-1.5)" is "-1.0". @end table Note that: |