From 22bdba7a93ba23a8d61c84676b5c5b75fdc5b860 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 17 Sep 2016 19:06:36 +0200 Subject: [PATCH] doc/filters: add two lut2 examples Signed-off-by: Paul B Mahol --- doc/filters.texi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index a6f36749b9..070e57d40f 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -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.