[FFmpeg-cvslog] eval: document recently added random(), hypot(), gcd().

Clément Bœsch git at videolan.org
Tue Oct 11 07:33:05 CEST 2011

ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sat Oct  8 12:22:44 2011 +0200| [d557152285afd4e0d84a138d482b04d1ca14abe3] | committer: Clément Bœsch

eval: document recently added random(), hypot(), gcd().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d557152285afd4e0d84a138d482b04d1ca14abe3

 doc/eval.texi |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/doc/eval.texi b/doc/eval.texi
index ac27750..b41f31e 100644
--- a/doc/eval.texi
+++ b/doc/eval.texi
@@ -83,6 +83,20 @@ Return 1.0 if @var{expr} is zero, 0.0 otherwise.
 @item pow(x, y)
 Compute the power of @var{x} elevated @var{y}, it is equivalent to
+ at item random(x)
+Return a pseudo random value between 0.0 and 1.0. @var{x} is the index of the
+internal variable which will be used to save the seed/state.
+ at item hypot(x, y)
+This function is similar to the C function with the same name; it returns
+"sqrt(@var{x}*@var{x} + @var{y}*@var{y})", the length of the hypotenuse of a
+right triangle with sides of length @var{x} and @var{y}, or the distance of the
+point (@var{x}, @var{y}) from the origin.
+ at item gcd(x, y)
+Return the greatest common divisor of @var{x} and @var{y}. If both @var{x} and
+ at var{y} are 0 or either or both are less than zero then behavior is undefined.
 @end table
 Note that:

More information about the ffmpeg-cvslog mailing list