summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-03-31 04:50:49 +0200
committerNiklas Haas <git@nand.wakku.to>2015-04-04 15:49:16 +0200
commit4f8493931029072092ba6995c5f95f333cbdb0e1 (patch)
treeef4ca12d2ed1f2861b90beea16d8d72f3ac3227e /player/command.c
parent717e7a5baa1634d853a14dcfeebf42f8d1071384 (diff)
downloadmpv-4f8493931029072092ba6995c5f95f333cbdb0e1.tar.bz2
mpv-4f8493931029072092ba6995c5f95f333cbdb0e1.tar.xz
command: new subproperty for video-params: gamma
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 779a5dd0ec..48668097c0 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2378,6 +2378,8 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg)
SUB_PROP_STR(m_opt_choice_str(mp_csp_levels_names, p.outputlevels))},
{"primaries",
SUB_PROP_STR(m_opt_choice_str(mp_csp_prim_names, p.primaries))},
+ {"gamma",
+ SUB_PROP_STR(m_opt_choice_str(mp_csp_trc_names, p.gamma))},
{"chroma-location",
SUB_PROP_STR(m_opt_choice_str(mp_chroma_names, p.chroma_location))},
{"rotate", SUB_PROP_INT(p.rotate)},
@@ -3437,6 +3439,7 @@ static const struct m_property mp_properties[] = {
M_PROPERTY_ALIAS("colormatrix-input-range", "video-params/colorlevels"),
M_PROPERTY_ALIAS("colormatrix-output-range", "video-params/outputlevels"),
M_PROPERTY_ALIAS("colormatrix-primaries", "video-params/primaries"),
+ M_PROPERTY_ALIAS("colormatrix-gamma", "video-params/gamma"),
{0},
};
@@ -3627,6 +3630,8 @@ static const struct property_osd_display {
.msg = "RGB output range:\n${colormatrix-output-range}" },
{ "colormatrix-primaries",
.msg = "Colorspace primaries:\n${colormatrix-primaries}", },
+ { "colormatrix-gamma",
+ .msg = "Colorspace gamma:\n${colormatrix-gamma}", },
{ "gamma", "Gamma", .osd_progbar = OSD_BRIGHTNESS },
{ "brightness", "Brightness", .osd_progbar = OSD_BRIGHTNESS },
{ "contrast", "Contrast", .osd_progbar = OSD_CONTRAST },