#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>
*/
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;
}
+ int active_audio_channels() const;
+
void check_font_ids();
private:
* 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;
std::map<dcp::Marker, dcpomatic::ContentTime> _markers;
std::vector<dcp::Rating> _ratings;
std::vector<std::string> _content_versions;
-};
-
-
-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);
+ boost::optional<int> _active_audio_channels;
+};
#endif