Commit 9c906ab8 authored by Steve Lhomme's avatar Steve Lhomme

add TimecodeScaleDenominator to make a fraction with TimecodeScale in Matroska v4

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@856 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent cb9edcbe
......@@ -52,6 +52,7 @@ extern const ebml_context MATROSKA_ContextChapterTranslateID;
extern const ebml_context MATROSKA_ContextChapterTranslate;
extern const ebml_context MATROSKA_ContextTimecodeScale;
extern const ebml_context MATROSKA_ContextTimecodeScaleDenominator;
extern const ebml_context MATROSKA_ContextDuration;
extern const ebml_context MATROSKA_ContextDateUTC;
extern const ebml_context MATROSKA_ContextTitle;
......
......@@ -65,6 +65,7 @@ const ebml_semantic EBML_SemanticChapterTranslate[] = {
};
const ebml_context MATROSKA_ContextChapterTranslate = {0x6924, EBML_MASTER_CLASS, 0, 0, "ChapterTranslate", EBML_SemanticChapterTranslate, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextTimecodeScale = {0x2AD7B1, EBML_INTEGER_CLASS, 1, (intptr_t)1000000, "TimecodeScale", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextTimecodeScaleDenominator = {0x2AD7B2, EBML_INTEGER_CLASS, 1, (intptr_t)1000000000, "TimecodeScaleDenominator", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextDuration = {0x4489, EBML_FLOAT_CLASS, 0, 0, "Duration", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextDateUTC = {0x4461, EBML_DATE_CLASS, 0, 0, "DateUTC", NULL, EBML_SemanticGlobals, NULL};
const ebml_context MATROSKA_ContextTitle = {0x7BA9, EBML_UNISTRING_CLASS, 0, 0, "Title", NULL, EBML_SemanticGlobals, NULL};
......@@ -81,6 +82,7 @@ const ebml_semantic EBML_SemanticInfo[] = {
{0, 0, &MATROSKA_ContextSegmentFamily, PROFILE_WEBM},
{0, 0, &MATROSKA_ContextChapterTranslate, PROFILE_WEBM},
{1, 1, &MATROSKA_ContextTimecodeScale, 0},
{1, 1, &MATROSKA_ContextTimecodeScaleDenominator, PROFILE_MATROSKA_V1|PROFILE_MATROSKA_V2|PROFILE_MATROSKA_V3|PROFILE_DIVX|PROFILE_WEBM},
{0, 1, &MATROSKA_ContextDuration, 0},
{0, 1, &MATROSKA_ContextDateUTC, 0},
{0, 1, &MATROSKA_ContextTitle, PROFILE_WEBM},
......
......@@ -35,7 +35,8 @@
<element name="ChapterTranslateEditionUID" level="3" id="0x69FC" type="uinteger" multiple="1" minver="1" webm="0">Specify an edition UID on which this correspondance applies. When not specified, it means for all editions found in the segment.</element>
<element name="ChapterTranslateCodec" level="3" id="0x69BF" type="uinteger" mandatory="1" minver="1" webm="0">The <a href="http://www.matroska.org/technical/specs/index.html#ChapProcessCodecID">chapter codec</a> using this ID (0: Matroska Script, 1: DVD-menu).</element>
<element name="ChapterTranslateID" level="3" id="0x69A5" type="binary" mandatory="1" minver="1" webm="0">The binary value used to represent this segment in the chapter codec data. The format depends on the <a href="http://www.matroska.org/technical/specs/chapters/index.html#ChapProcessCodecID">ChapProcessCodecID</a> used.</element>
<element name="TimecodeScale" level="2" id="0x2AD7B1" type="uinteger" mandatory="1" minver="1" default="1000000">Timecode scale in nanoseconds (1.000.000 means all timecodes in the segment are expressed in milliseconds).</element>
<element name="TimecodeScale" level="2" id="0x2AD7B1" type="uinteger" mandatory="1" minver="1" default="1000000">Timecode scale in nanoseconds (1.000.000 means all timecodes in the segment are expressed in milliseconds). When combined with <a href="http://www.matroska.org/technical/specs/index.html#TimecodeScaleDenominator">TimecodeScaleDenominator</a> the Timecode scale is given by the fraction TimecodeScale/TimecodeScaleDenominator in seconds.</element>
<element name="TimecodeScaleDenominator" level="2" id="0x2AD7B2" type="uinteger" mandatory="1" minver="4" default="1000000000">Timecode scale numerator, see <a href="http://www.matroska.org/technical/specs/index.html#TimecodeScale">TimecodeScale</a>.</element>
<element name="Duration" level="2" id="0x4489" type="float" minver="1" range="&gt; 0">Duration of the segment (based on TimecodeScale).</element>
<element name="DateUTC" level="2" id="0x4461" type="date" minver="1">Date of the origin of timecode (value 0), i.e. production date.</element>
<element name="Title" level="2" id="0x7BA9" type="utf-8" minver="1" webm="0">General name of the segment.</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