summaryrefslogtreecommitdiff
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-01 12:47:51 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-01 16:05:15 +0100
commit13c39e96767737b4377c26e76d91f90922e24acc (patch)
treebcb911f23b3f8cc19b59f6b505aaad566d0c1d2c /doc/filters.texi
parent5473f6258c63d21494cbd8f176b8840713150b82 (diff)
lavfi/geq: add T variable and example
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 0b57e03e4c..e25f548c98 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -2473,6 +2473,9 @@ ratio between the corresponding luma plane number of pixels and the current
plane ones. E.g. for YUV4:2:0 the values are @code{1,1} for the luma plane, and
@code{0.5,0.5} for chroma planes.
+@item T
+Time of the current frame, expressed in seconds.
+
@item p(x, y)
Return the value of the pixel at location (@var{x},@var{y}) of the current
plane.
@@ -2503,6 +2506,13 @@ geq=p(W-X\,Y)
@end example
@item
+Generate a bidimensional sine wave, with angle @code{PI/3} and a
+wavelength of 100 pixels:
+@example
+geq=128 + 100*sin(2*(PI/100)*(cos(PI/3)*(X-50*T) + sin(PI/3)*Y)):128:128
+@end example
+
+@item
Generate a fancy enigmatic moving light:
@example
nullsrc=s=256x256,geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)^2*1000000*sin(N*0.02):128:128