- J2KImageProxy (boost::shared_ptr<const dcp::MonoPictureFrame> frame, dcp::Size, boost::shared_ptr<Log> log);
- J2KImageProxy (boost::shared_ptr<const dcp::StereoPictureFrame> frame, dcp::Size, dcp::Eye, boost::shared_ptr<Log> log);
- J2KImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket, boost::shared_ptr<Log> log);
+ J2KImageProxy (boost::filesystem::path path, dcp::Size, AVPixelFormat pixel_format);
+
+ J2KImageProxy (
+ boost::shared_ptr<const dcp::MonoPictureFrame> frame,
+ dcp::Size,
+ AVPixelFormat pixel_format,
+ boost::optional<int> forced_reduction
+ );
+
+ J2KImageProxy (
+ boost::shared_ptr<const dcp::StereoPictureFrame> frame,
+ dcp::Size,
+ dcp::Eye,
+ AVPixelFormat pixel_format,
+ boost::optional<int> forced_reduction
+ );
+
+ J2KImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
+
+ std::pair<boost::shared_ptr<Image>, int> image (
+ boost::optional<dcp::Size> size = boost::optional<dcp::Size> ()
+ ) const;