summaryrefslogtreecommitdiff
path: root/src/lib/video_mxf_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-05-25 13:29:13 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-25 13:29:13 +0100
commit4ee6786d1c3db04dcc77e511121e5d62d0d595b5 (patch)
tree95ac9aa9af77caccffac5b7fcf63cb1a672ca77a /src/lib/video_mxf_content.h
parentd22243e8cd54c1c5de6c670445395907007428ea (diff)
Add VideoMXFContent (part of #803).
Diffstat (limited to 'src/lib/video_mxf_content.h')
-rw-r--r--src/lib/video_mxf_content.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/video_mxf_content.h b/src/lib/video_mxf_content.h
new file mode 100644
index 000000000..788af11a1
--- /dev/null
+++ b/src/lib/video_mxf_content.h
@@ -0,0 +1,42 @@
+/*
+ Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+
+ 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
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "content.h"
+
+class VideoMXFContent : public Content
+{
+public:
+ VideoMXFContent (boost::shared_ptr<const Film> film, boost::filesystem::path path);
+ VideoMXFContent (boost::shared_ptr<const Film> film, cxml::ConstNodePtr node, int version);
+
+ boost::shared_ptr<VideoMXFContent> shared_from_this () {
+ return boost::dynamic_pointer_cast<VideoMXFContent> (Content::shared_from_this ());
+ }
+
+ void examine (boost::shared_ptr<Job> 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<UserProperty>& p) const;
+ void set_default_colour_conversion ();
+
+ static bool valid_mxf (boost::filesystem::path path);
+};