Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-08-05 18:42:43 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-08-05 18:42:43 +0300
commit2a73c002f1b869739ad6dae4e234620112682ca6 (patch)
tree81fe802fe0ad1b7fd03784fd82f629268115e221 /Documentation
parent4e7145e3bc831e2342669270a4e7bb80e1b57fb0 (diff)
Update osla.md
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/osla.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/osla.md b/Documentation/osla.md
index 3dc21d3..074254d 100644
--- a/Documentation/osla.md
+++ b/Documentation/osla.md
@@ -18,6 +18,7 @@ This file format share and reserve the following file extensions:
- No encrypted files: The data should be plain and easy to access
- No property or changed variant of the file format should exists!
- Machine follows sequential gcode commands
+- Endianness: Little-Endian (LE)
## Printer firmware checks (can print this file?)
@@ -67,6 +68,16 @@ eg: `PreviewDataType=RGB16` and `LayerDataType=PNG`
4. Custom image data types are possible, you must take a unique non conflicting ID but the documentation how to read and write are required in order to use a custom type.
5. If you want to apply and register your data type ID to be globaly used on firmwares, you must send us the draft for approval and get that ID reserved for the applied data scheme.
+## Previews
+
+1. Able to save 0 or more previews
+2. Previews must all use same image data type
+3. Previews must be sorted from bigger to smaller
+
+## Offsets
+
+- Preview n = `sizeof(File) + sizeof(Header) + sizeof(CustomTable) + n * PreviewTableSize + SUM(sizeof(..n PreviewDataSize))`
+- Layer n = `LayerDefinitionsAddress + n * LayerTableSize`
# Draft 1