[FFmpeg-cvslog] doc/filters: add pseudocolor example

Paul B Mahol git at videolan.org
Fri Aug 25 15:35:41 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Aug 25 14:27:21 2017 +0200| [71907f25093966301770df11e61c7a0c76d6ac5e] | committer: Paul B Mahol

doc/filters: add pseudocolor example

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71907f25093966301770df11e61c7a0c76d6ac5e
---

 doc/filters.texi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/doc/filters.texi b/doc/filters.texi
index bc618a8eb9..fb56c1654a 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -11833,6 +11833,16 @@ The maximum allowed component value.
 
 All expressions default to "val".
 
+ at subsection Examples
+
+ at itemize
+ at item
+Change too high luma values to gradient:
+ at 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'
+ at end example
+ at end itemize
+
 @section psnr
 
 Obtain the average, maximum and minimum PSNR (Peak Signal to Noise



More information about the ffmpeg-cvslog mailing list