Change colourspace handling round a bit: 1.0-colour-cleanup
authorCarl Hetherington <cth@carlh.net>
Sat, 27 Dec 2014 20:02:16 +0000 (20:02 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 28 Dec 2014 00:46:04 +0000 (00:46 +0000)
commit75788462338b1b4f464d075465da3cb372c40004
tree24046b4554f71ae399bbd310f5df2db2c4e69f47
parent8520636e803e9eb17c9f73272f340d0e1c17ad67
Change colourspace handling round a bit:

- move the essence of GammaLUT into TransferFunction and handle
  different bit depths more neatly
- add ColourConversion to describe input gamma correction, colour
  transformation and then output gamma correction in one class.
- add default ColourConversions for sRGB->XYZ, Rec709->XYZ and
  XYZ->RGB.
19 files changed:
src/colour_conversion.cc [new file with mode: 0644]
src/colour_conversion.h [new file with mode: 0644]
src/gamma_lut.cc [deleted file]
src/gamma_lut.h [deleted file]
src/gamma_transfer_function.cc [new file with mode: 0644]
src/gamma_transfer_function.h [new file with mode: 0644]
src/lut_cache.h [deleted file]
src/modified_gamma_transfer_function.cc [new file with mode: 0644]
src/modified_gamma_transfer_function.h [new file with mode: 0644]
src/mono_picture_frame.cc
src/rgb_xyz.cc
src/rgb_xyz.h
src/stereo_picture_frame.cc
src/transfer_function.cc [new file with mode: 0644]
src/transfer_function.h [new file with mode: 0644]
src/util.cc
src/wscript
test/colour_conversion_test.cc [new file with mode: 0644]
test/wscript