diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:00:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:00:25 +0000 |
| commit | 6154d5f85664a26e9490c9120bef5e742af94490 (patch) | |
| tree | b6d8af6fb5a5d11357b60d84c74ed92ee7859c66 /src/lib/dcp_video.cc | |
| parent | 86c09d276bc4d2a85321f8c1ba4f06c1cdf25b7c (diff) | |
Basic adaptations for changes to libdcp1 colour conversion handling.
Diffstat (limited to 'src/lib/dcp_video.cc')
| -rw-r--r-- | src/lib/dcp_video.cc | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 62340a468..cca199b05 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -41,7 +41,6 @@ #include "player_video.h" #include "encoded_data.h" #include <libcxml/cxml.h> -#include <dcp/gamma_lut.h> #include <dcp/xyz_frame.h> #include <dcp/rgb_xyz.h> #include <dcp/colour_matrix.h> @@ -114,25 +113,9 @@ DCPVideo::encode_locally () shared_ptr<dcp::XYZFrame> xyz; if (_frame->colour_conversion()) { - ColourConversion conversion = _frame->colour_conversion().get (); - shared_ptr<dcp::GammaLUT> in_lut = dcp::GammaLUT::cache.get ( - 12, conversion.input_gamma, conversion.input_gamma_linearised - ); - - /* XXX: dcp should probably use boost */ - - double matrix[3][3]; - for (int i = 0; i < 3; ++i) { - for (int j = 0; j < 3; ++j) { - matrix[i][j] = conversion.matrix (i, j); - } - } - xyz = dcp::rgb_to_xyz ( _frame->image (AV_PIX_FMT_RGB48LE, _burn_subtitles), - in_lut, - dcp::GammaLUT::cache.get (16, 1 / conversion.output_gamma, false), - matrix + _frame->colour_conversion().get() ); } else { xyz = dcp::xyz_to_xyz (_frame->image (AV_PIX_FMT_RGB48LE, _burn_subtitles)); |
