diff options
author | Niklas Haas <git@haasn.dev> | 2023-02-11 18:20:14 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-02-13 17:52:35 +0100 |
commit | 2d4a243810c5e1b540444b74aebe624f56408e25 (patch) | |
tree | 44109cbde786382fe4c05bdcabe2f8acc8ec129c /video/out | |
parent | 79b093f2108d3098ee68e62299c9a9436596f2ee (diff) | |
download | mpv-2d4a243810c5e1b540444b74aebe624f56408e25.tar.bz2 mpv-2d4a243810c5e1b540444b74aebe624f56408e25.tar.xz |
vo_gpu_next: expose --tone-mapping=st2094-40 and st2094-10
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gpu/video.c | 4 | ||||
-rw-r--r-- | video/out/gpu/video.h | 2 | ||||
-rw-r--r-- | video/out/vo_gpu_next.c | 4 |
3 files changed, 9 insertions, 1 deletions
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[] = { |