From 2d4a243810c5e1b540444b74aebe624f56408e25 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 11 Feb 2023 18:20:14 +0100 Subject: vo_gpu_next: expose --tone-mapping=st2094-40 and st2094-10 --- video/out/gpu/video.c | 4 +++- video/out/gpu/video.h | 2 ++ video/out/vo_gpu_next.c | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index c35372d69e..98b4ca08cf 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -384,7 +384,9 @@ const struct m_sub_options gl_video_conf = { {"linear", TONE_MAPPING_LINEAR}, {"spline", TONE_MAPPING_SPLINE}, {"bt.2390", TONE_MAPPING_BT_2390}, - {"bt.2446a", TONE_MAPPING_BT_2446A})}, + {"bt.2446a", TONE_MAPPING_BT_2446A}, + {"st2094-40", TONE_MAPPING_ST2094_40}, + {"st2094-10", TONE_MAPPING_ST2094_10})}, {"tone-mapping-param", OPT_FLOATDEF(tone_map.curve_param)}, {"inverse-tone-mapping", OPT_FLAG(tone_map.inverse)}, {"tone-mapping-crosstalk", OPT_FLOAT(tone_map.crosstalk), diff --git a/video/out/gpu/video.h b/video/out/gpu/video.h index b7f6e6b485..43acbf9384 100644 --- a/video/out/gpu/video.h +++ b/video/out/gpu/video.h @@ -98,6 +98,8 @@ enum tone_mapping { TONE_MAPPING_SPLINE, TONE_MAPPING_BT_2390, TONE_MAPPING_BT_2446A, + TONE_MAPPING_ST2094_40, + TONE_MAPPING_ST2094_10, }; enum tone_mapping_mode { diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index d4c0e76ef0..78c7a4c445 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1835,6 +1835,10 @@ static void update_render_options(struct vo *vo) [TONE_MAPPING_SPLINE] = &pl_tone_map_spline, [TONE_MAPPING_BT_2390] = &pl_tone_map_bt2390, [TONE_MAPPING_BT_2446A] = &pl_tone_map_bt2446a, +#if PL_API_VER >= 246 + [TONE_MAPPING_ST2094_40] = &pl_tone_map_st2094_40, + [TONE_MAPPING_ST2094_10] = &pl_tone_map_st2094_10, +#endif }; static const enum pl_gamut_mode gamut_modes[] = { -- cgit v1.2.3