mpv/DOCS
Stefano Pigozzi c028d782c1 vo_opengl: add gamma-auto option
This automatically sets the gamma option depending on lighting conditions
measured from the computer's ambient light sensor.

sRGB – arguably the “sibling” to BT.709 for still images – has a reference
viewing environment defined in its specification (IEC 61966-2-1:1999, see
http://www.color.org/chardata/rgb/srgb.xalter). According to this data, the
assumed ambient illuminance is 64 lux. This is the illuminance where the gamma
that results from ICC color management is correct.

On the other hand, BT.1886 formalizes that the gamma level for dim environments
to be 2.40, and Apple resources (WWDC12: 2012 Session 523: Best practices for
color management) define the BT.1886 dim at 16 lux.

So the logic we apply is:

  * >= 64lux -> 1.961 gamma
  * =< 16lux -> 2.400 gamma
  * 16lux < x < 64lux -> logaritmic rescale of lux to gamma. The human
    perception of illuminance roughly follows a logaritmic scale of lux [1].

[1]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd319008%28v=vs.85%29.aspx
2015-03-04 10:06:08 +01:00
..
client_api_examples cocoa: remove the setNextKeyView hack 2015-02-28 14:55:32 +01:00
man vo_opengl: add gamma-auto option 2015-03-04 10:06:08 +01:00
client-api-changes.rst DOCS/client-api-changes: mark 0.8.0 release 2015-02-17 23:42:25 +01:00
compile-windows.md DOCS/compile-windows.md: fix pkg-config directory 2015-01-09 13:30:35 +11:00
contribute.md DOCS/contribute.md: remove unintentional headline 2014-12-11 21:33:01 +01:00
edl-mpv.rst Drop libquvi support 2014-10-25 20:18:22 +02:00
encoding.rst manpage: update config file locations 2014-06-28 15:55:09 +02:00
mplayer-changes.rst manpage: move out the MPlayer comparison page 2015-02-05 22:12:11 +01:00
release-policy.md DOCS: mark the recent release in client-api-changes.rst 2014-08-12 23:01:19 +02:00
tech-overview.txt DOCS/tech-overview.txt: some updates 2014-08-18 01:21:13 +02:00
waf-buildsystem.rst DOCS/waf-buildsystem: add link to the Waf book 2014-02-06 13:45:35 +01:00