summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-03-30 14:54:52 +0200
committerNiklas Haas <git@nand.wakku.to>2015-04-04 15:47:14 +0200
commitbfbe1342f7f9eebaf0fce7237f92e94987411528 (patch)
tree8d943a4a4c2975064328384ec03e8cdec131106e /video/csputils.h
parentb51ff8702b24f58cc70a143deca5de7c6453d2c8 (diff)
downloadmpv-bfbe1342f7f9eebaf0fce7237f92e94987411528.tar.bz2
mpv-bfbe1342f7f9eebaf0fce7237f92e94987411528.tar.xz
csputils: add some missing colorspaces
With target-prim and target-trc it makes sense to include some common colorspaces that aren't strictly speaking used for video.
Diffstat (limited to 'video/csputils.h')
-rw-r--r--video/csputils.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/video/csputils.h b/video/csputils.h
index 449d883ecb..a0e4ef614f 100644
--- a/video/csputils.h
+++ b/video/csputils.h
@@ -65,6 +65,10 @@ enum mp_csp_prim {
MP_CSP_PRIM_BT_709,
MP_CSP_PRIM_BT_2020,
MP_CSP_PRIM_BT_470M,
+ MP_CSP_PRIM_APPLE,
+ MP_CSP_PRIM_ADOBE,
+ MP_CSP_PRIM_PRO_PHOTO,
+ MP_CSP_PRIM_CIE_1931,
MP_CSP_PRIM_COUNT
};
@@ -75,12 +79,14 @@ enum mp_csp_trc {
MP_CSP_TRC_BT_1886,
MP_CSP_TRC_SRGB,
MP_CSP_TRC_LINEAR,
+ MP_CSP_TRC_GAMMA18,
MP_CSP_TRC_GAMMA22,
+ MP_CSP_TRC_GAMMA28,
+ MP_CSP_TRC_PRO_PHOTO,
MP_CSP_TRC_COUNT
};
-// Any enum mp_csp_trc value is a valid index (except MP_CSP_TRC_COUNT)
-extern const char *const mp_csp_trc_names[MP_CSP_TRC_COUNT];
+extern const struct m_opt_choice_alternatives mp_csp_trc_names[];
// These constants are based on the ICC specification (Table 23) and match
// up with the API of LittleCMS, which treats them as integers.