]> git.sesse.net Git - ffmpeg/blobdiff - doc/eval.texi
RTMPS protocol support
[ffmpeg] / doc / eval.texi
index d8c693f3047258d9bf48dc4e6877ece4a28ff81d..e1fd7ee48497f54dbf4670e36c3f1e6ef1d9fd68 100644 (file)
@@ -1,7 +1,7 @@
 @chapter Expression Evaluation
 @c man begin EXPRESSION EVALUATION
 
-When evaluating an arithemetic expression, Libav uses an internal
+When evaluating an arithmetic expression, Libav uses an internal
 formula evaluator, implemented through the @file{libavutil/eval.h}
 interface.
 
@@ -34,6 +34,8 @@ The following functions are available:
 @item abs(x)
 @item squish(x)
 @item gauss(x)
+@item isinf(x)
+Return 1.0 if @var{x} is +/-INFINITY, 0.0 otherwise.
 @item isnan(x)
 Return 1.0 if @var{x} is NAN, 0.0 otherwise.
 
@@ -53,7 +55,7 @@ returns the value stored in the internal variable.
 
 @item ld(var)
 Allow to load the value of the internal variable with number
-@var{var}, which was previosly stored with st(@var{var}, @var{expr}).
+@var{var}, which was previously stored with st(@var{var}, @var{expr}).
 The function returns the loaded value.
 
 @item while(cond, expr)
@@ -72,6 +74,13 @@ 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".
+
+@item sqrt(expr)
+Compute the square root of @var{expr}. This is equivalent to
+"(@var{expr})^.5".
+
+@item not(expr)
+Return 1.0 if @var{expr} is zero, 0.0 otherwise.
 @end table
 
 Note that:
@@ -89,11 +98,6 @@ is equivalent to
 A*B + not(A)*C
 @end example
 
-When A evaluates to either 1 or 0, that is the same as
-@example
-A*B + eq(A,0)*C
-@end example
-
 In your C code, you can extend the list of unary and binary functions,
 and define recognized constants, so that they are available for your
 expressions.