]> granicus.if.org Git - imagemagick/blob - config/quantization-table.xml
(no commit message)
[imagemagick] / config / quantization-table.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE quantization-tables [
3 <!ELEMENT quantization-tables (table)+>
4 <!ELEMENT table (description , levels)>
5 <!ELEMENT description (CDATA)>
6 <!ELEMENT levels (CDATA)>
7 <!ATTLIST table slot ID #REQUIRED>
8 <!ATTLIST levels width CDATA #REQUIRED>
9 <!ATTLIST levels height CDATA #REQUIRED>
10 <!ATTLIST levels divisor CDATA #REQUIRED>
11 ]>
12 <!--
13   JPEG quantization tables.
14 -->
15 <quantization-tables>
16   <table slot="0" alias="luminance">
17     <description>Luminance Quantization Table</description>
18     <levels width="8" height="8" divisor="1">
19       16, 12, 14, 17, 22, 30, 45, 72,
20       12, 13, 14, 17, 22, 31, 46, 74,
21       14, 14, 16, 19, 25, 35, 52, 83,
22       17, 17, 19, 23, 30, 41, 62, 100,
23       22, 22, 25, 30, 39, 54, 80, 129,
24       30, 31, 35, 41, 54, 74, 111, 178,
25       45, 46, 52, 62, 80, 111, 166, 267,
26       72, 74, 83, 100, 129, 178, 267, 428
27     </levels>
28   </table>
29
30   <table slot="1" alias="chrominance">
31     <description>Chrominance Quantization Table</description>
32     <levels width="8" height="8" divisor="1">
33       17, 18, 22, 31, 50, 92, 193, 465,
34       18, 19, 24, 33, 54, 98, 207, 498,
35       22, 24, 29, 41, 66, 120, 253, 609,
36       31, 33, 41, 57, 92, 169, 355, 854,
37       50, 54, 66, 92, 148, 271, 570, 1370,
38       92, 98, 120, 169, 271, 498, 1046, 2516,
39       193, 207, 253, 355, 570, 1046, 2198, 5289,
40       465, 498, 609, 854, 1370, 2516, 5289, 12725
41     </levels>
42   </table>
43 </quantization-tables>