From: Steve Lhomme Date: Sun, 11 Sep 2022 12:49:13 +0000 (+0200) Subject: KaxSemantic: add KaxEditionDisplay elements X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fheads%2Fv5-elements;p=libmatroska KaxSemantic: add KaxEditionDisplay elements Added in https://github.com/ietf-wg-cellar/matroska-specification/pull/606 --- diff --git a/matroska/KaxSemantic.h b/matroska/KaxSemantic.h index 76d87b4..21a264f 100644 --- a/matroska/KaxSemantic.h +++ b/matroska/KaxSemantic.h @@ -742,6 +742,15 @@ DECLARE_MKX_UINTEGER(KaxEditionFlagDefault) DECLARE_MKX_UINTEGER(KaxEditionFlagOrdered) }; +DECLARE_MKX_MASTER(KaxEditionDisplay) +}; + +DECLARE_MKX_UNISTRING(KaxEditionString) +}; + +DECLARE_MKX_STRING(KaxEditionLanguageIETF) +}; + DECLARE_MKX_MASTER(KaxChapterAtom) }; diff --git a/src/KaxSemantic.cpp b/src/KaxSemantic.cpp index 7b788cb..6631c88 100644 --- a/src/KaxSemantic.cpp +++ b/src/KaxSemantic.cpp @@ -620,6 +620,7 @@ DEFINE_SEMANTIC_ITEM(false, true, KaxEditionUID) DEFINE_SEMANTIC_ITEM(true, true, KaxEditionFlagHidden) DEFINE_SEMANTIC_ITEM(true, true, KaxEditionFlagDefault) DEFINE_SEMANTIC_ITEM(true, true, KaxEditionFlagOrdered) +DEFINE_SEMANTIC_ITEM(false, false, KaxEditionDisplay) DEFINE_SEMANTIC_ITEM(true, false, KaxChapterAtom) DEFINE_END_SEMANTIC(KaxEditionEntry) @@ -629,6 +630,15 @@ DEFINE_MKX_UINTEGER_DEF(KaxEditionFlagHidden, 0x45BD, 2, KaxEditionEntry, "Editi DEFINE_MKX_UINTEGER_DEF(KaxEditionFlagDefault, 0x45DB, 2, KaxEditionEntry, "EditionFlagDefault", 0) DEFINE_MKX_UINTEGER_DEF(KaxEditionFlagOrdered, 0x45DD, 2, KaxEditionEntry, "EditionFlagOrdered", 0) +DEFINE_START_SEMANTIC(KaxEditionDisplay) +DEFINE_SEMANTIC_ITEM(true, true, KaxEditionString) +DEFINE_SEMANTIC_ITEM(false, false, KaxEditionLanguageIETF) +DEFINE_END_SEMANTIC(KaxEditionDisplay) + +DEFINE_MKX_MASTER(KaxEditionDisplay, 0x4520, 2, KaxEditionEntry, "EditionDisplay") +DEFINE_MKX_UNISTRING(KaxEditionString, 0x4521, 2, KaxEditionDisplay, "EditionString") +DEFINE_MKX_STRING(KaxEditionLanguageIETF, 0x45E4, 2, KaxEditionDisplay, "EditionLanguageIETF") + DEFINE_START_SEMANTIC(KaxChapterAtom) DEFINE_SEMANTIC_ITEM(false, false, KaxChapterAtom) // recursive DEFINE_SEMANTIC_ITEM(true, true, KaxChapterUID)