diff options
author | Niklas Haas <git@haasn.dev> | 2022-01-03 04:07:52 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-01-07 06:28:14 +0100 |
commit | 2332445d8d78d569015cabbacb3d9cf5552e5c73 (patch) | |
tree | f346ca0723ec2d14567ba4452395635278f09571 /video/out/placebo/utils.c | |
parent | a9cb2e2821adb40e7548e8233390e79706104041 (diff) | |
download | mpv-2332445d8d78d569015cabbacb3d9cf5552e5c73.tar.bz2 mpv-2332445d8d78d569015cabbacb3d9cf5552e5c73.tar.xz |
vo_gpu_next: use new HDR metadata options
Properly forward the HDR metadata from the mpi to the equivalent (new)
fields in pl_color_space. Used by the new tone mapping code.
Diffstat (limited to 'video/out/placebo/utils.c')
-rw-r--r-- | video/out/placebo/utils.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/video/out/placebo/utils.c b/video/out/placebo/utils.c index da16b65745..35cca963c4 100644 --- a/video/out/placebo/utils.c +++ b/video/out/placebo/utils.c @@ -107,20 +107,6 @@ enum pl_color_transfer mp_trc_to_pl(enum mp_csp_trc trc) MP_ASSERT_UNREACHABLE(); } -enum pl_color_light mp_light_to_pl(enum mp_csp_light light) -{ - switch (light) { - case MP_CSP_LIGHT_AUTO: return PL_COLOR_LIGHT_UNKNOWN; - case MP_CSP_LIGHT_DISPLAY: return PL_COLOR_LIGHT_DISPLAY; - case MP_CSP_LIGHT_SCENE_HLG: return PL_COLOR_LIGHT_SCENE_HLG; - case MP_CSP_LIGHT_SCENE_709_1886: return PL_COLOR_LIGHT_SCENE_709_1886; - case MP_CSP_LIGHT_SCENE_1_2: return PL_COLOR_LIGHT_SCENE_1_2; - case MP_CSP_LIGHT_COUNT: return PL_COLOR_LIGHT_COUNT; - } - - MP_ASSERT_UNREACHABLE(); -} - enum pl_color_system mp_csp_to_pl(enum mp_csp csp) { switch (csp) { |