X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fj2k_image_proxy.h;h=191d759db8d5453746a72b15691188992b9987e2;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=d7b5c83fc443d36e2c79b98b641067fea695c924;hpb=9e4c091e6ef0f79fab10664e95240de2f14e5702;p=dcpomatic.git diff --git a/src/lib/j2k_image_proxy.h b/src/lib/j2k_image_proxy.h index d7b5c83fc..191d759db 100644 --- a/src/lib/j2k_image_proxy.h +++ b/src/lib/j2k_image_proxy.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,30 +17,36 @@ */ -#include #include "image_proxy.h" +#include "data.h" +#include -class EncodedData; +class Data; class J2KImageProxy : public ImageProxy { public: - J2KImageProxy (boost::shared_ptr frame, dcp::Size, boost::shared_ptr log); - J2KImageProxy (boost::shared_ptr frame, dcp::Size, dcp::Eye, boost::shared_ptr log); - J2KImageProxy (boost::shared_ptr xml, boost::shared_ptr socket, boost::shared_ptr log); + J2KImageProxy (boost::filesystem::path path, dcp::Size); + J2KImageProxy (boost::shared_ptr frame, dcp::Size); + J2KImageProxy (boost::shared_ptr frame, dcp::Size, dcp::Eye); + J2KImageProxy (boost::shared_ptr xml, boost::shared_ptr socket); - boost::shared_ptr image () const; + 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; + Data _data; dcp::Size _size; - dcp::Eye _eye; + boost::optional _eye; };