Skip to content

Commit

Permalink
don't pass the EBML ID length anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 27, 2024
1 parent 44e1191 commit f7eb2eb
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions spectool/schema_2_kaxsemantic_cpp.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:choose>
<xsl:when test="not(contains(substring($plainPath,2),'\'))" />
<xsl:otherwise>
Expand Down Expand Up @@ -142,8 +141,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -166,8 +164,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -193,8 +190,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -218,8 +214,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -243,8 +238,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -268,8 +262,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand Down Expand Up @@ -302,8 +295,7 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand Down

0 comments on commit f7eb2eb

Please sign in to comment.