Skip to content

Commit b141331

Browse files
committed
render/cm: Add cm_srgb_eotf
1 parent b8c19df commit b141331

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

content/Configuring/Monitors.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ Use `sdrbrightness, B` and `sdrsaturation, S` to control SDR brightness and satu
250250
monitor = eDP-1, 2880x1800@90, 0x0, 1, bitdepth, 10, cm, hdr, sdrbrightness, 1.2, sdrsaturation, 0.98
251251
```
252252

253+
The default transfer function assumed on an SDR display for sRGB content is defined by `, cm_srgb_eotf, X`. The default (`0`) is the sRGB piecewise function. This can be changed to Gamma 2.2 by setting it to `1`.
254+
253255
### VRR
254256

255257
Per-display VRR can be done by adding `, vrr, X` where `X` is the mode from the

content/Configuring/Variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ _Subcategory `render:`_
517517
| cm_auto_hdr | Auto-switch to HDR in fullscreen when needed. 0 - off, 1 - switch to `cm, hdr`, 2 - switch to `cm, hdredid` | int | 1 |
518518
| new_render_scheduling | Automatically uses triple buffering when needed, improves FPS on underpowered devices. | bool | false |
519519
| non_shader_cm | Enable CM without shader. 0 - disable, 1 - whenever possible, 2 - DS and passthrough only, 3 - don't block DS when non-shader CM isn't available | int | 2 |
520+
| cm_srgb_eotf | Default transfer function for displaying SDR surfaces in HDR mode. 0 - Treat unspecified as sRGB, 1 - Treat unspecified as Gamma 2.2, 2 - Treat unspecified and sRGB as Gamma 2.2 | int | 0 |
520521

521522
`cm_auto_hdr` requires `--target-colorspace-hint-mode=source` mpv option to work with mpv versions greater than v0.40.0
522523

0 commit comments

Comments
 (0)