X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fj2k_image_proxy.h;h=bb8c216e3d76bf5b2770705a7fa75f1ce930eb9e;hb=1dab4d3d084eda74612a3ebf0688ebc6fda7e78b;hp=1392f66b9cd9b33620c73c5f78c164a66a245a2d;hpb=5c0a67869dbddb924c9f5ccb4126aa06d85b9b8b;p=dcpomatic.git diff --git a/src/lib/j2k_image_proxy.h b/src/lib/j2k_image_proxy.h index 1392f66b9..bb8c216e3 100644 --- a/src/lib/j2k_image_proxy.h +++ b/src/lib/j2k_image_proxy.h @@ -18,8 +18,14 @@ */ #include "image_proxy.h" +#include "data.h" #include +namespace dcp { + class MonoPictureFrame; + class StereoPictureFrame; +} + class Data; class J2KImageProxy : public ImageProxy @@ -33,15 +39,23 @@ public: boost::shared_ptr image (boost::optional note = boost::optional ()) const; void add_metadata (xmlpp::Node *) const; void send_binary (boost::shared_ptr) const; + /** @return true if our image is definitely the same as another, false if it is probably not */ + virtual bool same (boost::shared_ptr) const; + + Data j2k () const { + return _data; + } - boost::shared_ptr j2k () const; dcp::Size size () const { return _size; } - + private: - boost::shared_ptr _mono; - boost::shared_ptr _stereo; + friend struct client_server_test_j2k; + + J2KImageProxy (Data data, dcp::Size size); + + Data _data; dcp::Size _size; boost::optional _eye; };