Embroidery format JEF
Jump to navigation
Jump to search
JEF Format
JEF Header
Type | Bytes | Value | Description |
---|---|---|---|
`u32` | 4 | 0x74 +8 * Color_Changes | Offset into file where stitches begin. |
`u32` | 4 | 0x14 | Unknown. (version number?) |
`char` | 14 | "20122017218088" | Date |
`u8` | 1 | 0x20 | Unknown |
`u8` | 1 | 0x20 | Unknown |
`u32` | 4 | Color Count | Color Count |
`u32` | 4 | Point Count | Point Count |
`u32` | 4 | Hoop Used | Hoop |
`u32` | 16 | Extends | Distances from center of hoop. |
`u32` | 16 | Edge amount for hoop | Distance from default 110 x 110 Hoop, or -1,-1,-1,-1 if does not fit. |
`u32` | 16 | Edge amount for hoop | Distance from default 50 x 50 Hoop, or -1,-1,-1,-1 if does not fit. |
`u32` | 16 | Edge amount for hoop | Distance from default 140 x 200 Hoop, or -1,-1,-1,-1 if does not fit. |
`u32` | 16 | Edge amount for hoop | Distance from custom hoop, or -1,-1,-1,-1 if does not fit. |
`u32` | 4 * Color_Changes | Magic Number Color Lookup | List of colors changes. |
`u32` | 4 * Color_Changes | 0x0D | The values 0x0D, 0x00, 0x00, 0x00 repeated as many times as there are color changes. |
Hoop
Width | Height | Value |
---|---|---|
110 | 110 | 0 |
50 | 50 | 1 |
140 | 200 | 2 |
126 | 110 | 3 |
200 | 200 | 4 |
JEF Body
Stitch
A stitch is two bytes of X, Y coords in 2s complement between (-127,127)
Commands
If the X value is 0x80 (-128) then the issued value is a command, the command is predicated on the value of Y. Each command is 0x80, 0x??, dx, dy (Except end which simply ends at 0x80, 0x10)
Command | B0 | B1 |
---|---|---|
END | 0x80 | 0x10 |
COLOR_CHANGE | 0x80 | 0x01 |
STOP | 0x80 | 0x01 |
JUMP | 0x80 | 0x02 |
TRIM | 0x80 | 0x02 |