summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-02-01 18:35:15 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-02-01 18:35:15 +0100
commit986540b65f6eb6d9fed40d7da9e58b9bbcee35ae (patch)
tree5bf8140c22ac6b0b661c8229d2e376dfc1e5cd53 /doc
parent902fa77fd716260ec3de59b4df87a7870c81a4e1 (diff)
doc/filters: create a dedicated examples section for lut*, and itemize
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi42
1 files changed, 33 insertions, 9 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 3334787fc7..c6f0d249d1 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -3348,34 +3348,58 @@ expression
All expressions default to "val".
-Some examples follow:
+@subsection Examples
+
+@itemize
+@item
+Negate input video:
@example
-# negate input video
lutrgb="r=maxval+minval-val:g=maxval+minval-val:b=maxval+minval-val"
lutyuv="y=maxval+minval-val:u=maxval+minval-val:v=maxval+minval-val"
+@end example
-# the above is the same as
+The above is the same as:
+@example
lutrgb="r=negval:g=negval:b=negval"
lutyuv="y=negval:u=negval:v=negval"
+@end example
-# negate luminance
+@item
+Negate luminance:
+@example
lutyuv=y=negval
+@end example
-# remove chroma components, turns the video into a graytone image
+@item
+Remove chroma components, turns the video into a graytone image:
+@example
lutyuv="u=128:v=128"
+@end example
-# apply a luma burning effect
+@item
+Apply a luma burning effect:
+@example
lutyuv="y=2*val"
+@end example
-# remove green and blue components
+@item
+Remove green and blue components:
+@example
lutrgb="g=0:b=0"
+@end example
-# set a constant alpha channel value on input
+@item
+Set a constant alpha channel value on input:
+@example
format=rgba,lutrgb=a="maxval-minval/2"
+@end example
-# correct luminance gamma by a 0.5 factor
+@item
+Correct luminance gamma by a 0.5 factor:
+@example
lutyuv=y=gammaval(0.5)
@end example
+@end itemize
@section mp