[vlc-devel] [PATCH] vout: libplacebo: add PL_COLOR_PRIM_DISPLAY_P3

Niklas Haas vlc at haasn.xyz
Fri Dec 7 09:26:17 CET 2018


From: Niklas Haas <git at haasn.xyz>

This was added to the list of display primaries in libplacebo 0.5.0, but
we never added it to this list. No ifdef is needed because we already
require libplacebo >= 0.5.0 in our configure.ac.

We add it to the end of the list to avoid breaking existing vlcrc, even
though the order is less pretty this way.
---
 modules/video_output/placebo_utils.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/placebo_utils.h b/modules/video_output/placebo_utils.h
index ab7caf4e1c..1b216adb09 100644
--- a/modules/video_output/placebo_utils.h
+++ b/modules/video_output/placebo_utils.h
@@ -82,6 +82,7 @@ static const int prim_values[] = {
     PL_COLOR_PRIM_DCI_P3,
     PL_COLOR_PRIM_V_GAMUT,
     PL_COLOR_PRIM_S_GAMUT,
+    PL_COLOR_PRIM_DISPLAY_P3,
 };
 
 static const char * const prim_text[] = {
@@ -98,6 +99,7 @@ static const char * const prim_text[] = {
     "DCI-P3 (Digital Cinema)",
     "Panasonic V-Gamut (VARICAM)",
     "Sony S-Gamut",
+    "Display-P3 (Digital Cinema with D65)",
 };
 
 #define TRC_TEXT "Display gamma / transfer function"
-- 
2.19.2



More information about the vlc-devel mailing list