Code Descriptor PiPL Properties

Code descriptors tell Photoshop the type and location of a plug-in’s code. More...

Defines

#define PIPowerPCMachOCodeProperty   'mach'
 PowerPC Mach-O code descriptor.
#define PICodeFragmentProperty   'frag'
 PowerPC fragment descriptor.
#define PICarbonCodeFragmentProperty   'frgc'
 PowerPC CARBON fragment descriptor.
#define PI68KFPUCodeProperty   0x36386670L
 A 68k code resource with FPU.
#define PIUnixSPARCV7CodeProperty   0x75737037
 A SPARC version 7 code descriptor.
#define PIUnixSPARCV8CodeProperty   0x75737038
 A SPARC version 8 code descriptor.
#define PIUnixSPARCV9CodeProperty   0x75737039
 A SPARC version 9 code descriptor.
#define PIUnixSPARCCodeProperty   PIUnixSPARCV7CodeProperty
 A SPARC version 7 code descriptor.
#define PIUnixMIPSR3000CodeProperty   0x756d7233
 A MIPS R3000 code descriptor.
#define PIUnixMIPSR4000CodeProperty   0x756d7234
 A MIPS R4000 code descriptor.
#define PIUnixMIPSR400064BitCodeProperty   0x756d3477
 A MIPS R4000 code descriptor, can be 64 bit.
#define PIUnixMIPSR8000CodeProperty   0x756d7238
 A MIPS R8000 code descriptor, always 64 bit.
#define PIUnixMIPSCodeProperty   PIUnixMIPSR3000CodeProperty
 A MIPS R3000 code descriptor.

Detailed Description

Code descriptors tell Photoshop the type and location of a plug-in’s code.

More than one code descriptor may be included to build a "fat" plug-in which will run on different types of machines. Photoshop selects the best performing option. Photoshop makes sure that the callback structure is filled in with appropriate functions for the type of code that is loaded. So for PowerPC code, native function pointers will be provided and routine descriptor operations are not required either in calling the plug-in or for the plug-in to invoke Photoshop callback functions.

Note:
In Windows, the CNVTPIPL.EXE utility only recognizes Windows specific properties. It ignores all MAC OS specific properties described in this section.

Define Documentation

#define PIPowerPCMachOCodeProperty   'mach'

PowerPC Mach-O code descriptor.

Key is 'mach'. This property key reflects the CodeMachOPowerPC property in the PiPL resource file. The property data has type PIMachOCodeDesc.

#define PICodeFragmentProperty   'frag'

PowerPC fragment descriptor.

Key is 'frag'. This property key reflects the CodeFragmentPPC property in the PiPL resource file. The property data has type PIFragmentCodeDesc.

#define PICarbonCodeFragmentProperty   'frgc'

PowerPC CARBON fragment descriptor.

Key is 'frgc'. This property key reflects the CodeFragmentCarbonPPC property in the PiPL resource file. The property data has type PIFragmentCodeDesc.

#define PI68KFPUCodeProperty   0x36386670L

A 68k code resource with FPU.

Key is '68fp'. This property key reflects the Code68kFPU property in the PiPL resource file. The data for the property has type PI68KCodeDesc.

#define PIUnixSPARCV7CodeProperty   0x75737037

A SPARC version 7 code descriptor.

Key is 'usp7'.

#define PIUnixSPARCV8CodeProperty   0x75737038

A SPARC version 8 code descriptor.

Key is 'usp8.

#define PIUnixSPARCV9CodeProperty   0x75737039

A SPARC version 9 code descriptor.

Key is 'usp9'.

#define PIUnixSPARCCodeProperty   PIUnixSPARCV7CodeProperty

A SPARC version 7 code descriptor.

Key is 'usp7'.

#define PIUnixMIPSR3000CodeProperty   0x756d7233

A MIPS R3000 code descriptor.

Key is 'umr3'.

#define PIUnixMIPSR4000CodeProperty   0x756d7234

A MIPS R4000 code descriptor.

Key is 'umr4'.

#define PIUnixMIPSR400064BitCodeProperty   0x756d3477

A MIPS R4000 code descriptor, can be 64 bit.

Key is 'um4w'.

#define PIUnixMIPSR8000CodeProperty   0x756d7238

A MIPS R8000 code descriptor, always 64 bit.

Key is 'umr8'.

#define PIUnixMIPSCodeProperty   PIUnixMIPSR3000CodeProperty

A MIPS R3000 code descriptor.

Key is 'umr3'.