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

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-08-25 18:44:26 +0400 (Wed, 25 Aug 2004)
New Revision: 727

Modified:
   trunk/libmatroska/matroska/KaxChapters.h
   trunk/libmatroska/src/KaxChapters.cpp
Log:
add KaxChapterProcess and KaxChapterProcessTime

Modified: trunk/libmatroska/matroska/KaxChapters.h
===================================================================
--- trunk/libmatroska/matroska/KaxChapters.h	2004-08-25 14:22:14 UTC (rev 726)
+++ trunk/libmatroska/matroska/KaxChapters.h	2004-08-25 14:44:26 UTC (rev 727)
@@ -243,6 +243,28 @@
 	EbmlElement * Clone() const {return new KaxChapterCountry(*this);}
 };
 
+class MATROSKA_DLL_API KaxChapterProcess : public EbmlMaster {
+public:
+    KaxChapterProcess();
+	KaxChapterProcess(const KaxChapterProcess & ElementToClone) :EbmlMaster(ElementToClone) {}
+    static EbmlElement & Create() {return *(new KaxChapterProcess);}
+    const EbmlCallbacks & Generic() const {return ClassInfos;}
+    static const EbmlCallbacks ClassInfos;
+    operator const EbmlId &() const {return ClassInfos.GlobalId;}
+	EbmlElement * Clone() const {return new KaxChapterProcess(*this);}
+};
+
+class MATROSKA_DLL_API KaxChapterProcessTime : public EbmlUInteger {
+public:
+    KaxChapterProcessTime() {}
+	KaxChapterProcessTime(const KaxChapterProcessTime & ElementToClone) :EbmlUInteger(ElementToClone) {}
+    static EbmlElement & Create() {return *(new KaxChapterProcessTime);}
+    const EbmlCallbacks & Generic() const {return ClassInfos;}
+    static const EbmlCallbacks ClassInfos;
+    operator const EbmlId &() const {return ClassInfos.GlobalId;}
+	EbmlElement * Clone() const {return new KaxChapterProcessTime(*this);}
+};
+
 END_LIBMATROSKA_NAMESPACE
 
 #endif // LIBMATROSKA_CHAPTERS_H

Modified: trunk/libmatroska/src/KaxChapters.cpp
===================================================================
--- trunk/libmatroska/src/KaxChapters.cpp	2004-08-25 14:22:14 UTC (rev 726)
+++ trunk/libmatroska/src/KaxChapters.cpp	2004-08-25 14:44:26 UTC (rev 727)
@@ -52,7 +52,7 @@
     EbmlSemantic(true, false,  KaxChapterAtom::ClassInfos),
 };
 
-EbmlSemantic KaxChapterAtom_ContextList[8] =
+EbmlSemantic KaxChapterAtom_ContextList[9] =
 {
     EbmlSemantic(false, false, KaxChapterAtom::ClassInfos),
     EbmlSemantic(true,  true,  KaxChapterUID::ClassInfos),
@@ -62,6 +62,7 @@
     EbmlSemantic(false, true,  KaxChapterFlagEnabled::ClassInfos),
     EbmlSemantic(false, true,  KaxChapterTrack::ClassInfos),
     EbmlSemantic(false, false, KaxChapterDisplay::ClassInfos),
+    EbmlSemantic(false, false, KaxChapterProcess::ClassInfos),
 };
 
 EbmlSemantic KaxChapterTrack_ContextList[1] =
@@ -76,6 +77,11 @@
     EbmlSemantic(false, false, KaxChapterCountry::ClassInfos),
 };
 
+EbmlSemantic KaxChapterProcess_ContextList[3] =
+{
+    EbmlSemantic(true,  true,  KaxChapterProcessTime::ClassInfos),
+};
+
 const EbmlSemanticContext KaxChapters_Context = EbmlSemanticContext(countof(KaxChapters_ContextList), KaxChapters_ContextList, &KaxSegment_Context, *GetKaxGlobal_Context, &KaxChapters::ClassInfos);
 const EbmlSemanticContext KaxEditionEntry_Context = EbmlSemanticContext(countof(KaxEditionEntry_ContextList), KaxEditionEntry_ContextList, &KaxChapters_Context, *GetKaxGlobal_Context, &KaxEditionEntry::ClassInfos);
 const EbmlSemanticContext KaxEditionUID_Context = EbmlSemanticContext(0, NULL, &KaxEditionEntry_Context, *GetKaxGlobal_Context, &KaxEditionUID::ClassInfos);
@@ -94,6 +100,8 @@
 const EbmlSemanticContext KaxChapterString_Context = EbmlSemanticContext(0, NULL, &KaxChapterDisplay_Context, *GetKaxGlobal_Context, &KaxChapterString::ClassInfos);
 const EbmlSemanticContext KaxChapterLanguage_Context = EbmlSemanticContext(0, NULL, &KaxChapterLanguage_Context, *GetKaxGlobal_Context, &KaxChapterLanguage::ClassInfos);
 const EbmlSemanticContext KaxChapterCountry_Context = EbmlSemanticContext(0, NULL, &KaxChapterCountry_Context, *GetKaxGlobal_Context, &KaxChapterCountry::ClassInfos);
+const EbmlSemanticContext KaxChapterProcess_Context = EbmlSemanticContext(countof(KaxChapterProcess_ContextList), KaxChapterProcess_ContextList, &KaxChapterAtom_Context, *GetKaxGlobal_Context, &KaxChapterProcess::ClassInfos);
+const EbmlSemanticContext KaxChapterProcessTime_Context = EbmlSemanticContext(0, NULL, &KaxChapterProcess_ContextList, *GetKaxGlobal_Context, &KaxChapterProcessTime::ClassInfos);
 
 EbmlId KaxChapters_TheId          (0x1043A770, 4);
 EbmlId KaxEditionEntry_TheId      (0x45B9, 2);
@@ -113,6 +121,8 @@
 EbmlId KaxChapterString_TheId     (0x85, 1);
 EbmlId KaxChapterLanguage_TheId   (0x437C, 2);
 EbmlId KaxChapterCountry_TheId    (0x437E, 2);
+EbmlId KaxChapterProcess_TheId    (0x6944, 2);
+EbmlId KaxChapterProcessTime_TheId(0x6922, 2);
 
 const EbmlCallbacks KaxChapters::ClassInfos(KaxChapters::Create, KaxChapters_TheId, "Chapters", KaxChapters_Context);
 const EbmlCallbacks KaxEditionEntry::ClassInfos(KaxEditionEntry::Create, KaxEditionEntry_TheId, "EditionEntry", KaxEditionEntry_Context);
@@ -132,6 +142,8 @@
 const EbmlCallbacks KaxChapterString::ClassInfos(KaxChapterString::Create, KaxChapterString_TheId, "ChapterString", KaxChapterString_Context);
 const EbmlCallbacks KaxChapterLanguage::ClassInfos(KaxChapterLanguage::Create, KaxChapterLanguage_TheId, "ChapterLanguage", KaxChapterLanguage_Context);
 const EbmlCallbacks KaxChapterCountry::ClassInfos(KaxChapterCountry::Create, KaxChapterCountry_TheId, "ChapterCountry", KaxChapterCountry_Context);
+const EbmlCallbacks KaxChapterProcess::ClassInfos(KaxChapterProcess::Create, KaxChapterProcess_TheId, "ChapterProcess", KaxChapterProcess_Context);
+const EbmlCallbacks KaxChapterProcessTime::ClassInfos(KaxChapterProcessTime::Create, KaxChapterProcessTime_TheId, "ChapterProcessTime", KaxChapterProcessTime_Context);
 
 KaxChapters::KaxChapters()
  :EbmlMaster(KaxChapters_Context)
@@ -153,4 +165,8 @@
 :EbmlMaster(KaxChapterDisplay_Context)
 {}
 
+KaxChapterProcess::KaxChapterProcess()
+:EbmlMaster(KaxChapterProcess_Context)
+{}
+
 END_LIBMATROSKA_NAMESPACE
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.