Rev 467 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
378 | daniel-mar | 1 | FFX (Filters Unlimited) file format |
2 | =================================== |
||
3 | |||
466 | daniel-mar | 4 | FFXFile = { |
538 | daniel-mar | 5 | FFXString fileVersion // "FFX1.0", or "FFX1.1", or "FFX1.2" |
6 | FFXString title |
||
7 | FFXString category |
||
8 | FFXString author |
||
9 | FFXString copyright |
||
10 | FFXString[5] channels // I (Intro), R (Red), G (Green), B (Blue), A (Alpha) |
||
11 | FFXSliderInfo[8] sliders |
||
12 | int32_t gradientIndex |
||
13 | int32_t bitmapInfoSize // only in FFX >= 1.2, otherwise not present |
||
14 | FFXBitmapInfo bitmapInfo // only in FFX >= 1.2, otherwise not present |
||
15 | int32_t numPresets // only in FFX >= 1.1, otherwise not present |
||
16 | FFXPreset[] presets // only in FFX >= 1.1, otherwise not present |
||
378 | daniel-mar | 17 | } |
18 | |||
538 | daniel-mar | 19 | FFXBitmapInfo = { |
20 | char[7] szFilesize // human-readable filesize in decimal notation (numeric string) with NUL terminator(s) |
||
21 | char[] jpgData |
||
390 | daniel-mar | 22 | } |
23 | |||
538 | daniel-mar | 24 | FFXString = { |
25 | int32_t length |
||
26 | char[] value |
||
378 | daniel-mar | 27 | } |
28 | |||
538 | daniel-mar | 29 | FFXSliderInfo = { |
30 | int32_t nameLength |
||
31 | char[] name // In FFX >= 1.2: Slider can have names prefixes: |
||
32 | // {C} = Checkbox |
||
33 | // {S} or none = Slider |
||
34 | byte enabled |
||
35 | int32_t initialValue |
||
378 | daniel-mar | 36 | } |
37 | |||
538 | daniel-mar | 38 | FFXPreset = { |
39 | FFXString name |
||
40 | int32_t[8] sliderPosition |
||
41 | int32_t gradientIndex |
||
42 | int32_t jpegThumbnailWidth |
||
43 | int32_t jpegThumbnailHeight |
||
44 | int32_t jpegThumbnailLength |
||
45 | byte[] jpegThumbnailData |
||
378 | daniel-mar | 46 | } |