<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE quantization-tables [
  <!ELEMENT quantization-tables (table)>
  <!ATTLIST quantization-tables xmlns CDATA #FIXED "">
  <!ELEMENT table (description , levels)>
  <!ATTLIST table xmlns CDATA #FIXED "">
  <!ATTLIST table alias NMTOKEN #REQUIRED>
  <!ATTLIST table slot CDATA #REQUIRED>
  <!ELEMENT description (#PCDATA)>
  <!ATTLIST description xmlns CDATA #FIXED "">
  <!ELEMENT levels (#PCDATA)>
  <!ATTLIST levels xmlns CDATA #FIXED "">
  <!ATTLIST levels divisor CDATA #REQUIRED>
  <!ATTLIST levels height CDATA #REQUIRED>
  <!ATTLIST levels width CDATA #REQUIRED>
]>
<!--
  JPEG quantization table created by Dr. Nicolas Robidoux, Senior Research
  Scientist at Phase One (www.phaseone.com) for use with 2x2 Chroma
  subsampling and (IJG-style, hence ImageMagick-style) quality level
  around 75.

  It is based on the one recommended in

    Relevance of human vision to JPEG-DCT compression by Stanley A. Klein,
    Amnon D. Silverstein and Thom Carney. In Human Vision, Visual
    Processing and Digital Display III, 1992.

  for 1 minute per pixel viewing.

  Specifying only one table in this xml file has two effects when used with
  the ImageMagick option

    -define jpeg:q-table=PATH/TO/THIS/FILE

  1) This quantization table is automatically used for all three channels;

  2) Only one copy is embedded in the JPG file, which saves a few bits
     (only worthwhile for very small thumbnails).
-->
<quantization-tables>
  <table slot="0" alias="luma">
    <description>Luma Quantization Table</description>
    <levels width="8" height="8" divisor="1">
      16,  11,  10,  16,  24,  40,  51,  61,
      12,  12,  14,  19,  26,  58,  60,  55,
      14,  13,  16,  24,  40,  57,  69,  56,
      14,  17,  22,  29,  51,  87,  80,  62,
      18,  22,  37,  56,  68, 109, 103,  77,
      24,  35,  55,  64,  81, 104, 113,  92,
      49,  64,  78,  87, 103, 121, 120, 101,
      72,  92,  95,  98, 112, 100, 103,  99
    </levels>
  </table>
  <table slot="1" alias="chroma_b">
    <description>Cb Quantization Table</description>
    <levels width="8" height="8" divisor="1">
      17,  18,  24,  47,  99,  99,  99,  99,
      18,  21,  26,  66,  99,  99,  99,  99,
      24,  26,  56,  99,  99,  99,  99,  99,
      47,  66,  99,  99,  99,  99,  99,  99,
      99,  99,  99,  99,  99,  99,  99,  99,
      99,  99,  99,  99,  99,  99,  99,  99,
      99,  99,  99,  99,  99,  99,  99,  99,
      99,  99,  99,  99,  99,  99,  99,  99
    </levels>
  </table>
  <table slot="2" alias="chroma_r">
    <description>Cr Quantization Table</description>
    <levels width="8" height="8" divisor="1">
      72,  92,  95,  98, 112, 100, 103,  99
      255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255,
      255, 255, 255, 255, 255, 255, 255, 255,
    </levels>
  </table>
</quantization-tables>

