This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // vim: set ft=glsl: | |
| /* | |
| LumaSharpenHook 0.3 | |
| original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk | |
| port to glsl by Anon | |
| It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image. | |
| It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- settings | |
| -- key_binding: press the key specified below | |
| -- to cycle between denoise filters below | |
| local key_binding = "n" | |
| -- denoisers: specify names of denoise libavfilter filters | |
| -- from `mpv --vf=lavfi=help` command | |
| -- where the last 3 filters (dctdnoiz, owdenoise, nlmeans) | |
| -- are too slow to be used in playback | |
| local denoisers = { |