Skip to content

Commit 233e896

Browse files
committed
video/out/gpu/video: make the target-contrast limit higher
OLEDs report min luminance of 0.0002 nits, while we couldn't set this with options due to limit. Set limit, so that we cannot exceed the hdr black value used in libplacebo in worst case scenario of target peak 10 nits.
1 parent d204051 commit 233e896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video/out/gpu/video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ const struct m_sub_options gl_video_conf = {
446446
{"hdr-reference-white", OPT_CHOICE(hdr_reference_white, {"auto", 0}),
447447
M_RANGE(10, 10000)},
448448
{"target-contrast", OPT_CHOICE(target_contrast, {"auto", 0}, {"inf", -1}),
449-
M_RANGE(10, 1000000)},
449+
M_RANGE(10, 10 / PL_COLOR_HDR_BLACK)},
450450
{"target-gamut", OPT_CHOICE_C(target_gamut, pl_csp_prim_names)},
451451
{"tone-mapping", OPT_CHOICE(tone_map.curve,
452452
{"auto", TONE_MAPPING_AUTO},

0 commit comments

Comments
 (0)