1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

doc/filters: add pseudocolor example

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-08-25 14:27:21 +02:00
parent 3ddd10290a
commit 71907f2509

View 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