X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_mxf_content.h;h=25da0def4976e605258ea83f16e33843a55cfc7e;hb=673ba43fb66eb0dee43807501753749f144254a7;hp=1fa428704d620084eaa0645aa118d8fed389bc74;hpb=4079beaa74c67e81ae8e40bd715dcc68cdbdf676;p=dcpomatic.git diff --git a/src/lib/video_mxf_content.h b/src/lib/video_mxf_content.h index 1fa428704..25da0def4 100644 --- a/src/lib/video_mxf_content.h +++ b/src/lib/video_mxf_content.h @@ -23,19 +23,24 @@ 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, bool with_paths) const; - DCPTime full_length () const; + DCPTime full_length (boost::shared_ptr film) const; + DCPTime approximate_length () const; void add_properties (std::list& p) const; static bool valid_mxf (boost::filesystem::path path);