aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLuca Barbato2011-12-01 11:43:11 +0100
committerLuca Barbato2011-12-03 01:35:29 +0100
commit2cf74eca70759320200f06efe4a09bd69e169dec (patch)
tree6454bbbf7dd680db0c7b3e831205bf996485bd15 /doc
parentec11ff8407eadc65f4225f83e778c504c00ce037 (diff)
drawtext: make x and y parametric
Introduce variables "E", "PHI", "PI", "main_w"/"W", "main_h"/"H", "text_w"/"w", "text_h"/"h", "x", "y", "n" and "t" in line with vf_overlay and refactor the code accordingly.
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 4b38813fed..101bec6d88 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -505,6 +505,32 @@ If both text and textfile are specified, an error is thrown.
@item x, y
The offsets where text will be drawn within the video frame.
Relative to the top/left border of the output image.
+They accept expressions similar to the @ref{overlay} filter:
+@table @option
+
+@item x, y
+the computed values for @var{x} and @var{y}. They are evaluated for
+each new frame.
+
+@item main_w, main_h
+main input width and height
+
+@item W, H
+same as @var{main_w} and @var{main_h}
+
+@item text_w, text_h
+rendered text width and height
+
+@item w, h
+same as @var{text_w} and @var{text_h}
+
+@item n
+the number of frames processed, starting from 0
+
+@item t
+timestamp expressed in seconds, NAN if the input timestamp is unknown
+
+@end table
The default value of @var{x} and @var{y} is 0.
@@ -1048,6 +1074,7 @@ other parameters is 0.
These parameters correspond to the parameters assigned to the
libopencv function @code{cvSmooth}.
+@anchor{overlay}
@section overlay
Overlay one video on top of another.