diff options
author | Leo Izen <leo.izen@gmail.com> | 2023-02-27 10:39:33 -0500 |
---|---|---|
committer | Leo Izen <leo.izen@gmail.com> | 2023-03-05 22:37:05 -0500 |
commit | 34ed2ac2256c7c613402c10353d08ec1d7907166 (patch) | |
tree | 80ed7a4034b93a44cb361cd2a682b9058bb3e13f /video/out | |
parent | 22e326465251a8324c138b0570217dd68ec57184 (diff) | |
download | mpv-34ed2ac2256c7c613402c10353d08ec1d7907166.tar.bz2 mpv-34ed2ac2256c7c613402c10353d08ec1d7907166.tar.xz |
video: add missing libplacebo colorspace enums
Add some missing libplacebo primaries and transfer enums to mpv's enum
constant tables, and update the functions that convert between the two.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/placebo/utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/placebo/utils.c b/video/out/placebo/utils.c index 03a2fdd005..961ffc0b97 100644 --- a/video/out/placebo/utils.c +++ b/video/out/placebo/utils.c @@ -85,6 +85,15 @@ enum pl_color_primaries mp_prim_to_pl(enum mp_csp_prim prim) case MP_CSP_PRIM_DISPLAY_P3: return PL_COLOR_PRIM_DISPLAY_P3; case MP_CSP_PRIM_V_GAMUT: return PL_COLOR_PRIM_V_GAMUT; case MP_CSP_PRIM_S_GAMUT: return PL_COLOR_PRIM_S_GAMUT; + case MP_CSP_PRIM_EBU_3213: return PL_COLOR_PRIM_EBU_3213; + case MP_CSP_PRIM_FILM_C: return PL_COLOR_PRIM_FILM_C; +#if PL_API_VER >= 230 + case MP_CSP_PRIM_ACES_AP0: return PL_COLOR_PRIM_ACES_AP0; + case MP_CSP_PRIM_ACES_AP1: return PL_COLOR_PRIM_ACES_AP1; +#else + case MP_CSP_PRIM_ACES_AP0: + case MP_CSP_PRIM_ACES_AP1: return PL_COLOR_PRIM_UNKNOWN; +#endif case MP_CSP_PRIM_COUNT: return PL_COLOR_PRIM_COUNT; } |