summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-03-09 23:03:54 +0000
committerUoti Urpala <uau@mplayer2.org>2011-04-13 03:15:42 +0300
commitcb61c0f2d4c7a7deb84ed4db6a41c2c6bdd1a055 (patch)
treeae0f70bede7324b9ba0ccd4a554ef55495977fed
parent2c2f620e7a5e650f843904e1971d7012221f4be8 (diff)
downloadmpv-cb61c0f2d4c7a7deb84ed4db6a41c2c6bdd1a055.tar.bz2
mpv-cb61c0f2d4c7a7deb84ed4db6a41c2c6bdd1a055.tar.xz
options: add -gamma (was only accessible from slave mode before)
Patch by Kevin DeKorte, kdekorte at gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33064 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--DOCS/man/en/mplayer.15
-rw-r--r--cfg-mplayer.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
index 75671c69ec..206a46b4fa 100644
--- a/DOCS/man/en/mplayer.1
+++ b/DOCS/man/en/mplayer.1
@@ -3078,6 +3078,11 @@ Fixes fullscreen switching on OpenBox 1.x.
.PD 1
.
.TP
+.B \-gamma <\-100\-100>
+Adjust the gamma of the video signal (default: 0).
+Not supported by all video output drivers.
+.
+.TP
.B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
Adjust where the output is on the screen initially.
The x and y specifications are in pixels measured from the top-left of the
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index 3f30951e12..216d244371 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -189,6 +189,7 @@ const m_option_t mplayer_opts[]={
OPT_INTRANGE("saturation", vo_gamma_saturation, 0, -100, 100),
OPT_INTRANGE("contrast", vo_gamma_contrast, 0, -100, 100),
OPT_INTRANGE("hue", vo_gamma_hue, 0, -100, 100),
+ OPT_INTRANGE("gamma", vo_gamma_gamma, 0, -100, 100),
{"keepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nokeepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},