Subversion Repositories filter_foundry

Rev

Rev 467 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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