aboutsummaryrefslogtreecommitdiffstats
path: root/doc/eval.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-03-13 14:09:10 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-03-17 00:22:47 +0100
commitb2098d2417a085d33d99738dd7f963c7b260a0bf (patch)
tree17d9adea1b9546f3607d1166dbe9e561e23ef5b6 /doc/eval.texi
parentd8dccf69ff2df7014a2bb8e0e17828a820f45b27 (diff)
downloadffmpeg-b2098d2417a085d33d99738dd7f963c7b260a0bf.tar.gz
lavu/eval: add bitor and bitand functions
Warning note suggested by Reimar.
Diffstat (limited to 'doc/eval.texi')
-rw-r--r--doc/eval.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/eval.texi b/doc/eval.texi
index 3b7964ce4c..e1a5c0a969 100644
--- a/doc/eval.texi
+++ b/doc/eval.texi
@@ -32,6 +32,17 @@ Compute arcsine of @var{x}.
@item atan(x)
Compute arctangent of @var{x}.
+@item bitand(x, y)
+@item bitor(x, y)
+Compute bitwise and/or operation on @var{x} and @var{y}.
+
+The results of the evaluation of @var{x} and @var{y} are converted to
+integers before executing the bitwise operation.
+
+Note that both the conversion to integer and the conversion back to
+floating point can lose precision. Beware of unexpected results for
+large numbers (usually 2^53 and larger).
+
@item ceil(expr)
Round the value of expression @var{expr} upwards to the nearest
integer. For example, "ceil(1.5)" is "2.0".