#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>
}
}
+StereoPictureFrame::StereoPictureFrame ()
+{
+ _buffer = new ASDCP::JP2K::SFrameBuffer (4 * Kumu::Megabyte);
+}
+
StereoPictureFrame::~StereoPictureFrame ()
{
delete _buffer;
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_srgb);
}
void
-StereoPictureFrame::rgb_frame (Eye eye, uint8_t* buffer) const
+StereoPictureFrame::rgb_frame (Eye eye, uint16_t* buffer) const
{
shared_ptr<XYZFrame> xyz_frame;
switch (eye) {
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_srgb, buffer);
}
uint8_t const *
return _buffer->Left.RoData ();
}
+uint8_t*
+StereoPictureFrame::left_j2k_data ()
+{
+ return _buffer->Left.Data ();
+}
+
int
StereoPictureFrame::left_j2k_size () const
{
return _buffer->Right.RoData ();
}
+uint8_t*
+StereoPictureFrame::right_j2k_data ()
+{
+ return _buffer->Right.Data ();
+}
+
int
StereoPictureFrame::right_j2k_size () const
{