diff options
author | Kevin Mark <kmark937@gmail.com> | 2017-06-06 00:43:13 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-06 18:31:47 +0200 |
commit | 482566ccc3fdcdbaf0f1e78309bf8ea9ddbce66b (patch) | |
tree | a463908313500b6c2046734f63595ae0eeef4ff5 /doc/utils.texi | |
parent | 850cbd496f8d583467cf6194dec3f6264efc0521 (diff) | |
download | ffmpeg-482566ccc3fdcdbaf0f1e78309bf8ea9ddbce66b.tar.gz |
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.texi | 3 |
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}. |