diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-04 11:35:41 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-04 21:14:06 +0000 |
| commit | 443371c61c7fe263140372bcbc72206b27585077 (patch) | |
| tree | bc532257313e158ccee5ba27ccc5ce74742410cb /src/lib/j2k_image_proxy.cc | |
| parent | 342326b363ca8c5f49fa12509cdd07931e86bcf4 (diff) | |
Build fixes.
Diffstat (limited to 'src/lib/j2k_image_proxy.cc')
| -rw-r--r-- | src/lib/j2k_image_proxy.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/j2k_image_proxy.cc b/src/lib/j2k_image_proxy.cc index f2434b23d..0e4d3ca2f 100644 --- a/src/lib/j2k_image_proxy.cc +++ b/src/lib/j2k_image_proxy.cc @@ -28,7 +28,6 @@ #include <dcp/rgb_xyz.h> #include <dcp/j2k.h> #include <libcxml/cxml.h> -#include <openjpeg.h> #include <libxml++/libxml++.h> #include <iostream> @@ -95,8 +94,8 @@ J2KImageProxy::image (optional<dcp::NoteHandler>) const { ensure_j2k (); - if (_j2k->opj_image()->comps[0].prec < 12) { - int const shift = 12 - _j2k->opj_image()->comps[0].prec; + if (_j2k->precision(0) < 12) { + int const shift = 12 - _j2k->precision (0); for (int c = 0; c < 3; ++c) { int* p = _j2k->data (c); for (int y = 0; y < _j2k->size().height; ++y) { @@ -165,7 +164,7 @@ J2KImageProxy::pixel_format () const { ensure_j2k (); - if (_j2k->opj_image()->color_space == CLRSPC_SRGB) { + if (_j2k->srgb ()) { return AV_PIX_FMT_RGB48LE; } |
