Author Topic: xbt.trid.xml for kodi texture package (*.xbt)  (Read 3473 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 370
xbt.trid.xml for kodi texture package (*.xbt)
« on: April 02, 2019, 09:47:19 PM »
Hello trid users,

some days ago i run TrID inside my kodi formerly known as XBMC media
software. Some samples with "xbt" extension are only described as
"Unknown!. ( see appended output/trid-old.txt).

Most information is found on a specific wiki page of kodi software. So
this is expresses by reference URL line:
   <RefURL>https://kodi.wiki/view/TexturePacker</RefURL>

According to that page a xbt file contains images used by kodi for
faster access.
File format information is available by looking in header files like
XBTF.h of kodi sources.

Such files start with a 4 byte magic expressed by XML construct like:
   <Bytes>58425446</Bytes>
   <ASCII> X B T F</ASCII>
   <Pos>0</Pos>

Afterward comes the version. At the moment there exist only version
2. So mention this fact in remark line.

According to c-source XBTFReader.cpp afterwards the number of files
inside package is stored.  Afterwards comes information about stored
files starting with path string of first archive member.
The string is null terminated and has a maximal length of 256 chars.

So look at the last char of path. This must be null. This can be
used to distinguish binary xbt file from ASCII text starting with
phrase "XBTF" like sample XBTF.txt by XML construct like:
   <Bytes>00</Bytes>
   <Pos>264</Pos>

With the new trid definition all examples are now described ( see
appended output/trid-v-new.txt). TrID definitions and output are stored
in archive xbt_trid.zip. I hope that my XML file can be used in future
version of triddefs.

With best wishes
J?rg Jenderek