43 LIBDCP_DISABLE_WARNINGS
44 #include <libxml++/libxml++.h>
45 LIBDCP_ENABLE_WARNINGS
51 using boost::optional;
55 ReelInteropTextAsset::ReelInteropTextAsset(TextType type, std::shared_ptr<TextAsset> asset,
Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
56 :
ReelTextAsset(type, asset, edit_rate, intrinsic_duration, entry_point)
62 ReelInteropTextAsset::ReelInteropTextAsset(std::shared_ptr<const cxml::Node> node)
70 ReelInteropTextAsset::cpl_node_name()
const
73 case TextType::OPEN_SUBTITLE:
74 return "MainSubtitle";
75 case TextType::OPEN_CAPTION:
76 return "cc-cpl:MainCaption";
77 case TextType::CLOSED_SUBTITLE:
78 return "ClosedSubtitle";
79 case TextType::CLOSED_CAPTION:
80 return "cc-cpl:MainClosedCaption";
92 case TextType::OPEN_SUBTITLE:
93 case TextType::CLOSED_SUBTITLE:
95 case TextType::OPEN_CAPTION:
96 case TextType::CLOSED_CAPTION:
97 return make_pair(
"http://www.digicine.com/PROTO-ASDCP-CC-CPL-20070926#",
"cc-cpl");
106 ReelInteropTextAsset::write_to_cpl(xmlpp::Element* node, Standard standard)
const
108 auto asset = ReelFileAsset::write_to_cpl (node, standard);
110 cxml::add_text_child(asset,
"Language", *
_language);
A fraction (i.e. a thing with an integer numerator and an integer denominator).
std::pair< std::string, std::string > cpl_node_namespace() const override
Part of a Reel's description which refers to a subtitle or caption XML/MXF file.
boost::optional< std::string > _language
Namespace for everything in libdcp.
ReelInteropTextAsset class.