blob: 76f860c27bbc7c60b098c4d3e80dd8c6256fd08f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
flake.modules.homeManager.mpv = {
programs.mpv = {
enable = true;
config = {
vo = "gpu-next";
gpu-api = "vulkan";
gpu-context = "waylandvk";
target-colorspace-hint = "auto";
target-colorspace-hint-mode = "target";
target-trc = "pq";
target-prim = "bt.2020";
target-peak = 500;
target-contrast = "inf";
hdr-reference-white = 203;
tone-mapping = "auto";
hdr-compute-peak = "auto";
inverse-tone-mapping = "no";
};
bindings = {
UP = "add chapter 1";
DOWN = "add chapter -1";
"CTRL+3" = "apply-profile SDR_HDR_EFFECT";
"CTRL+SHIFT+3" = "apply-profile SDR_HDR_EFFECT restore";
};
profiles = {
DOVI = {
profile-restore = "copy";
profile-cond = ''
get("video-dec-params/colormatrix", "") == "dolbyvision"
'';
tone-mapping = "auto";
inverse-tone-mapping = "no";
};
SDR_HDR_EFFECT = {
profile-restore = "copy";
target-peak = 500;
hdr-reference-white = 203;
tone-mapping = "spline";
inverse-tone-mapping = "yes";
};
};
};
};
}
|