summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2014-03-26 14:03:24 +0100
committerwm4 <wm4@nowhere>2014-06-22 19:01:25 +0200
commitef6db24366da2974cdee1d9578cf91910b5faa9c (patch)
treee06720ce263fc8c15630f49ebd8901139610ce21 /options
parent70f50ddc5e97020d64ea0702748a00eddebc2473 (diff)
downloadmpv-ef6db24366da2974cdee1d9578cf91910b5faa9c.tar.bz2
mpv-ef6db24366da2974cdee1d9578cf91910b5faa9c.tar.xz
options: Expose --colormatrix-primaries to the user
Signed-off-by: wm4 <wm4@nowhere>
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;