<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE window SYSTEM "chrome://transerver/locale/transerver.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/MediaCoderPrefs/node[@key='videoenc']/node[@key='cuda264']">
<window xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        flex="1"
        >
     <label style="font-weight:bold">Cuda264 Encoder</label>
    <hbox>
        <vbox>
            <grid>
                <columns>
                    <column/><column/>
                </columns>
                <rows >
                    <row align="center">
                        <label>&pref.xsl.profile;</label>
                        <menulist flex="false" oncommand="OnMenuChange2(this,'videoenc.cuda264.profile')">
                            <menupopup>
                                <xsl:for-each select="./node[@key='profile']/enum">
                                <menuitem>
                                    <xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
                                    <xsl:if test=".=../value"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>
                                </menuitem>
                                </xsl:for-each>
                            </menupopup>
                        </menulist>
                    </row>
                    <row align="center">
                        <label>&pref.xsl.x264.level;</label>
                        <textbox onchange="OnTextboxChange2(this,'videoenc.cuda264.level');" size="8" type="number" max="51" min="0">
                            <xsl:attribute name="value"><xsl:value-of select="./node[@key='level']/value"/></xsl:attribute>
                        </textbox>
                    </row>
                    <row align="center">
                      <label>&pref.xsl.x264.bframe;</label>                  
                        <textbox onchange="OnTextboxChange2(this,'videoenc.cuda264.bframes');" size="8" type="number" max="16" min="0">
                            <xsl:attribute name="value"><xsl:value-of select="./node[@key='bframes']/value"/></xsl:attribute>
                        </textbox>
                    </row>
                     <row align="center">
                        <label>&pref.xsl.preset;</label>
                         <menulist flex="false" oncommand="OnMenuChange2(this,'videoenc.cuda264.preset')">
                            <menupopup>
                                <xsl:for-each select="./node[@key='preset']/enum">
                                <menuitem>
                                    <xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
                                    <xsl:if test=".=../value"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>
                                </menuitem>
                                </xsl:for-each>
                            </menupopup>
                        </menulist>
                    </row>                      
                </rows>
            </grid>
            <spcaer height="10px"/>
            <button label="&pref.xsl.btn.tree;" oncommand="OnOpenAdvancedSplitter('adv_splitter')"></button>
        </vbox>
        <spacer width="100px" />
        <vbox>
            <groupbox>
                <grid>
                    <columns>
                        <column flex="1"/>
                    </columns>
                    <rows >
                        <row align="center">
                            <checkbox label="&pref.xsl.cuda264.gop;" oncommand="OnCheckboxChange2(this,'videoenc.cuda264.gop')">
                                <xsl:if test="./node[@key='gop']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                            </checkbox>
                        </row>
                        <row align="center">
                            <checkbox label="&pref.xsl.cuda264.cabac;" oncommand="OnCheckboxChange2(this,'videoenc.cuda264.cabac')">
                                <xsl:if test="./node[@key='cabac']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                            </checkbox>
                        </row>
                        <row align="center">
                            <checkbox label="&pref.xsl.cuda264.deblock;" oncommand="OnCheckboxChange2(this,'videoenc.cuda264.deblock')">
                                <xsl:if test="./node[@key='deblock']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                            </checkbox>
                        </row>
                        <row align="center">
                            <checkbox label="&pref.xsl.cuda264.deint;" oncommand="OnCheckboxChange2(this,'videoenc.cuda264.deint')">
                                <xsl:if test="./node[@key='deint']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                            </checkbox>
                        </row>
                    </rows>
                </grid>
            </groupbox>
            <hbox>
                <spacer flex="1"/>
                <image class="cudalog"></image>  <spacer flex="1"/>
            </hbox>
        </vbox>
    </hbox>
</window>
</xsl:template>
</xsl:stylesheet>