home/mpv: Update hq profile

This commit is contained in:
Simon Bruder 2020-11-08 19:25:44 +01:00
parent b5616501b2
commit 8bf5eaef89
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -8,6 +8,23 @@ let
rev = "b37d0f12223720f5ce48e149678162ae0a984176"; rev = "b37d0f12223720f5ce48e149678162ae0a984176";
}; };
shaders = {
fsrcnnx_x2 = pkgs.fetchurl {
url = "https://github.com/igv/FSRCNN-TensorFlow/releases/download/1.1/FSRCNNX_x2_16-0-4-1.glsl";
sha256 = "1ik99yb424r6qzq4j9pp244yx6c6sq6khqrhv9n6qv4ndi1h2qmq";
};
SSimDownscaler = pkgs.fetchurl {
url = "https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10/raw/ac09db2c0664150863e85d5a4f9f0106b6443a12/SSimDownscaler.glsl";
sha256 = "1c3fp6llg0n8zdxadsg6g3kcvhqvikalbc9q61zgwvsx8q3d8rph";
};
KrigBilateral = pkgs.fetchurl {
url = "https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637/raw/c471ef6dcbd3c4a977e1c95dc40944ee38fad08a/KrigBilateral.glsl";
sha256 = "11s0h6i0y3h2nrfp6lax6hzwvjbn93akjr6d61jrmz09zdf1iwmc";
};
};
pitchcontrol = (stdenv.mkDerivation rec { pitchcontrol = (stdenv.mkDerivation rec {
name = "pitchcontrol.lua"; name = "pitchcontrol.lua";
scriptName = name; scriptName = name;
@ -156,11 +173,13 @@ in
hq = { hq = {
scale = "ewa_lanczossharp"; scale = "ewa_lanczossharp";
dscale = "ewa_lanczossharp"; dscale = "mitchell";
cscale = "ewa_lanczossharp"; linear-downscaling = "no"; # for KrigBilateral
cscale = "ewa_lanczos";
glsl-shader = [ glsl-shader = [
"${mpv-prescalers}/compute/nnedi3-nns256-win8x4.hook" "${shaders.SSimDownscaler}" # dscale
"${mpv-prescalers}/compute/ravu-zoom-r4-chroma.hook" "${shaders.KrigBilateral}" # cscale
"${shaders.fsrcnnx_x2}" # scale
]; ];
}; };