X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_mxf_content.h;h=dd470335c061209ec3b253dcec553eaa0265fc10;hb=6ef1fc5f40567650ca9ef2b7644e4fdd97640ae6;hp=ab5375c6bc471c7be4925cdfd3e5afffed5651f5;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/video_mxf_content.h b/src/lib/video_mxf_content.h index ab5375c6b..dd470335c 100644 --- a/src/lib/video_mxf_content.h +++ b/src/lib/video_mxf_content.h @@ -23,21 +23,25 @@ class VideoMXFContent : public Content { public: - VideoMXFContent (boost::shared_ptr film, boost::filesystem::path path); - VideoMXFContent (boost::shared_ptr film, cxml::ConstNodePtr node, int version); + VideoMXFContent (boost::filesystem::path path); + VideoMXFContent (cxml::ConstNodePtr node, int version); boost::shared_ptr shared_from_this () { return boost::dynamic_pointer_cast (Content::shared_from_this ()); } - void examine (boost::shared_ptr job); + boost::shared_ptr shared_from_this () const { + return boost::dynamic_pointer_cast (Content::shared_from_this ()); + } + + void examine (boost::shared_ptr film, boost::shared_ptr job); std::string summary () const; std::string technical_summary () const; std::string identifier () const; - void as_xml (xmlpp::Node* node) const; - DCPTime full_length () const; - void add_properties (std::list& p) const; - void set_default_colour_conversion (); + void as_xml (xmlpp::Node* node, bool with_paths) const; + dcpomatic::DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime approximate_length () const; + void add_properties (boost::shared_ptr film, std::list& p) const; static bool valid_mxf (boost::filesystem::path path); };