X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fj2k_image_proxy.h;h=3eccc213da41c348a73f431f7e5ac3f992b50698;hb=2ea3a0d0e4066a166c0700bd1d53daa7f1c50dff;hp=71bcffb2c50754460736700310ad0af8f002cb3b;hpb=6fa9748f382302fa88292b4219598bb81edc7bd0;p=dcpomatic.git diff --git a/src/lib/j2k_image_proxy.h b/src/lib/j2k_image_proxy.h index 71bcffb2c..3eccc213d 100644 --- a/src/lib/j2k_image_proxy.h +++ b/src/lib/j2k_image_proxy.h @@ -19,8 +19,8 @@ */ #include "image_proxy.h" +#include #include -#include #include namespace dcp { @@ -60,7 +60,7 @@ public: bool same (boost::shared_ptr) const; int prepare (boost::optional = boost::optional()) const; - dcp::Data j2k () const { + boost::shared_ptr j2k () const { return _data; } @@ -74,9 +74,9 @@ private: friend struct client_server_test_j2k; /* For tests */ - J2KImageProxy (dcp::Data data, dcp::Size size, AVPixelFormat pixel_format); + J2KImageProxy (dcp::ArrayData data, dcp::Size size, AVPixelFormat pixel_format); - dcp::Data _data; + boost::shared_ptr _data; dcp::Size _size; boost::optional _eye; mutable boost::shared_ptr _image;