]> granicus.if.org Git - libmatroska/commitdiff
KaxSemantic: add KaxEditionDisplay elements v5-elements
authorSteve Lhomme <slhomme@matroska.org>
Sun, 11 Sep 2022 12:49:13 +0000 (14:49 +0200)
committerSteve Lhomme <slhomme@matroska.org>
Sun, 11 Sep 2022 12:54:32 +0000 (14:54 +0200)
Added in https://github.com/ietf-wg-cellar/matroska-specification/pull/606

matroska/KaxSemantic.h
src/KaxSemantic.cpp

index 76d87b47a21f78a84eb0f898a017eb225ae42cc2..21a264fdc93cc5d9e697b2d977c1e8ce601ff22a 100644 (file)
@@ -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)
 };
 
index 7b788cbcc1673c3987f2ef03e3ad8de4a6b01c50..6631c887fc1722b32d464eaa95c99084d8153df1 100644 (file)
@@ -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)