#include "content.h"
+#include "enum_indexed_vector.h"
+#include "font.h"
+#include "resolution.h"
#include <libcxml/cxml.h>
+#include <dcp/content_kind.h>
#include <dcp/encrypted_kdm.h>
#include <dcp/rating.h>
return std::dynamic_pointer_cast<const DCPContent> (Content::shared_from_this ());
}
- dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
- dcpomatic::DCPTime approximate_length () const;
+ dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const override;
+ dcpomatic::DCPTime approximate_length () const override;
- void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>);
- std::string summary () const;
- std::string technical_summary () const;
- void as_xml (xmlpp::Node *, bool with_paths) const;
- std::string identifier () const;
- void take_settings_from (std::shared_ptr<const Content> c);
+ void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>) override;
+ std::string summary () const override;
+ std::string technical_summary () const override;
+ void as_xml (xmlpp::Node *, bool with_paths) const override;
+ std::string identifier () const override;
+ void take_settings_from (std::shared_ptr<const Content> c) override;
void set_default_colour_conversion ();
- std::list<dcpomatic::DCPTime> reel_split_points (std::shared_ptr<const Film> film) const;
+ std::list<dcpomatic::DCPTime> reel_split_points (std::shared_ptr<const Film> film) const override;
std::vector<boost::filesystem::path> directories () const;
return _kdm;
}
- bool can_be_played () const;
+ bool can_be_played () const override;
bool needs_kdm () const;
bool needs_assets () const;
*/
bool reference_text (TextType type) const {
boost::mutex::scoped_lock lm (_mutex);
- return _reference_text[static_cast<int>(type)];
+ return _reference_text[type];
}
bool can_reference_text (std::shared_ptr<const Film> film, TextType type, std::string &) const;
return _content_versions;
}
+ void check_font_ids();
+
private:
friend struct reels_test5;
- void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty>& p) const;
+ void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty>& p) const override;
void read_directory (boost::filesystem::path);
void read_sub_directory (boost::filesystem::path);
* rather than by rewrapping. The types here are the original text types,
* not what they are being used for.
*/
- bool _reference_text[static_cast<int>(TextType::COUNT)];
+ EnumIndexedVector<bool, TextType> _reference_text;
boost::optional<dcp::Standard> _standard;
boost::optional<dcp::ContentKind> _content_kind;
};
+extern std::string id_for_font_in_reel(std::string id, int reel);
+extern void add_fonts_from_examiner(std::shared_ptr<TextContent> text, std::vector<std::vector<std::shared_ptr<dcpomatic::Font>>> const& fonts);
+
+
+
#endif