Commit 37f563bf authored by Steve Lhomme's avatar Steve Lhomme

specs: introduce ChapterStringUID for WebVTT cue identifiers

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@867 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 4d44a498
......@@ -227,6 +227,7 @@ extern const ebml_context MATROSKA_ContextEditionFlagHidden;
extern const ebml_context MATROSKA_ContextEditionFlagDefault;
extern const ebml_context MATROSKA_ContextEditionFlagOrdered;
extern const ebml_context MATROSKA_ContextChapterUID;
extern const ebml_context MATROSKA_ContextChapterStringUID;
extern const ebml_context MATROSKA_ContextChapterTimeStart;
extern const ebml_context MATROSKA_ContextChapterTimeEnd;
extern const ebml_context MATROSKA_ContextChapterFlagHidden;
......
......@@ -470,6 +470,7 @@ const ebml_context MATROSKA_ContextEditionFlagHidden = {0x45BD, EBML_BOOLEAN_CLA
const ebml_context MATROSKA_ContextEditionFlagDefault = {0x45DB, EBML_BOOLEAN_CLASS, 1, (intptr_t)0, "EditionFlagDefault", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextEditionFlagOrdered = {0x45DD, EBML_BOOLEAN_CLASS, 1, (intptr_t)0, "EditionFlagOrdered", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextChapterUID = {0x73C4, EBML_INTEGER_CLASS, 0, 0, "ChapterUID", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextChapterStringUID = {0x5654, EBML_UNISTRING_CLASS, 0, 0, "ChapterStringUID", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextChapterTimeStart = {0x91, EBML_INTEGER_CLASS, 0, 0, "ChapterTimeStart", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextChapterTimeEnd = {0x92, EBML_INTEGER_CLASS, 0, 0, "ChapterTimeEnd", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextChapterFlagHidden = {0x98, EBML_BOOLEAN_CLASS, 1, (intptr_t)0, "ChapterFlagHidden", NULL, EBML_SemanticGlobals, NULL};
......@@ -518,6 +519,7 @@ const ebml_context MATROSKA_ContextChapProcess = {0x6944, EBML_MASTER_CLASS, 0,
const ebml_semantic EBML_SemanticChapterAtom[] = {
{0, 0, &MATROSKA_ContextChapterAtom, 0}, // recursive
{1, 1, &MATROSKA_ContextChapterUID, 0},
{0, 1, &MATROSKA_ContextChapterStringUID, PROFILE_MATROSKA_V1|PROFILE_MATROSKA_V2|PROFILE_DIVX},
{1, 1, &MATROSKA_ContextChapterTimeStart, 0},
{0, 1, &MATROSKA_ContextChapterTimeEnd, PROFILE_WEBM},
{1, 1, &MATROSKA_ContextChapterFlagHidden, PROFILE_WEBM},
......
......@@ -185,6 +185,7 @@
<element name="EditionFlagOrdered" level="3" id="0x45DD" type="uinteger" minver="1" webm="0" default="0" range="0-1">Specify if the chapters can be defined multiple times and the order to play them is enforced. (1 bit)</element>
<element name="ChapterAtom" level="3" recursive="1" id="0xB6" type="master" mandatory="1" multiple="1" minver="1" webm="1">Contains the atom information to use as the chapter atom (apply to all tracks).</element>
<element name="ChapterUID" level="4" id="0x73C4" type="uinteger" mandatory="1" minver="1" webm="1" range="not 0">A unique ID to identify the Chapter.</element>
<element name="ChapterStringUID" level="4" id="0x5654" type="utf-8" mandatory="0" minver="3" webm="1">A unique string ID to identify the Chapter. Use for <a href="http://dev.w3.org/html5/webvtt/#webvtt-cue-identifier">WebVTT cue identifier storage</a>.</element>
<element name="ChapterTimeStart" level="4" id="0x91" type="uinteger" mandatory="1" minver="1" webm="1">Timecode of the start of Chapter (not scaled).</element>
<element name="ChapterTimeEnd" level="4" id="0x92" type="uinteger" minver="1" webm="0">Timecode of the end of Chapter (timecode excluded, not scaled).</element>
<element name="ChapterFlagHidden" level="4" id="0x98" type="uinteger" mandatory="1" minver="1" webm="0" default="0" range="0-1">If a chapter is hidden (1), it should not be available to the user interface (but still to Control Tracks). (1 bit)</element>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment