mpv: Add fullscreen to the anime profile

This commit is contained in:
PapaTutuWawa 2021-08-02 21:51:25 +02:00
parent f790636373
commit d7692171d8

View File

@ -1,7 +1,7 @@
{ pkgs, ... }:
let
makeMpvProfile = shader: {
makeMpvProfile = { shader, additional ? {} }: {
glsl-shaders = "~/.config/mpv/shaders/${shader}";
scale = "ewa_lanczossharp";
cscale = "ewa_lanczossharp";
@ -12,7 +12,7 @@ let
video-sync = "display-resample";
interpolation = "";
tscale = "oversample";
};
} // additional;
in {
environment.systemPackages = [ pkgs.mpv ];
@ -29,8 +29,15 @@ in {
};
defaultProfiles = [ "anime" ];
profiles = {
anime = (makeMpvProfile "Anime4K_Upscale_CNN_UL_x2_Deblur.glsl");
"anime-denoise" = (makeMpvProfile "Anime4K_Upscale_CNN_UL_x2_Denoise.glsl");
anime = (makeMpvProfile {
shader = "Anime4K_Upscale_CNN_UL_x2_Deblur.glsl";
additional = {
fullscreen = "";
};
});
"anime-denoise" = (makeMpvProfile {
shader = "Anime4K_Upscale_CNN_UL_x2_Denoise.glsl";
});
};
};
};