Skip to content

Commit 85beaba

Browse files
committed
File format details
1 parent bba64ad commit 85beaba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

readme.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,11 @@ uint32_t size_x; // LUT X size, at least 1
126126
uint32_t size_y; // LUT Y size, at least 1
127127
uint32_t size_z; // LUT Z size, at least 1
128128
```
129-
the header is followed by actual LUT data.
129+
the header is followed by actual LUT data: `channels*size_x*size_y*size_z` floats (`data_type==0`) or half-precision
130+
floats (`data_type==1`).
131+
132+
The data is in row-major order, i.e. X axis data changes the fastest, and Z axis changes the slowest.
133+
134+
If data is filtered (`filter==1`) to make it more compressible, it needs to be un-filtered after reading,
135+
and filtered during writing. This does not change the data size, just makes it have more repeated same
136+
sequences for smoothly varying data.

0 commit comments

Comments
 (0)