summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/options.c6
-rw-r--r--options/options.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index ea79a7d609..d5f751b9cf 100644
--- a/options/options.c
+++ b/options/options.c
@@ -399,6 +399,12 @@ const m_option_t mp_opts[] = {
({"auto", MP_CSP_LEVELS_AUTO},
{"limited", MP_CSP_LEVELS_TV},
{"full", MP_CSP_LEVELS_PC})),
+ OPT_CHOICE("colormatrix-primaries", requested_primaries, 0,
+ ({"auto", MP_CSP_PRIM_AUTO},
+ {"BT.601-525", MP_CSP_PRIM_BT_601_525},
+ {"BT.601-625", MP_CSP_PRIM_BT_601_625},
+ {"BT.709", MP_CSP_PRIM_BT_709},
+ {"BT.2020", MP_CSP_PRIM_BT_2020})),
OPT_CHOICE_OR_INT("video-rotate", video_rotate, 0, 0, 359,
({"no", -1})),
diff --git a/options/options.h b/options/options.h
index 83b44c1e3d..100fded4a3 100644
--- a/options/options.h
+++ b/options/options.h
@@ -97,6 +97,7 @@ typedef struct MPOpts {
int requested_colorspace;
int requested_input_range;
int requested_output_range;
+ int requested_primaries;
int video_rotate;