summaryrefslogtreecommitdiff
path: root/src/stereo_picture_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-27 20:02:16 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-28 00:46:04 +0000
commit75788462338b1b4f464d075465da3cb372c40004 (patch)
tree24046b4554f71ae399bbd310f5df2db2c4e69f47 /src/stereo_picture_frame.cc
parent8520636e803e9eb17c9f73272f340d0e1c17ad67 (diff)
Change colourspace handling round a bit:1.0-colour-cleanup
- 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.
Diffstat (limited to 'src/stereo_picture_frame.cc')
-rw-r--r--src/stereo_picture_frame.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc
index bcc17e3a..7d989777 100644
--- a/src/stereo_picture_frame.cc
+++ b/src/stereo_picture_frame.cc
@@ -21,8 +21,8 @@
#include "exceptions.h"
#include "argb_frame.h"
#include "util.h"
-#include "gamma_lut.h"
#include "rgb_xyz.h"
+#include "colour_conversion.h"
#include "AS_DCP.h"
#include "KM_fileio.h"
#include <openjpeg.h>
@@ -89,7 +89,7 @@ StereoPictureFrame::argb_frame (Eye eye, int reduce, float srgb_gamma) const
break;
}
- return xyz_to_rgba (xyz_frame, GammaLUT::cache.get (12, DCI_GAMMA, false), GammaLUT::cache.get (12, 1 / srgb_gamma, false));
+ return xyz_to_rgba (xyz_frame, ColourConversion::xyz_to_rgb);
}
void
@@ -105,7 +105,7 @@ StereoPictureFrame::rgb_frame (Eye eye, uint8_t* buffer) const
break;
}
- return xyz_to_rgb (xyz_frame, GammaLUT::cache.get (12, DCI_GAMMA, false), GammaLUT::cache.get (12, 1 / 2.4, false), buffer);
+ return xyz_to_rgb (xyz_frame, ColourConversion::xyz_to_rgb, buffer);
}
uint8_t const *