[MPlayer-dev-eng] [PATCH] add -gamma as a command line option
Kevin DeKorte
kdekorte at gmail.com
Wed Mar 9 22:45:14 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/09/2011 02:13 PM, Reimar Döffinger wrote:
> On Wed, Mar 09, 2011 at 12:02:21PM -0700, Kevin DeKorte wrote:
>> This patch adds -gamma as a command line option
>
> Hm. Assuming this actually works there sure is nothing speaking
> against it (and as far as I can tell it should work).
> Just strange this comes up only now, seems there's really few people
> caring about gamma?
Updated patch, including man page
Kevin
Index: DOCS/man/en/mplayer.1
===================================================================
- --- DOCS/man/en/mplayer.1 (revision 33063)
+++ DOCS/man/en/mplayer.1 (working copy)
@@ -3271,6 +3271,11 @@
.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
Index: cfg-mplayer.h
===================================================================
- --- cfg-mplayer.h (revision 33063)
+++ cfg-mplayer.h (working copy)
@@ -199,6 +199,7 @@
{"saturation",&vo_gamma_saturation, CONF_TYPE_INT, CONF_RANGE,
- -100, 100, NULL},
{"contrast",&vo_gamma_contrast, CONF_TYPE_INT, CONF_RANGE, -100,
100, NULL},
{"hue",&vo_gamma_hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
+ {"gamma",&vo_gamma_gamma, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
{"keepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nokeepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk139OoACgkQ6w2kMH0L1dHEjACeLdZmU6r15HT0wcgDGLmXswAK
zmUAni1be/22qX8E83l6RyJNFjrlKJOe
=8Z72
-----END PGP SIGNATURE-----
More information about the MPlayer-dev-eng
mailing list