44 LIBDCP_DISABLE_WARNINGS
45 #include <libxml++/libxml++.h>
46 LIBDCP_ENABLE_WARNINGS
50 using std::shared_ptr;
51 using std::dynamic_pointer_cast;
52 using boost::optional;
56 ReelTextAsset::ReelTextAsset(TextType type, std::shared_ptr<TextAsset> asset,
Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
71 ReelTextAsset::ReelTextAsset(std::shared_ptr<const cxml::Node> node)
74 if (node->name() ==
"MainSubtitle") {
75 _type = TextType::OPEN_SUBTITLE;
76 }
else if (node->name() ==
"MainClosedCaption" || node->name() ==
"ClosedCaption") {
77 _type = TextType::CLOSED_CAPTION;
82 _language = node->optional_string_child(
"Language");
94 ReelTextAsset::equals(shared_ptr<const ReelTextAsset> other,
EqualityOptions const& opt, NoteHandler note)
const
96 if (!asset_equals (other, opt, note)) {
99 if (!file_asset_equals (other, opt, note)) {
A class to describe what "equality" means for a particular test.
A fraction (i.e. a thing with an integer numerator and an integer denominator).
boost::optional< std::string > _language
A set of subtitles/captions to be read and/or written in the SMPTE format.
Namespace for everything in libdcp.