diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-06 01:32:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-06 01:42:52 +0000 |
| commit | 7f23456dce480a813f1d6ebb22cf6aa0d5214c49 (patch) | |
| tree | 1a68823bff672cae8b466c73a8e6576153b3e531 /src/lib/j2k_image_proxy.h | |
| parent | a5c1639bb3c8b880d2742eadf4c2fb3094ad60be (diff) | |
Move deinterleave of OpenJPEGImage to Image into the prepare(), meaning
that it can be multi-threaded. This allows the bit shift for non-12bpp
JPEG2000 sources to be done at the same time as the deinterleave.
Should speed up DCP playback in some cases.
Diffstat (limited to 'src/lib/j2k_image_proxy.h')
| -rw-r--r-- | src/lib/j2k_image_proxy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/j2k_image_proxy.h b/src/lib/j2k_image_proxy.h index a67cc24de..8e9a0fa99 100644 --- a/src/lib/j2k_image_proxy.h +++ b/src/lib/j2k_image_proxy.h @@ -80,7 +80,7 @@ private: dcp::Data _data; dcp::Size _size; boost::optional<dcp::Eye> _eye; - mutable boost::shared_ptr<dcp::OpenJPEGImage> _decompressed; + mutable boost::shared_ptr<Image> _image; mutable boost::optional<dcp::Size> _target_size; mutable boost::optional<int> _reduce; AVPixelFormat _pixel_format; |
