Revert "Re-allow audio channel 15 to be mapped so that users can add"
[dcpomatic.git] / src / lib / j2k_image_proxy.h
index 78f291e5d87426b7e910fb224167aee721627840..3eccc213da41c348a73f431f7e5ac3f992b50698 100644 (file)
@@ -19,8 +19,8 @@
 */
 
 #include "image_proxy.h"
+#include <dcp/array_data.h>
 #include <dcp/util.h>
-#include <dcp/data.h>
 #include <boost/thread/mutex.hpp>
 
 namespace dcp {
@@ -55,12 +55,12 @@ public:
                ) const;
 
        void add_metadata (xmlpp::Node *) const;
-       void send_binary (boost::shared_ptr<Socket>) const;
+       void write_to_socket (boost::shared_ptr<Socket>) const;
        /** @return true if our image is definitely the same as another, false if it is probably not */
        bool same (boost::shared_ptr<const ImageProxy>) const;
        int prepare (boost::optional<dcp::Size> = boost::optional<dcp::Size>()) const;
 
-       dcp::Data j2k () const {
+       boost::shared_ptr<const dcp::Data> 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<const dcp::Data> _data;
        dcp::Size _size;
        boost::optional<dcp::Eye> _eye;
        mutable boost::shared_ptr<Image> _image;