summaryrefslogtreecommitdiff
path: root/doc/utils.texi
diff options
context:
space:
mode:
authorKevin Mark <kmark937@gmail.com>2017-06-06 00:43:13 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-06 18:31:47 +0200
commit482566ccc3fdcdbaf0f1e78309bf8ea9ddbce66b (patch)
treea463908313500b6c2046734f63595ae0eeef4ff5 /doc/utils.texi
parent850cbd496f8d583467cf6194dec3f6264efc0521 (diff)
libavutil/eval: Add round function to expression parser
We have floor, ceil, and trunc. Let's add round. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/utils.texi')
-rw-r--r--doc/utils.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/utils.texi b/doc/utils.texi
index 1734439459..d65bdf0b0e 100644
--- a/doc/utils.texi
+++ b/doc/utils.texi
@@ -914,6 +914,9 @@ various input values that the expression can access through
@code{ld(0)}. When the expression evaluates to 0 then the
corresponding input value will be returned.
+@item round(expr)
+Round the value of expression @var{expr} to the nearest integer. For example, "round(1.5)" is "2.0".
+
@item sin(x)
Compute sine of @var{x}.