return 0;
}
+DCPContentType const *
+DCPContentType::from_libdcp_kind (dcp::ContentKind kind)
+{
+ BOOST_FOREACH (DCPContentType const * i, _dcp_content_types) {
+ if (i->libdcp_kind() == kind) {
+ return i;
+ }
+ }
+
+ DCPOMATIC_ASSERT (false);
+ return 0;
+}
+
+
DCPContentType const *
DCPContentType::from_index (int n)
{
}
static DCPContentType const * from_isdcf_name (std::string);
+ static DCPContentType const * from_libdcp_kind (dcp::ContentKind);
static DCPContentType const * from_index (int);
static int as_index (DCPContentType const *);
static std::vector<DCPContentType const *> all ();