Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 518 → Rev 519

/trunk/PiPL.rc
31,6 → 31,17
 
#define NULLID 0L
 
#define doesSupportBitmap 128 // flagSupportsBitmap
#define doesSupportGrayScale 64 // flagSupportsGrayScale
#define doesSupportIndexedColor 32 // flagSupportsIndexedColor
#define doesSupportRGBColor 16 // flagSupportsRGBColor
#define doesSupportCMYKColor 8 // flagSupportsCMYKColor
#define doesSupportHSLColor 4 // flagSupportsHSLColor
#define doesSupportHSBColor 2 // flagSupportsHSBColor
#define doesSupportMultichannel 1 // flagSupportsMultichannel
#define doesSupportDuotone 32768 // (flagSupportsDuotone << 8) RC doesn't know <<8, nor *256 !
#define doesSupportLABColor 16384 // (flagSupportsLABColor << 8) RC doesn't know <<8, nor *256 !
 
/* Note: make_win.c writes language 0. So, this should be language 0, too,
otherwise the standalone filter would have 2 languages for this resource. */
LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL
38,7 → 49,7
BEGIN
0x0001, /* Reserved (for Photoshop) */
0L, /* kCurrentPiPLVersion */
13L, /* Property Count */
14L, /* Property Count */
 
VENDORID, LC(c,a,t,g), NULLID, 16L, "\014Telegraphics\0\0\0", /* PString */
VENDORID, LC(n,a,m,e), NULLID, 20L, "\021Filter Foundry...\0\0", /* PString */
64,13 → 75,13
VENDORID, LC(w,x,8,6), NULLID, 12L, "PluginMain\0\0", /* Entrypoint Name (Long Word padded C String) */
#endif
 
// Here come 8 properties: kind, vers, prty, mode, ms32, flly, enbl, fici
#include "PiPL_body.rc"
 
/* Object Identifier attribute */
/* Note that 'ViaT' is not a official creator code for ViaThinkSoft and it is unclear where a creator code can be aquired from... */
/* Note: Length 24 must be divisible by 4 */
LC(V,i,a,T), LC(O,b,I,d), NULLID, 24L, "1.3.6.1.4.1.37476.2.72\0\0",
 
#include "PiPL_body.rc"
 
END
 
LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL
78,8 → 89,10
BEGIN
0x0001, /* Reserved (for Photoshop) */
0L, /* kCurrentPiPLVersion */
8L, /* Property Count */
9L, /* Property Count */
VENDORID, LC(w,x,8,6), NULLID, 12L, "PluginMain\0\0", /* Entrypoint Name (Long Word padded C String) */
 
// Here come 8 properties: kind, vers, prty, mode, ms32, flly, enbl, fici
#include "PiPL_body.rc"
END
 
88,7 → 101,9
BEGIN
0x0001, /* Reserved (for Photoshop) */
0L, /* kCurrentPiPLVersion */
8L, /* Property Count */
9L, /* Property Count */
VENDORID, LC(8,6,6,4), NULLID, 12L, "PluginMain\0\0", /* Entrypoint Name (Long Word padded C String) */
 
// Here come 8 properties: kind, vers, prty, mode, ms32, flly, enbl, fici
#include "PiPL_body.rc"
END
/trunk/PiPL_body.rc
21,7 → 21,7
// 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 7 properties. If this number changes,
// Attention: This file may only contain 8 properties. If this number changes,
// please also change PiPL.rc
 
/* Filter module */
30,24 → 30,13
/* Version Number */
VENDORID, LC(v,e,r,s), NULLID, 4L, latestFilterSubVersion, latestFilterVersion,
 
#ifndef doesSupportBitmap
#define doesSupportBitmap flagSupportsBitmap
#define doesSupportGrayScale flagSupportsGrayScale
#define doesSupportIndexedColor flagSupportsIndexedColor
#define doesSupportRGBColor flagSupportsRGBColor
#define doesSupportCMYKColor flagSupportsCMYKColor
#define doesSupportHSLColor flagSupportsHSLColor
#define doesSupportHSBColor flagSupportsHSBColor
#define doesSupportMultichannel flagSupportsMultichannel
#define doesSupportDuotone 32768 // (flagSupportsDuotone << 8) RC doesn't know <<8, nor *256 !
#define doesSupportLABColor 16384 // (flagSupportsLABColor << 8) RC doesn't know <<8, nor *256 !
#endif
/* Priority (0 = default) */
VENDORID, LC(p,r,t,y), NULLID, 4L, NULLID,
 
/* Supported modes */
/* Second byte: */
VENDORID, LC(m,o,d,e), NULLID, 4L, /* First byte: */ /*doesSupportBitmap|*/
doesSupportGrayScale|
doesSupportIndexedColor|
/*doesSupportIndexedColor|*/
doesSupportRGBColor|
doesSupportCMYKColor|
doesSupportHSLColor|
69,9 → 58,9
VENDORID, LC(f,l,l,y), NULLID, 4L, 0x80L,
 
/* Enable info */
/* Note: Length 136 must be divisible by 4 */
/* Note: Length 116 must be divisible by 4 */
/* "Plug-in Resource Guide.pdf", pages 61-62 */
VENDORID, LC(e,n,b,l), NULLID, 136L, "in (PSHOP_ImageMode, GrayScaleMode, IndexedColorMode, RGBMode, CMYKMode, HSLMode, HSBMode, MultichannelMode, DuotoneMode, LabMode)\0\0\0\0\0\0",
VENDORID, LC(e,n,b,l), NULLID, 116L, "in (PSHOP_ImageMode, GrayScaleMode, RGBMode, CMYKMode, HSLMode, HSBMode, MultichannelMode, DuotoneMode, LabMode)\0\0\0\0",
 
/* MonitorScalingAware */
/* TODO: Do we support it? For now, commented out */
/trunk/os_types.md
52,6 → 52,14
| `CURS` | 1129665107 | 0x43555253 | Cursor (only Macintosh build) | Apple |
| `vers` | 1986359923 | 0x76657273 | Version number (only Macintosh build) | Apple |
 
File type
---------
 
| Type | Dec | Hex | Description | Vendor |
|--------|------------|------------|---------------------------------------------------------|-----------------|
| `8BFM` | 943867469 | 0x3842464d | Adobe Filter module (used in `kind` PiPL property) | Adobe |
| `TEXT` | 1413830740 | 0x54455854 | Text file | Apple |
 
Creator codes
-------------
 
58,7 → 66,8
| Type | Dec | Hex | Description | Vendor |
|--------|------------|------------|---------------------------------------------------------|-----------------|
| `8BIM` | 943868237 | 0x3842494d | Adobe Photoshop | Adobe |
| `8BFM` | 943867469 | 0x3842464d | Adobe Filter module (used in `kind` PiPL property) | Adobe |
| `ttxt` | 1953790068 | 0x74747874 | Text file | Apple |
| `pled` | 1886152036 | 0x706c6564 | Property List Editor | Apple |
 
PlugIn Property List (PiPL) properties
--------------------------------------
67,13 → 76,19
|--------|--------|-----------------------|-----------------------|---------------------------------------------------------|-----------------|
| `8BIM` | `catg` | 943868237 1667331175 | 0x3842494d 0x63617467 | PiPL property "Category" | Adobe |
| `8BIM` | `name` | 943868237 1851878757 | 0x3842494d 0x6e616d65 | PiPL property "Name" | Adobe |
| `8BIM` | `hstm` | 943868237 1752396909 | 0x3842494d 0x6873746d | PiPL property "Has terminology" | Adobe |
| `8BIM` | `cmpt` | 943868237 1668116596 | 0x3842494d 0x636d7074 | PiPL property "Component" (PIPL.r) | Adobe |
| `8BIM` | `hstm` | 943868237 1752396909 | 0x3842494d 0x6873746d | PiPL property "HasTerminology" (PIPL.r) | Adobe |
| `8BIM` | `wx86` | 943868237 2004367414 | 0x3842494d 0x77783836 | PiPL property PIWin32X86CodeProperty (PIGeneral.h) | Adobe |
| `8BIM` | `8664` | 943868237 943076916 | 0x3842494d 0x38363634 | PiPL property PIWin64X86CodeProperty (PIGeneral.h) | Adobe |
| `8BIM` | `kind` | 943868237 1802071652 | 0x3842494d 0x6b696e64 | PiPL property "Kind" (PIPL.r) | Adobe |
| `8BIM` | `prty` | 943868237 1886549113 | 0x3842494d 0x70727479 | PiPL property "Priority" (PIPL.r) | Adobe |
| `8BIM` | `vers` | 943868237 1986359923 | 0x3842494d 0x76657273 | PiPL property "Version" (PIPL.r) | Adobe |
| `8BIM` | `mode` | 943868237 1836016741 | 0x3842494d 0x6d6f6465 | PiPL property "SupportedModes" (PIPL.r) | Adobe |
| `8BIM` | `ms32` | 943868237 1836266290 | 0x3842494d 0x6d733332 | PiPL property "PlugInMaxSize" (PIPL.r) | Adobe |
| `8BIM` | `host` | 943868237 1752134516 | 0x3842494d 0x686f7374 | PiPL property "RequiredHost" (PIPL.r) | Adobe |
| `8BIM` | `flly` | 943868237 1718381689 | 0x3842494d 0x666c6c79 | PiPL property "FilterLayerSupport" (PIPL.r) | Adobe |
| `8BIM` | `enbl` | 943868237 1701732972 | 0x3842494d 0x656e626c | PiPL property "EnableInfo" (PIPL.r) | Adobe |
| `8BIM` | `pmsa` | 943868237 1886221153 | 0x3842494d 0x706d7361 | PiPL property "MonitorScalingAware" (PIPL.r) | Adobe |
| `8BIM` | `fici` | 943868237 1718182761 | 0x3842494d 0x66696369 | PiPL property "FilterCaseInfo" (PIPL.r) | Adobe |
| `ViaT` | `ObId` | 1449746772 1331841380 | 0x56696154 0x4f624964 | PiPL property "Object Identifier" | ViaThinkSoft |
 
83,13 → 98,14
| Type | Dec | Hex | Description | Vendor |
|--------|------------|------------|---------------------------------------------------------|-----------------|
| `8BIM` | 943868237 | 0x3842494d | Adobe Photoshop | Adobe |
| `8BIM` | 943868237 | 0x3842494d | PluginCommander (illegal usage of "8BIM") | ISV |
| `8BIM` | 943868237 | 0x3842494d | Serif Photoplus (illegal usage of "8BIM") | ISV |
| `8BIM` | 943868237 | 0x3842494d | PluginCommander | Other (illegal) |
| `8BIM` | 943868237 | 0x3842494d | Serif Photoplus | Other (illegal) |
| `8B)M` | 943860045 | 0x3842294d | Adobe Premiere | Adobe |
| `PMIG` | 1347242311 | 0x504d4947 | GIMP | ISV |
| `UP20` | 1431319088 | 0x55503230 | IrfanView | ISV |
| `PSP9` | 1347637305 | 0x50535039 | JASC PaintShop Pro X | ISV |
| `NDP.` | 1313099822 | 0x4e44502e | Paint.net | ISV |
| `PMIG` | 1347242311 | 0x504d4947 | GIMP | Other |
| `UP20` | 1431319088 | 0x55503230 | IrfanView | Other |
| `PSP9` | 1347637305 | 0x50535039 | JASC PaintShop Pro X | Other |
| `NDP.` | 1313099822 | 0x4e44502e | Paint.net | Other |
| ` ` | 538976288 | 0x20202020 | Any host | Adobe |
 
Miscellaneous / internal use
----------------------------
/trunk/os_types.php
85,34 → 85,47
ostype_info('vers', 'Version number (only Macintosh build)', 'Apple');
ostype_footer();
 
ostype_header("File type");
ostype_info('8BFM', 'Adobe Filter module (used in `kind` PiPL property)', 'Adobe');
ostype_info('TEXT', 'Text file', 'Apple');
ostype_footer();
 
ostype_header("Creator codes");
ostype_info('8BIM', 'Adobe Photoshop', 'Adobe');
ostype_info('8BFM', 'Adobe Filter module (used in `kind` PiPL property)', 'Adobe');
ostype_info('ttxt', 'Text file', 'Apple');
ostype_info('pled', 'Property List Editor', 'Apple');
ostype_footer();
 
pipl_property_header("PlugIn Property List (PiPL) properties");
pipl_property_info('8BIM', 'catg', 'PiPL property "Category"', 'Adobe');
pipl_property_info('8BIM', 'name', 'PiPL property "Name"', 'Adobe');
pipl_property_info('8BIM', 'hstm', 'PiPL property "Has terminology"', 'Adobe');
pipl_property_info('8BIM', 'cmpt', 'PiPL property "Component" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'hstm', 'PiPL property "HasTerminology" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'wx86', 'PiPL property PIWin32X86CodeProperty (PIGeneral.h)', 'Adobe');
pipl_property_info('8BIM', '8664', 'PiPL property PIWin64X86CodeProperty (PIGeneral.h)', 'Adobe');
pipl_property_info('8BIM', 'kind', 'PiPL property "Kind" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'prty', 'PiPL property "Priority" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'vers', 'PiPL property "Version" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'mode', 'PiPL property "SupportedModes" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'ms32', 'PiPL property "PlugInMaxSize" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'host', 'PiPL property "RequiredHost" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'flly', 'PiPL property "FilterLayerSupport" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'enbl', 'PiPL property "EnableInfo" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'pmsa', 'PiPL property "MonitorScalingAware" (PIPL.r)', 'Adobe');
pipl_property_info('8BIM', 'fici', 'PiPL property "FilterCaseInfo" (PIPL.r)', 'Adobe');
pipl_property_info('ViaT', 'ObId', 'PiPL property "Object Identifier"', 'ViaThinkSoft');
pipl_property_footer();
 
ostype_header("Host signatures");
ostype_info('8BIM', 'Adobe Photoshop', 'Adobe', true);
ostype_info('8BIM', 'PluginCommander (illegal usage of "8BIM")', 'ISV', true);
ostype_info('8BIM', 'Serif Photoplus (illegal usage of "8BIM")', 'ISV', true);
ostype_info('8B)M', 'Adobe Premiere', 'Adobe', true);
ostype_info('PMIG', 'GIMP', 'ISV', true);
ostype_info('UP20', 'IrfanView', 'ISV', true);
ostype_info('PSP9', 'JASC PaintShop Pro X', 'ISV', true);
ostype_info('NDP.', 'Paint.net', 'ISV', true);
ostype_info('8BIM', 'Adobe Photoshop', 'Adobe');
ostype_info('8BIM', 'PluginCommander', 'Other');
ostype_info('8BIM', 'Serif Photoplus', 'Other');
ostype_info('8B)M', 'Adobe Premiere', 'Adobe');
ostype_info('PMIG', 'GIMP', 'Other', true);
ostype_info('UP20', 'IrfanView', 'Other', true);
ostype_info('PSP9', 'JASC PaintShop Pro X', 'Other', true);
ostype_info('NDP.', 'Paint.net', 'Other', true);
ostype_info(' ', 'Any host', 'Adobe', true);
ostype_footer();
 
ostype_header("Miscellaneous / internal use");