-
Notifications
You must be signed in to change notification settings - Fork 1
/
PiPL_body.rc
154 lines (133 loc) · 10.2 KB
/
PiPL_body.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*
This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
Copyright (C) 2003-2009 Toby Thain, [email protected]
Copyright (C) 2018-2022 Daniel Marschall, ViaThinkSoft
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// This RC file is for Windows only.
// The PiPL_body contains the properties which are added to PIPL and TPLT (PIPL-Template).
// PIPL will additionally receive name, catg and hstm
// Attention: This file may only contain 8 properties. If this number changes,
// please also change PiPL.rc
/* Filter module */
VENDORID, LC(k,i,n,d), NULLID, 4L, LC(8,B,F,M),
/* Version Number */
VENDORID, LC(v,e,r,s), NULLID, 4L, latestFilterSubVersion, latestFilterVersion,
/* Priority (0 = default) */
VENDORID, LC(p,r,t,y), NULLID, 4L, NULLID,
/* Supported modes */
VENDORID, LC(m,o,d,e), NULLID, 4L, /* 1st & 2nd byte: */ noBitmap| /* Even if doesSupportBitmap is chosen, the filter is not enabled. Weird. */
doesSupportGrayScale|
noIndexedColor| /* Even if doesSupportIndexedColor is chosen, the filter is not enabled. Weird. */
doesSupportRGBColor|
doesSupportCMYKColor|
doesSupportHSLColor|
doesSupportHSBColor|
doesSupportMultichannel|
doesSupportDuotone|
doesSupportLABColor|
doesSupportGray16| /* undocumented! */
doesSupportRGB48| /* undocumented! */
doesSupportLab48| /* undocumented! */
doesSupportCMYK64| /* undocumented! */
doesSupportDeepMultichannel| /* undocumented! */
doesSupportDuotone16, /* undocumented! */
/* 3rd & 4th byte: */ doesSupportRGB96| /* undocumented! */
doesSupportGray32, /* undocumented! */
/* We need this to enable the plugin for BigDocuments */
VENDORID, LC(m,s,3,2), NULLID, 8L, 2000000L, 2000000L,
/* Required host (' ' = ANY) */
/* Commented out, because there is a risk that a badly programmed host will think that ' '!='8BIM' and doesn't load the plugin then?!*/
//VENDORID, LC(h,o,s,t), NULLID, 4L, ANY,
/* "FilterLayerSupport" (Allows smart filters) */
/* TODO: It seems to work, but are we really fully supporting Smart Filters?! */
VENDORID, LC(f,l,l,y), NULLID, 4L, 0x80L,
/* Enable info */
/* Note: The string must at least contain one zero terminated character. The length 272 of the string */
/* (including zero terminated padding) must be divisible by 4, otherwise it must be padded with zeros */
/* "Plug-in Resource Guide.pdf", pages 61-62 */
VENDORID, LC(e,n,b,l), NULLID, 272L, "in (PSHOP_ImageMode, GrayScaleMode, RGBMode, CMYKMode, HSLMode, HSBMode, MultichannelMode, DuotoneMode, LabMode, Gray16Mode, RGB48Mode, Lab48Mode, CMYK64Mode, DeepMultichannelMode, Duotone16Mode, RGB96Mode, Gray32Mode) || PSHOP_ImageDepth == 16 || PSHOP_ImageDepth == 32\0\0",
/* MonitorScalingAware */
/* TODO: Do we support it? For now, commented out */
//VENDORID, LC(p,m,s,a), NULLID, 4L, 1L,
/* FilterCaseInfo - in all cases:
inStraightData,
outStraightData,
doNotWriteOutsideSelection,
doesNotFilterLayerMasks,
worksWithBlankData,
doNotCopySourceToDestination */
VENDORID, LC(f,i,c,i), NULLID, 28L,
/* Filter Case 1: filterCaseFlatImageNoSelection [A background layer or a flat image] */
"\001", // inputHandling [Preprocessing actions on the image data] = 01h (filterDataHandlingNone)
"\001", // outputHandling [Postprocessing actions on the image data] = 01h (filterDataHandlingNone)
"\003", // flags1 [Flags for how the filter case information should be treated] = 03h (in Filter Factory: 00h)
// 1 PIFilterDontCopyToDestinationBit = true (in Filter Factory: false)
// 2 PIFilterWorksWithBlankDataBit = true (in Filter Factory: false)
// 4 PIFilterFiltersLayerMaskBit = false
// 8 PIFilterWritesOutsideSelectionBit = false
"\000", // flags2 [Reserved] = 00h
/* Filter Case 2: filterCaseFlatImageWithSelection [No transparency data, but a selection may be present] */
"\001", // inputHandling [Preprocessing actions on the image data] = 01h (filterDataHandlingNone)
"\001", // outputHandling [Postprocessing actions on the image data] = 01h (filterDataHandlingNone)
"\003", // flags1 [Flags for how the filter case information should be treated] = 03h (in Filter Factory: 00h)
// 1 PIFilterDontCopyToDestinationBit = true (in Filter Factory: false)
// 2 PIFilterWorksWithBlankDataBit = true (in Filter Factory: false)
// 4 PIFilterFiltersLayerMaskBit = false
// 8 PIFilterWritesOutsideSelectionBit = false
"\000", // flags2 [Reserved] = 00h
/* Filter Case 3: filterCaseFloatingSelection [Image data with an accompanying mask] */
"\001", // inputHandling [Preprocessing actions on the image data] = 01h (filterDataHandlingNone, in Filter Factory: 0Ah filterDataHandlingBackgroundZap)
"\001", // outputHandling [Postprocessing actions on the image data] = 01h (filterDataHandlingNone)
"\003", // flags1 [Flags for how the filter case information should be treated] = 03h (in Filter Factory: 00h)
// 1 PIFilterDontCopyToDestinationBit = true (in Filter Factory: false)
// 2 PIFilterWorksWithBlankDataBit = true (in Filter Factory: false)
// 4 PIFilterFiltersLayerMaskBit = false
// 8 PIFilterWritesOutsideSelectionBit = false
"\000", // flags2 [Reserved] = 00h
/* Filter Case 4: filterCaseEditableTransparencyNoSelection [Layer with transparency editing enabled and no selection] */
"\001", // inputHandling [Preprocessing actions on the image data] = 01h (filterDataHandlingNone, in Filter Factory: 0Ah filterDataHandlingBackgroundZap)
"\001", // outputHandling [Postprocessing actions on the image data] = 01h (filterDataHandlingNone)
"\003", // flags1 [Flags for how the filter case information should be treated] = 03h (in Filter Factory: 02h)
// 1 PIFilterDontCopyToDestinationBit = true (in Filter Factory: false)
// 2 PIFilterWorksWithBlankDataBit = true
// 4 PIFilterFiltersLayerMaskBit = false
// 8 PIFilterWritesOutsideSelectionBit = false
"\000", // flags2 [Reserved] = 00h
/* Filter Case 5: filterCaseEditableTransparencyWithSelection [Layer with transparency editing enabled and a selection] */
"\001", // inputHandling [Preprocessing actions on the image data] = 01h (filterDataHandlingNone, in Filter Factory: 0Ah filterDataHandlingBackgroundZap)
"\001", // outputHandling [Postprocessing actions on the image data] = 01h (filterDataHandlingNone)
"\003", // flags1 [Flags for how the filter case information should be treated] = 03h (in Filter Factory: 02h)
// 1 PIFilterDontCopyToDestinationBit = true (in Filter Factory: false)
// 2 PIFilterWorksWithBlankDataBit = true
// 4 PIFilterFiltersLayerMaskBit = false
// 8 PIFilterWritesOutsideSelectionBit = false
"\000", // flags2 [Reserved] = 00h
/* Filter Case 6: filterCaseProtectedTransparencyNoSelection [Layer with transparency editing disabled and no selection] */
"\001", // inputHandling [Preprocessing actions on the image data] = 01h (filterDataHandlingNone, in Filter Factory: 00h filterDataHandlingCantFilter)
"\001", // outputHandling [Postprocessing actions on the image data] = 01h (filterDataHandlingNone, in Filter Factory: 00h filterDataHandlingCantFilter)
"\003", // flags1 [Flags for how the filter case information should be treated] = 03h (in Filter Factory: 00h)
// 1 PIFilterDontCopyToDestinationBit = true (in Filter Factory: false)
// 2 PIFilterWorksWithBlankDataBit = true (in Filter Factory: false)
// 4 PIFilterFiltersLayerMaskBit = false
// 8 PIFilterWritesOutsideSelectionBit = false
"\000", // flags2 [Reserved] = 00h
/* Filter Case 7: filterCaseProtectedTransparencyWithSelection [Layer with transparency editing disabled and a selection] */
"\001", // inputHandling [Preprocessing actions on the image data] = 01h (filterDataHandlingNone, in Filter Factory: 00h filterDataHandlingCantFilter)
"\001", // outputHandling [Postprocessing actions on the image data] = 01h (filterDataHandlingNone, in Filter Factory: 00h filterDataHandlingCantFilter)
"\003", // flags1 [Flags for how the filter case information should be treated] = 03h (in Filter Factory: 00h)
// 1 PIFilterDontCopyToDestinationBit = true (in Filter Factory: false)
// 2 PIFilterWorksWithBlankDataBit = true (in Filter Factory: false)
// 4 PIFilterFiltersLayerMaskBit = false
// 8 PIFilterWritesOutsideSelectionBit = false
"\000", // flags2 [Reserved] = 00h