copy (_load_font_nodes.begin(), _load_font_nodes.end(), back_inserter (lf));
return lf;
}
+
+bool
+SMPTESubtitleContent::valid_mxf (boost::filesystem::path file)
+{
+ ASDCP::TimedText::MXFReader reader;
+ Kumu::Result_t r = reader.OpenRead (file.string().c_str ());
+ return !ASDCP_FAILURE (r);
+}
/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2015 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
*/
#include "subtitle_content.h"
+#include <boost/filesystem.hpp>
namespace dcp {
SMPTESubtitleContent (boost::filesystem::path file, bool mxf = true);
std::list<boost::shared_ptr<LoadFont> > load_font_nodes () const;
+
+ static bool valid_mxf (boost::filesystem::path);
private:
std::list<boost::shared_ptr<SMPTELoadFont> > _load_font_nodes;