Values below 1.0 reduce saturation and values above 1.0 increase saturation. Do not overdo it 0.5 to 1.5 is probably the most you can get away with without ruining colors. Saturation adjustment used to desaturate or resaturate blue in the output. Saturation adjustment used to desaturate or resaturate green in the output. Saturation adjustment used to desaturate or resaturate red in the output. Hue adjustment used to correct hue shift. The default is 0.42, standard for Rec.709. The valid range is 0-1000.įinal gamma for the output. This parameter is relevant only for mode="hlg". Higher values increase the resulting black level. This is an integer (with arbitrary scale) that controls the black level of the output. For mode="hlg", the valid range is 1-10000. Higher values increase the resulting output brightness.įor mode="pq", the valid range for white is 1-2000. This is an integer (with arbitrary scale) that controls the overall brightness of the output. Syntax and Parameters DGHDRtoSDR (clip, int "white", int "black", float "gamma", float "hue", float "r", float "g", float "b", float tm", float "roll", bool "fulldepth", string "impl", string "mode")
Use the parameter impl="sw" to run in software mode.
If you try to run in CUDA mode without an nVidia card and driver installed, you will get an error. This filter runs on both CUDA and in software mode. The input must be YUV420P16, e.g., from DGSource() with a HDR10 source stream. # repair(1), Lmode=-5 -> repair(5).This AviSynth+/VapourSynth filter converts HDR10 PQ or HLG from UHD blurays to 8-bit SDR YV12 or 10-bit SDR stored in YUV420P16. # Damp High: reduce sharpening for big changes # Damp Low: reduce sharpening for small changes # - differences above Szrp are reduced (reduced sharpening) # - differences below Szrp are amplified (overdrive sharpening) # Example: last.FFT3DFilter().LSFmod(source=last,Lmode=0,soft=0) # In this mode, you can safely set Lmode=0 & PP=off # If source is defined, LSFmod doesn't sharp more a denoised clip than this source clip # Mode to avoid banding & oil painting (or face wax) effect of sharpening # Mode to avoid noise sharpening & ringing # =2 : Nonlinear sharpening (corrected version) # - added warning about bad settings (no more silent) # - added new calculation for soft (soft=-2) # v1.3 : - changed a little Smethod=3&5 (same effect, but more precise) # v1.4 : - changed defaults="new" to defaults="slow" & defaults="fast" # v1.5 : - fixed LUT expression (thanks to Didée) # v1.8 : - changed preblur to allow more tweaking (bool->string) # - default preset is now defaults="fast" /!\
# LimitedSharpenFaster MOD : function LSFmod() #