This commit is contained in:
Tiago Conceição
2021-08-08 20:29:52 +01:00
parent a284dbbe3e
commit ff354559a5
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -91,7 +91,7 @@ eg: `PreviewDataType=RGB565` and `LayerDataType=PNG`
## Structure
1. [File] (150 bytes)
2. [Header] (193 bytes)
2. [Header] (197 bytes)
3. [Custom table] (0 or more bytes)
4. [Previews] (0 or more)
- Preview 1 (8 bytes + sizeof(preview image data))
@@ -127,9 +127,10 @@ PreviewDataType=RGB565\0\0\0\0\0\0\0\0\0\0 (char[16]) compressed image data type
LayerDataType=PNG\0\0\0\0\0\0\0\0\0\0\0\0\0 (char[16]) compressed image data type, eg: RLE-XXX or PNG or JPG or BMP OR other?
PreviewTableSize=8 (uint), Size of each preview table
PreviewCount=2 (byte) Number of previews/thumbnails on this file
LayerTableSize=4 (uint), Size of each layer table
LayerHeight=0.05 (float) Layer height in mm
BottomLayerCount=4 (ushort) Total number of bottom/burn layers
LayerCount=1000 (uint) Total number of layers
LayerTableSize=4 (uint), Size of each layer table
LayerDefinitionsAddress=00000 (uint) Address for layer definition start
GCodeAddress=000000 (uint) Address for gcode definition start
PrintTime=12345 (uint) Print time in seconds
+2 -1
View File
@@ -33,9 +33,10 @@ struct HEADER {
uint PreviewTableSize <fgcolor=cBlack, bgcolor=cRed>;
uint PreviewCount <fgcolor=cBlack, bgcolor=cRed>;
uint LayerTableSize <fgcolor=cBlack, bgcolor=cRed>;
float LayerHeight <fgcolor=cBlack, bgcolor=cRed>;
ushort BottomLayersCount <fgcolor=cBlack, bgcolor=cRed>;
uint LayerCount <fgcolor=cBlack, bgcolor=cRed>;
uint LayerTableSize <fgcolor=cBlack, bgcolor=cRed>;
uint LayerDefinitionsAddress <fgcolor=cBlack, bgcolor=cRed>;
uint GCodeAddress <fgcolor=cBlack, bgcolor=cRed>;