doc/filters: add two lut2 examples
authorPaul B Mahol <onemda@gmail.com>
Sat, 17 Sep 2016 17:06:36 +0000 (19:06 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 17 Sep 2016 17:16:18 +0000 (19:16 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
doc/filters.texi

index a6f3674..070e57d 100644 (file)
@@ -9362,6 +9362,22 @@ The second input video bit depth.
 
 All expressions default to "x".
 
+@subsection Examples
+
+@itemize
+@item
+Highlight differences between two RGB video streams:
+@example
+lut2='ifnot(x-y,0,pow(2,bdx)-1):ifnot(x-y,0,pow(2,bdx)-1):ifnot(x-y,0,pow(2,bdx)-1)'
+@end example
+
+@item
+Highlight differences between two YUV video streams:
+@example
+lut2='ifnot(x-y,0,pow(2,bdx)-1):ifnot(x-y,pow(2,bdx-1),pow(2,bdx)-1):ifnot(x-y,pow(2,bdx-1),pow(2,bdx)-1)'
+@end example
+@end itemize
+
 @section maskedclamp
 
 Clamp the first input stream with the second input and third input stream.