summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2020-12-26 19:25:49 +0100
committerKai Uwe Broulik <kde@privat.broulik.de>2020-12-26 19:31:19 +0100
commit5b254b9f344f8954674541aecc8445d772531536 (patch)
tree73453fe401a854e4200403527e3bf6218d5cdc45
parent53c24fa52547e5c10b9b2f1dda7180a14151e5c1 (diff)
downloadshared-mime-info-5b254b9f344f8954674541aecc8445d772531536.tar.gz
Add Khronos image texture format version 2
Its draft specification [1] calls for a "*.ktx2" glob and "image/ktx2" type as it contains backwards-incompatible changes over version 1. [1] http://github.khronos.org/KTX-Specification/
-rw-r--r--data/freedesktop.org.xml.in11
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/rgba-reference-u.ktx2bin0 -> 65800 bytes
3 files changed, 13 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index b70912d2..69b3f2f4 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -6775,6 +6775,17 @@ command to generate the output files.
</magic>
<glob pattern="*.ktx"/>
</mime-type>
+ <mime-type type="image/ktx2">
+ <comment>Khronos texture image</comment>
+ <magic priority="80">
+ <match type="big32" value="0xAB4B5458" offset="0">
+ <match type="big32" value="0x203230BB" offset="4">
+ <match type="big32" value="0x0D0A1A0A" offset="8"/>
+ </match>
+ </match>
+ </magic>
+ <glob pattern="*.ktx2"/>
+ </mime-type>
<mime-type type="image/astc">
<comment>ASTC texture</comment>
<acronym>ASTC</acronym>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index b452e7f8..a8bd4be7 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -110,6 +110,8 @@ ooo25876-2.pct image/x-pict
newtonme.pict image/x-pict
# Copied from https://github.com/KhronosGroup/KTX/tree/master/testimages
rgb-reference.ktx image/ktx
+# Copied from https://github.com/KhronosGroup/KTX/tree/master/testimages
+rgba-reference-u.ktx2 image/ktx2
# Copied from https://gitlab.gnome.org/GNOME/gnome-photos/blob/master/data/dnd-counter.svg
dnd-counter.svg image/svg+xml
# Copied from https://github.com/linuxmint/mint-x-icons/tree/master/usr/share/icons/Mint-X-Aqua/places/128
diff --git a/tests/mime-detection/rgba-reference-u.ktx2 b/tests/mime-detection/rgba-reference-u.ktx2
new file mode 100644
index 00000000..6690ed42
--- /dev/null
+++ b/tests/mime-detection/rgba-reference-u.ktx2
Binary files differ