Projects/Liberty/File Formats/Husqvarna HUS: Difference between revisions
Appearance
No edit summary |
|||
Line 3: | Line 3: | ||
This file format appears to describe a stitch out similar to that used in [[Projects/Liberty/File_Formats/Janome_Embroidery_Format|JEF]] files. | This file format appears to describe a stitch out similar to that used in [[Projects/Liberty/File_Formats/Janome_Embroidery_Format|JEF]] files. | ||
A source of information about this format can be found on this external page: [http://www.jasonweiler.com/HUSandVIPFileFormatInfo.html HUS and VIP File Formats]. However, as described in that document, the compression technique used seems to be both proprietary and closed, so encoding and decoding of stitch information may prove to be difficult. | A source of information about this format can be found on this external page: [http://www.jasonweiler.com/HUSandVIPFileFormatInfo.html HUS and VIP File Formats]. However, as described in that document, the compression technique used seems to be both proprietary and closed, so encoding and decoding of stitch information may prove to be difficult. It depends on whether or not the compression methods used in [http://www.fileformat.info/format/arj/corion.htm the ARJ archive format] are closely related to those provided in the library used for HUS files. | ||
{| class="wikitable" | {| class="wikitable" |
Revision as of 22:13, 23 August 2012
Husqvarna HUS
This file format appears to describe a stitch out similar to that used in JEF files.
A source of information about this format can be found on this external page: HUS and VIP File Formats. However, as described in that document, the compression technique used seems to be both proprietary and closed, so encoding and decoding of stitch information may prove to be difficult. It depends on whether or not the compression methods used in the ARJ archive format are closely related to those provided in the library used for HUS files.
Offset | Description |
---|---|
0 | magic number? (0x00c8fc5d for HUS; 0x0190fc5d for VIP) |
4 | (looks like an offset into the file, but can be larger than the file extent) |
8 | number of threads/colours |
12, 14 | maximum coordinates (16-bit, little endian, signed) |
16 (0x10), 18 | minimum coordinates (16-bit, little endian, signed) |
20 (0x14) | offset to data past colour/thread definitions |
24 (0x18) | unknown (looking at a file with an odd number of bytes where this field is also an odd number suggests that this could be the start of thread position data) |
28 (0x1c) | unknown (looks like a length or offset) |
32-40 (0x20-0x28) | Pattern name or null bytes - VIP format includes extra data at 40 (0x28) |
40 (0x28) | two zero bytes |
42 (0x2a) | start of colour/thread definitions (2 bytes each) |