AV1 import: parse dive mode

This is tested only with OC and requires that other modes use compatible
terms for the mode.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2016-12-31 13:27:41 +02:00
parent 8766054581
commit 2ce1b4e668

View file

@ -44,13 +44,23 @@
<xsl:param name="lineno"/>
<xsl:param name="remaining"/>
<!-- For now, parse only depth values - they are numeric -->
<xsl:if test="string(number(substring($line, 1, 1))) != 'NaN'">
<xsl:call-template name="printFields">
<xsl:with-param name="line" select="$line"/>
<xsl:with-param name="lineno" select="'0'"/>
</xsl:call-template>
</xsl:if>
<xsl:choose>
<xsl:when test="string(number(substring($line, 1, 1))) != 'NaN'">
<xsl:call-template name="printFields">
<xsl:with-param name="line" select="$line"/>
<xsl:with-param name="lineno" select="'0'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="substring-before($line, '=') = 'DiveMode'">
<xsl:attribute name="dctype">
<xsl:value-of select="substring-before(substring-after($line, '= '), ' ')"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$remaining != ''">
<xsl:call-template name="printLine">