<?xml version="1.0"?>

<dlna-profiles>
  <include ref="common.xml" />

  <restrictions>
    <!-- SD resolutions -->
    <!-- NA region -->
    <restriction id="720x480" type="video">
      <parent name="525_D1" />
      <field name="framerate" type="fraction">
        <value>30000/1001</value>
      </field>
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>32/27</value>
        <value>8/9</value>
      </field>
    </restriction>

    <restriction id="704x480" type="video">
      <parent name="525_4SIF" />
      <field name="framerate" type="fraction">
        <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
        <value>24/1</value>
        <value>30000/1001</value>
        <value>30/1</value>
        <value>60000/1001</value> <!-- Note: only valid for interlaced=false -->
        <value>60/1</value> <!-- Note: only valid for interlaced=false -->
      </field>
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>40/33</value>
        <value>10/11</value>
      </field>
    </restriction>

    <restriction id="640x480" type="video">
      <parent name="VGA" />
      <field name="framerate" type="fraction">
        <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
        <value>24/1</value>
        <value>30000/1001</value>
        <value>30/1</value>
        <value>60000/1001</value> <!-- Note: only valid for interlaced=false -->
        <value>60/1</value> <!-- Note: only valid for interlaced=false -->
      </field>
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>1/1</value>
        <value>4/3</value>
      </field>
    </restriction>

    <restriction id="544x480" type="video">
      <parent name="525_3/4D1" />
      <field name="framerate" type="fraction">
        <value>30000/1001</value>
      </field>
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>80/51</value>
        <value>20/17</value>
      </field>
    </restriction>

    <restriction id="480x480" type="video">
      <parent name="525_2/3D1" />
      <field name="framerate" type="fraction">
        <value>30000/1001</value>
      </field>
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>16/9</value>
        <value>4/3</value>
      </field>
    </restriction>

    <restriction id="352x480" type="video">
      <parent name="525_1/2D1" />
      <field name="framerate" type="fraction">
        <value>30000/1001</value>
      </field>
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>80/33</value>
        <value>20/11</value>
      </field>
    </restriction>

    <restriction id="352x240" type="video">
      <parent name="525SIF" />
      <field name="framerate" type="fraction">
        <value>30000/1001</value>
      </field>
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>16/11</value>
        <value>12/11</value>
      </field>
    </restriction>


    <!-- EU region -->
    <restriction id="EU_FPS" type="video">
      <field name="framerate" type="fraction">
        <value>25/1</value>
      </field>
    </restriction>

    <restriction id="720x576" type="video">
      <parent name="625_D1" />
      <parent name="EU_FPS" />
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>64/45</value>
        <value>16/15</value>
      </field>
    </restriction>

    <restriction id="704x576" type="video">
      <parent name="625_4SIF" />
      <parent name="EU_FPS" />
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>64/45</value>
        <value>16/15</value>
      </field>
    </restriction>

    <restriction id="544x576" type="video">
      <parent name="625_3/4D1" />
      <parent name="EU_FPS" />
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>32/17</value>
        <value>24/17</value>
      </field>
    </restriction>

    <restriction id="480x576" type="video">
      <parent name="625_2/3D1" />
      <parent name="EU_FPS" />
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>32/15</value>
        <value>8/5</value>
      </field>
    </restriction>

    <restriction id="352x576" type="video">
      <parent name="625_1/2D1" />
      <parent name="EU_FPS" />
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>32/11</value>
        <value>24/11</value>
      </field>
    </restriction>

    <restriction id="352x288" type="video">
      <parent name="CIF" />
      <parent name="EU_FPS" />
      <field name="pixel-aspect-ratio" type="fraction" used="in-strict">
        <value>16/11</value>
        <value>12/11</value>
      </field>
    </restriction>
 </restrictions>
</dlna-profiles>
