35 #include "content_kind.h"
46 static std::string
const smpte_429_16_scope =
"http://www.smpte-ra.org/schemas/429-16/2014/CPL-Metadata#scope/content-kind";
47 static std::string
const smpte_2067_3_scope =
"http://www.smpte-ra.org/schemas/2067-3/2013#content-kind";
76 ContentKind::TRANSITIONAL,
80 ContentKind::PUBLIC_SERVICE_ANNOUNCEMENT,
81 ContentKind::ADVERTISEMENT,
89 ContentKind::from_name(
string name)
91 auto const all_kinds = all();
92 std::transform(name.begin(), name.end(), name.begin(), ::tolower);
93 auto iter = std::find_if(all_kinds.begin(), all_kinds.end(), [&name](
ContentKind const& k) { return k.name() == name; });
94 if (iter == all_kinds.end()) {
104 return a.name() == b.name() && a.scope() == b.scope();
Namespace for everything in libdcp.