doc/filters: add pseudocolor example
authorPaul B Mahol <onemda@gmail.com>
Fri, 25 Aug 2017 12:27:21 +0000 (14:27 +0200)
committerPaul B Mahol <onemda@gmail.com>
Fri, 25 Aug 2017 12:35:34 +0000 (14:35 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
doc/filters.texi

index bc618a8..fb56c16 100644 (file)
@@ -11833,6 +11833,16 @@ The maximum allowed component value.
 
 All expressions default to "val".
 
+@subsection Examples
+
+@itemize
+@item
+Change too high luma values to gradient:
+@example
+pseudocolor='if(between(val,ymax,amax),lerp(ymin,ymax,(val-ymax)/(amax-ymax)),-1):if(between(val,ymax,amax),lerp(umax,umin,(val-ymax)/(amax-ymax)),-1):if(between(val,ymax,amax),lerp(vmin,vmax,(val-ymax)/(amax-ymax)),-1):-1'
+@end example
+@end itemize
+
 @section psnr
 
 Obtain the average, maximum and minimum PSNR (Peak Signal to Noise