summaryrefslogtreecommitdiff
path: root/src/dcp_reader.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-16 00:23:24 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-16 00:23:24 +0000
commit19b5ac5e09e204a9c22daff460f3cbb2137d265b (patch)
treedade81e56e3ad9934686c650eef23f92d3111211 /src/dcp_reader.h
parenta49e1c2df1568391651344ae368c53f76d504571 (diff)
Use libdcp for DCP subtitle parsing so that we get support for MXF-wrapped SMPTE subtitles.
Diffstat (limited to 'src/dcp_reader.h')
-rw-r--r--src/dcp_reader.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/dcp_reader.h b/src/dcp_reader.h
index c08d631..6d4fa71 100644
--- a/src/dcp_reader.h
+++ b/src/dcp_reader.h
@@ -22,6 +22,7 @@
#include "reader.h"
#include <boost/shared_ptr.hpp>
+#include <boost/filesystem.hpp>
namespace cxml {
class Node;
@@ -29,40 +30,13 @@ namespace cxml {
namespace sub {
-class DCPFont;
-class DCPText;
-class DCPSubtitle;
-class DCPLoadFont;
-
/** @class DCPReader
* @brief A class which reads DCP subtitles.
*/
class DCPReader : public Reader
{
public:
- DCPReader (std::istream &);
-
-private:
-
- struct ParseState;
-
- void maybe_add_subtitle (std::string text, ParseState& parse_state);
-
- void examine_font_nodes (
- boost::shared_ptr<const cxml::Node> xml,
- std::list<boost::shared_ptr<DCPFont> > const & font_nodes,
- ParseState& parse_state
- );
-
- void examine_text_nodes (
- boost::shared_ptr<const cxml::Node> xml,
- std::list<boost::shared_ptr<DCPText> > const & text_nodes,
- ParseState& parse_state
- );
-
- std::string font_id_to_name (std::string id) const;
-
- std::list<boost::shared_ptr<DCPLoadFont> > _load_font_nodes;
+ DCPReader (boost::filesystem::path file);
};
}