xml: Add PNG icon profiles
[gupnp:gupnp-dlna.git] / data / png.xml
1 <?xml version="1.0"?>
2
3 <!--
4   TODO: We don't currently have a way to check if the image is interlaced.
5   Also, we can't restrict what chunks are used in the image - I think this
6   would be overkill, and renderers will hopefully just ignore chunks they don't
7   understand.
8 -->
9
10 <dlna-profiles>
11   <restrictions>
12     <restriction id="PNG" type="image">
13       <field name="name" type="string">
14         <value>image/png</value>
15       </field>
16     </restriction>
17   </restrictions>
18
19   <dlna-profile name="PNG_SM_ICO" mime="image/png">
20     <restriction type="image">
21       <parent name="PNG" />
22
23       <field name="height" type="int">
24         <value>48</value>
25       </field>
26       <field name="width" type="int">
27         <value>48</value>
28       </field>
29     </restriction>
30   </dlna-profile>
31
32   <dlna-profile name="PNG_LRG_ICO" mime="image/png">
33     <restriction type="image">
34       <parent name="PNG" />
35
36       <field name="height" type="int">
37         <value>120</value>
38       </field>
39       <field name="width" type="int">
40         <value>120</value>
41       </field>
42     </restriction>
43   </dlna-profile>
44
45   <dlna-profile name="PNG_TN" mime="image/png">
46     <restriction type="image">
47       <parent name="PNG" />
48
49       <field name="height" type="int">
50         <range min="1" max="160" />
51       </field>
52       <field name="width" type="int">
53         <range min="1" max="160" />
54       </field>
55     </restriction>
56   </dlna-profile>
57
58   <dlna-profile name="PNG_LRG" mime="image/png">
59     <restriction type="image">
60       <parent name="PNG" />
61
62       <field name="height" type="int">
63         <range min="1" max="4096" />
64       </field>
65       <field name="width" type="int">
66         <range min="1" max="4096" />
67       </field>
68       <field name="depth" type="int">
69         <value>1</value>
70         <value>2</value>
71         <value>4</value>
72         <value>8</value>
73         <value>16</value>
74         <value>24</value>
75         <value>32</value>
76       </field>
77     </restriction>
78   </dlna-profile>
79 </dlna-profiles>