Subversion Repositories filter_foundry

Rev

Rev 339 | Rev 345 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 339 Rev 341
Line 52... Line 52...
52
 
52
 
53
// Note: In Windows DLL/8BF files, the strings are C-strings, while in MAC-plugins they are Pascal-strings!
53
// Note: In Windows DLL/8BF files, the strings are C-strings, while in MAC-plugins they are Pascal-strings!
54
// However, internally, we work with Pascal Strings:
54
// However, internally, we work with Pascal Strings:
55
// readPARM() converts C to Pascal strings, and doresources() converts them back to C strings for saving.
55
// readPARM() converts C to Pascal strings, and doresources() converts them back to C strings for saving.
56
 
56
 
-
 
57
typedef uint32_t bool32_t;
-
 
58
 
57
// Photoshop's Filter Factory has PARM:16
59
// Photoshop's Filter Factory has PARM:16
58
// Filter Foundry has PARM:16000
60
// Filter Foundry has PARM:16000
59
typedef struct {   //structure of FF PARM resource
61
typedef struct {   //structure of FF PARM resource
60
        uint32_t cbSize;     //size of this structure = 0x2068 (or 0x1C68 for Filter Foundry <1.7)
62
        uint32_t cbSize;     //size of this structure = 0x2068 (or 0x1C68 for Filter Foundry <1.7)
61
        uint32_t standalone; //0=original FF, 1=standalone filter
63
        bool32_t standalone; //0=original FF, 1=standalone filter
62
        uint32_t val[8];     //initial values of controls
64
        uint32_t val[8];     //initial values of controls
63
        uint32_t popDialog;  //1 if need to pop a parameter dialog
65
        bool32_t popDialog;  //1 if need to pop a parameter dialog
64
        uint32_t unknown1;
66
        uint32_t unknown1;
65
        uint32_t unknown2; // Byte 48..52 must be 0 to make obfuscation of FF>=7.0.5 work
67
        uint32_t unknown2; // Byte 48..52 must be 0 to make obfuscation of FF>=7.0.5 work
66
        uint32_t unknown3;
68
        uint32_t unknown3;
67
        uint32_t map_used[4];   //true if map(n) is used
69
        bool32_t map_used[4];   //true if map(n) is used
68
        uint32_t ctl_used[8];   //true if ctl(n) is used
70
        bool32_t ctl_used[8];   //true if ctl(n) is used
69
        unsigned char category[252];    //Category name
71
        unsigned char category[252];    //Category name
70
        // Michael Johannhanwahr's protect flag...
72
        // Michael Johannhanwahr's protect flag...
71
        uint32_t iProtected;            // == 1 means protected
73
        uint32_t iProtected;            // == 1 means protected
72
        unsigned char title[256];       //Filter title
74
        unsigned char title[256];       //Filter title
73
        unsigned char copyright[256];   //Copyright info
75
        unsigned char copyright[256];   //Copyright info
Line 78... Line 80...
78
} PARM_T/*_PHOTOSHOP*/;
80
} PARM_T/*_PHOTOSHOP*/;
79
 
81
 
80
// Premiere's Transition/Filter Factory has PARM:16000
82
// Premiere's Transition/Filter Factory has PARM:16000
81
typedef struct {   //structure of Premiere FF/TF PARM resource
83
typedef struct {   //structure of Premiere FF/TF PARM resource
82
        uint32_t cbSize;    //size of this structure = 0x206C
84
        uint32_t cbSize;    //size of this structure = 0x206C
83
        uint32_t standalone;  //0=original FF, 1=standalone filter
85
        bool32_t standalone;  //0=original FF, 1=standalone filter
84
        uint32_t singleExpression; //1 if "single expression" is checked (member only available in Premiere)
86
        bool32_t singleExpression; //1 if "single expression" is checked (member only available in Premiere)
85
        uint32_t val[8];    //initial values of controls
87
        uint32_t val[8];    //initial values of controls
86
        uint32_t popDialog; //1 if need to pop a parameter dialog
88
        bool32_t popDialog; //1 if need to pop a parameter dialog
87
        uint32_t unknown1;
89
        uint32_t unknown1;
88
        uint32_t unknown2;
90
        uint32_t unknown2;
89
        uint32_t unknown3;
91
        uint32_t unknown3;
90
        uint32_t map_used[4];   //true if map(n) is used
92
        bool32_t map_used[4];   //true if map(n) is used
91
        uint32_t ctl_used[8];   //true if ctl(n) is used
93
        bool32_t ctl_used[8];   //true if ctl(n) is used
92
        unsigned char title[256]; // in Photoshop Filter Factory: Category
94
        unsigned char title[256]; // in Photoshop Filter Factory: Category
93
        unsigned char author[256]; // in Photoshop Filter Factory: Title
95
        unsigned char author[256]; // in Photoshop Filter Factory: Title
94
        unsigned char modulename[256]; // in Photoshop Filter Factory: Copyright
96
        unsigned char modulename[256]; // in Photoshop Filter Factory: Copyright
95
        unsigned char copyright[256]; // in Photoshop Filter Factory: Author
97
        unsigned char copyright[256]; // in Photoshop Filter Factory: Author
96
        unsigned char map[4][256];      //4 map labels
98
        unsigned char map[4][256];      //4 map labels