![]() |
PATH![]() |
![]() ![]() |
The ColorSync Manager defines the CMIntentCRDVMSize type for specifying the maximum virtual memory size of a color rendering dictionary.
To specify the maximum virtual memory (VM) size of the color rendering dictionary (CRD) for a specific rendering intent for a particular PostScript Level 2 printer type, a printer profile can include the optional Apple-defined 'psvm' tag. The PostScript CRD virtual memory size tag structure's element data includes an array containing one entry for each rendering intent and its virtual memory size.
If a PostScript printer profile includes this tag, the default CMM uses the tag and returns the values specified by the tag when your application or device driver calls the function
CMGetPS2ColorRenderingVMSize
.
If a PostScript printer profile does not include this tag, the CMM uses an algorithm to determine the VM size of the CRD. This may result in a size that is greater than the actual VM size.
The CMIntentCRDVMSize data type defines the rendering intent and its maximum VM size. The CMPS2CRDVMSizeType data type for the tag includes an array containing one or more members of type CMIntentCRDVMSize.
struct CMIntentCRDVMSize {
long renderingIntent; /* rendering intent value */
unsigned long VMSize; /* virtual memory size of CRD */
};
0 (cmPerceptual)
1 (cmRelativeColorimetric)
2 (cmSaturation)
3 (cmAbsoluteColorimetric)
The CMPS2CRDVMSizeType data type defines the Apple-defined 'psvm' optional tag.
struct CMPS2CRDVMSizeType {
OSType typeDescriptor; /* PostScript VM signature */
unsigned long reserved; /* reserved */
unsigned long count; /* entries in CRD array */
CMIntentCRDVMSize intentCRD[1]; /* variable-sized array */
};