aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>2014-07-04 12:16:16 +0300
committerStefano Sabatini <stefasab@gmail.com>2014-07-17 11:29:43 +0200
commitdec87454deb2f2a314f309cd6c1fa636503a70ae (patch)
tree671570af397c5e2c8d1796e7974d7cfb5372ef33 /doc/filters.texi
parentf3e886c7dfcc6ca6e2b430b0978497da9136201d (diff)
downloadffmpeg-dec87454deb2f2a314f309cd6c1fa636503a70ae.tar.gz
lavfi/drawtext: add expansion function eif()
It evaluates expression and outputs it as integer value, using specified format. Address trac ticket #3699. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 0f73314a12..6bea105d36 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -3911,6 +3911,15 @@ example the text size is not known when evaluating the expression, so
the constants @var{text_w} and @var{text_h} will have an undefined
value.
+@item eif
+Evaluate the expression's value and output as formatted integer.
+
+First argument is expression to be evaluated, same as for @var{expr} function.
+Second argument specifies output format. Allowed values are 'x', 'X', 'd' and
+'u', they are treated exactly as in printf function.
+Third parameter is optional and sets the number of positions taken by output.
+Effectively this allows to add padding with zeros from the left.
+
@item gmtime
The time at which the filter is running, expressed in UTC.
It can accept an argument: a strftime() format string.