PTC uses two systems for import and export of files. SD files are generated when an PTC file is exported to the SD card. They simply consist of a header on top of internal PTC file formats. The intended purpose of SD files is to store metadata and a hash so the file can be validated and converted into a QR set. QR sets are used for distributing and importing PTC files by scanning them with the DSi/3DS camera. The information contained in the SD file wrapper is not stored literally in the QR data stream; it is used for validation and processed into a different format. Because QR codes have an upper bound on data storage, a PTC file has to be split into frames in a specific method; these frames are then converted into QR codes.
Note: All multibyte integers (like sizes) are little-endian. All literal byte values in this document (e.g. 50 54
) are written in hexadecimal.
Files exported to SD card consist of a SD file header, and then the conte