[matroska] r1037 - in trunk/libmatroska: matroska src

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2005-01-17 16:48:21 +0300 (Mon, 17 Jan 2005)
New Revision: 1037

Modified:
   trunk/libmatroska/matroska/KaxInfoData.h
   trunk/libmatroska/src/KaxInfoData.cpp
Log:
libmatroska: add KaxChapterLinkEditionUID

Modified: trunk/libmatroska/matroska/KaxInfoData.h
===================================================================
--- trunk/libmatroska/matroska/KaxInfoData.h	2005-01-15 12:47:12 UTC (rev 1036)
+++ trunk/libmatroska/matroska/KaxInfoData.h	2005-01-17 13:48:21 UTC (rev 1037)
@@ -152,6 +152,17 @@
 		EbmlElement * Clone() const {return new KaxChapterLinkCodec(*this);}
 };
 
+class MATROSKA_DLL_API KaxChapterLinkEditionUID : public EbmlUInteger {
+	public:
+		KaxChapterLinkEditionUID() {}
+		KaxChapterLinkEditionUID(const KaxChapterLinkEditionUID & ElementToClone) :EbmlUInteger(ElementToClone) {}
+		static EbmlElement & Create() {return *(new KaxChapterLinkEditionUID);}
+		const EbmlCallbacks & Generic() const {return ClassInfos;}
+		static const EbmlCallbacks ClassInfos;
+		operator const EbmlId &() const {return ClassInfos.GlobalId;}
+		EbmlElement * Clone() const {return new KaxChapterLinkEditionUID(*this);}
+};
+
 class MATROSKA_DLL_API KaxChapterLinkID : public EbmlBinary {
 	public:
 		KaxChapterLinkID() {}

Modified: trunk/libmatroska/src/KaxInfoData.cpp
===================================================================
--- trunk/libmatroska/src/KaxInfoData.cpp	2005-01-15 12:47:12 UTC (rev 1036)
+++ trunk/libmatroska/src/KaxInfoData.cpp	2005-01-17 13:48:21 UTC (rev 1037)
@@ -38,10 +38,11 @@
 
 START_LIBMATROSKA_NAMESPACE
 
-const EbmlSemantic KaxChapterLink_ContextList[2] =
+const EbmlSemantic KaxChapterLink_ContextList[3] =
 {
-	EbmlSemantic(true, true,  KaxChapterLinkCodec::ClassInfos),
-	EbmlSemantic(true, true,  KaxChapterLinkID::ClassInfos),
+	EbmlSemantic(false, false, KaxChapterLinkEditionUID::ClassInfos),
+	EbmlSemantic(true,  true,  KaxChapterLinkCodec::ClassInfos),
+	EbmlSemantic(true,  true,  KaxChapterLinkID::ClassInfos),
 };
 
 EbmlId KaxSegmentUID_TheId      (0x73A4, 2);
@@ -52,6 +53,7 @@
 EbmlId KaxNextFilename_TheId    (0x3E83BB, 3);
 EbmlId KaxSegmentFamily_TheId   (0x7373, 2);
 EbmlId KaxChapterLink_TheId     (0x6924, 2);
+EbmlId KaxChapterLinkEditionUID_TheId(0x69FC, 2);
 EbmlId KaxChapterLinkCodec_TheId(0x69BF, 2);
 EbmlId KaxChapterLinkID_TheId   (0x69A5, 2);
 EbmlId KaxTimecodeScale_TheId   (0x2AD7B1, 3);
@@ -67,6 +69,7 @@
 const EbmlSemanticContext KaxNextFilename_Context = EbmlSemanticContext(0, NULL, &KaxInfo_Context, *GetKaxGlobal_Context, &KaxNextFilename::ClassInfos);
 const EbmlSemanticContext KaxSegmentFamily_Context = EbmlSemanticContext(0, NULL, &KaxInfo_Context, *GetKaxGlobal_Context, &KaxSegmentFamily::ClassInfos);
 const EbmlSemanticContext KaxChapterLink_Context = EbmlSemanticContext(countof(KaxChapterLink_ContextList), KaxChapterLink_ContextList, &KaxInfo_Context, *GetKaxGlobal_Context, &KaxChapterLink::ClassInfos);
+const EbmlSemanticContext KaxChapterLinkEditionUID_Context = EbmlSemanticContext(0, NULL, &KaxChapterLink_Context, *GetKaxGlobal_Context, &KaxChapterLinkEditionUID::ClassInfos);
 const EbmlSemanticContext KaxChapterLinkCodec_Context = EbmlSemanticContext(0, NULL, &KaxChapterLink_Context, *GetKaxGlobal_Context, &KaxChapterLinkCodec::ClassInfos);
 const EbmlSemanticContext KaxChapterLinkID_Context = EbmlSemanticContext(0, NULL, &KaxChapterLink_Context, *GetKaxGlobal_Context, &KaxChapterLinkID::ClassInfos);
 const EbmlSemanticContext KaxTimecodeScale_Context = EbmlSemanticContext(0, NULL, &KaxInfo_Context, *GetKaxGlobal_Context, &KaxTimecodeScale::ClassInfos);
@@ -83,6 +86,7 @@
 const EbmlCallbacks KaxNextFilename::ClassInfos(KaxNextFilename::Create, KaxNextFilename_TheId, "NextFilename", KaxNextFilename_Context);
 const EbmlCallbacks KaxSegmentFamily::ClassInfos(KaxSegmentFamily::Create, KaxSegmentFamily_TheId, "SegmentFamily", KaxSegmentFamily_Context);
 const EbmlCallbacks KaxChapterLink::ClassInfos(KaxChapterLink::Create, KaxChapterLink_TheId, "ChapterLink", KaxChapterLink_Context);
+const EbmlCallbacks KaxChapterLinkEditionUID::ClassInfos(KaxChapterLinkEditionUID::Create, KaxChapterLinkEditionUID_TheId, "ChapterLinkEditionUID", KaxChapterLinkEditionUID_Context);
 const EbmlCallbacks KaxChapterLinkCodec::ClassInfos(KaxChapterLinkCodec::Create, KaxChapterLinkCodec_TheId, "ChapterLinkCodec", KaxChapterLinkCodec_Context);
 const EbmlCallbacks KaxChapterLinkID::ClassInfos(KaxChapterLinkID::Create, KaxChapterLinkID_TheId, "ChapterLinkID", KaxChapterLinkID_Context);
 const EbmlCallbacks KaxTimecodeScale::ClassInfos(KaxTimecodeScale::Create, KaxTimecodeScale_TheId, "TimecodeScale", KaxTimecodeScale_Context);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.