- J2KImageProxy (boost::filesystem::path path, dcp::Size);
- J2KImageProxy (boost::shared_ptr<const dcp::MonoPictureFrame> frame, dcp::Size);
- J2KImageProxy (boost::shared_ptr<const dcp::StereoPictureFrame> frame, dcp::Size, dcp::Eye);
- J2KImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
+ J2KImageProxy (boost::filesystem::path path, dcp::Size, AVPixelFormat pixel_format);
+
+ J2KImageProxy (
+ std::shared_ptr<const dcp::MonoPictureFrame> frame,
+ dcp::Size,
+ AVPixelFormat pixel_format,
+ boost::optional<int> forced_reduction
+ );
+
+ J2KImageProxy (
+ std::shared_ptr<const dcp::StereoPictureFrame> frame,
+ dcp::Size,
+ dcp::Eye,
+ AVPixelFormat pixel_format,
+ boost::optional<int> forced_reduction
+ );
+
+ J2KImageProxy (std::shared_ptr<cxml::Node> xml, std::shared_ptr<Socket> socket);
+
+ /* For tests */
+ J2KImageProxy (dcp::ArrayData data, dcp::Size size, AVPixelFormat pixel_format);
+
+ Result image (
+ boost::optional<dcp::Size> size = boost::optional<dcp::Size> ()
+ ) const;