here's some super simple code for reading the LUT:
http://pastebin.com/5H1pVpTg
interestingly, dispwin -c doesn't restore the original LUT that windows boots with. the original LUT is
0,1,2,...,254,255
->
0, 256, 512, ..., 254*256, 255*256
diswin -c makes it
0,1,2,...,254,255
->
0, 257, 514, ..., 254*257, 255*257.
as 255*257 = 65535, this covers the entire range of 0-65535.
from what I understand, getdevicegammaramp and setdevicegammaramp are just wrappers for whatever lower level function provided by the graphics driver for adjusting the actual lut.
http://pastebin.com/5H1pVpTg
interestingly, dispwin -c doesn't restore the original LUT that windows boots with. the original LUT is
0,1,2,...,254,255
->
0, 256, 512, ..., 254*256, 255*256
diswin -c makes it
0,1,2,...,254,255
->
0, 257, 514, ..., 254*257, 255*257.
as 255*257 = 65535, this covers the entire range of 0-65535.
from what I understand, getdevicegammaramp and setdevicegammaramp are just wrappers for whatever lower level function provided by the graphics driver for adjusting the actual lut.