[MPlayer-dev-eng] [PATCH] add -gamma as a command line option
Alexander Strange
astrange at ithinksw.com
Thu Mar 10 04:20:15 CET 2011
On Mar 9, 2011, at 4:45 PM, Kevin DeKorte wrote:
> -----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
What is the mathematical operation of this?
I don't see what a value going from -100 to 100 has to do with gamma.
Then again, I never understood why the video driver controls on Windows have a "gamma" control starting at 0 instead of 2.4.
>
>
> 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-----
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
More information about the MPlayer-dev-eng
mailing list