KCMS Test Suite User's Guide

In This Chapter

This chapter provides a script example showing how to use the SETATTR: command to set attributes. The chapter includes an example for each supported attribute. Examples are presented alphabetically by attribute name. In most cases, the values exactly match the fields in the icHeader structure. Those that don't are indicated.

icSigHeaderTag
Attribute
Tag=icSigHeaderTag; Attribute Value=KCMS,2,icSigOutputClass,icSigRgbData,     

           icSigLabData,95,7,27,17,30,15,acsp,icSigSolaris,                

1,prnt,test,0,0,0,0.964188,1.0,0.82489;

Attribute value= are values that exactly match the fields in the icHeader structure. See the icHeader structure in icc.h.

icSigAToB0Tag

You set and get each of the following attributes in the same manner:

Attribute
Tag=attribute_name Attribute

Value=file_name

Attribute Tag= is icSigAToB0Tag, icSigAToB1Tag, or icSigAToB2Tag.

Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.

icSigBlueColorantTag
Attribute
Tag=icSigBlueColorantTag; Attribute

Value=29.41,12.37,151.21;

Attribute Value= are floating point X, Y, and Z values.

icSigBlueTRCTag
Attribute
Tag=icSigBlueTRCTag; Count=4; Attribute

Value=0,30000,45000,65535;

Count= is the number of values to be supplied.

Attribute Value= are 2-byte values.

icSigBToA0Tag

You set and get each of the following attributes in the same manner:

Attribute
Tag=attribute_name Attribute

Value=file_name

Attribute Tag= is icSigBToA0Tag, icSigBToA1Tag, or icSigBToA2Tag.

Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.

icSigCalibrationDateTimeTag
Attribute
Tag=icSigCalibrationDateTimeTag; Attribute

Value=1995,6,27,16,34,0;

Attribute Value= are the following values:

  1. Year

  2. Month

  3. Day

  4. Hour

  5. Minutes

  6. Seconds

icSigCharTargetTag
Attribute
Tag=icSigCharTargetTag; Attribute

Value=IT8.7/2;

Attribute Value= is the ASCII string.

icSigCopyrightTag
Attribute
Tag=icSigCopyrightTag; Attribute Value=No Copy

right;

Attribute Value= is the ASCII string.

icSigDeviceMfgDescTag
Attribute
Tag=icSigDeviceMfgDescTag; Count=50; Attribute Value=55,56,QA

Test;

Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.

Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.

icSigDeviceModeDescTag
Attribute
Tag=icSigDeviceModelDescTag; Count=50; Attribute Value=55,56,All icc

attributes;

Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.

Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.

icSigGamutTag
Attribute
Tag= icSigGamutTag Attribute

Value=file_name

Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.

icSigGrayTRCTag
Attribute
Tag=icSigGrayTRCTag; Count=9; Attribute

Value=0,8191,16383,24575,32767,40959,49151,57343,65535;

Count= is the number of values to be supplied.

Attribute Value= are 2-byte values.

icSigGreenColorantTag
Attribute
Tag=icSigGreenColorantTag; Attribute

Value=46.40,100.0,22.20;

Attribute Value= are floating point X, Y, and Z values.

icSigGreenTRCTag
Attribute
Tag=icSigGreenTRCTag; Count=4; Attribute

Value=0,21512,43024,65535;

Count= is the number of values to be supplied.

Attribute Value= are 2-byte values.

icSigLuminanceTag
Attribute
Tag=icSigLuminanceTag; Attribute

Value=38.668,40.0,32.996;

Attribute Value= are floating point X, Y, and Z values.

icSigMeasurementTag
Attribute
Tag=icSigMeasurementTag; Attribute Value=icStdObs1931TwoDegrees,1.0,1.0,1.0,

icGeometry045or450,icFlare0,icIlluminantD50;

Attribute Value= are values that exactly match fields in the icMeasurement structure. See the icMeasurement structure in icc.h.

icSigMediaBlackPointTag
Attribute
Tag=icSigMediaBlackPointTag; Attribute

Value=0.056,0.12,0.003;

Attribute Value= are floating point X, Y, and Z values.

icSigMediaWhitePointTag
Attribute
Tag=icSigMediaWhitePointTag; Attribute

Value=0.964188,1.0,0.82489;

Attribute Value= are floating point X, Y, and Z values.

isSigNamedColor2Tag
Attribute
Tag=icSigNamedColor2Tag; Count=2; Attribute Value=3, 135, light, ish, Green,

100, 20, 20, 120, 83, 75, Red, 20, 100, 20, 75, 120,

83;

Count= is the number of colors.

Attribute Value= are the following values:

  1. Number of channels associated with this profile's output color space

  2. Vender-supplied flag

  3. Prefix

  4. Suffix

  5. Count*(Color Name, PCS Coords(3), DevCoord*(Num of Channels))

For details, see icSigNamedColor2Tag in icc.h.

icSigPreview0Tag

You set and get each of the following attributes in the same manner:

Attribute
Tag=attribute_name Attribute

Value=file_name

Attribute Tag= is icSigPreview0Tag, icSigPreview1Tag, or icSigPreview2Tag.

Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.

icSigProfileDescriptionTag
Attribute
Tag=icSigProfileDescriptionTag; Count=50; Attribute Value=55,56,This is a

profile description;

Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.

Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.

icSigProfileSequenceTag

Note -

This attribute is read only via the GETATTR: command and can't be modified by the SETATTR: command.


icSigPs2CRD0Tag
Attribute
Tag=icSigPs2CRD0Tag; Count=30; Attribute Value=0, This is the Ps2CRD0

tag;

Count= is the number of characters in the ASCII string.

Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)

icSigPs2CRD1Tag
Attribute
Tag=icSigPs2CRD1Tag; Count=30; Attribute Value=0, This is the Ps2CRD1

tag;

Count= is the number of characters in the ASCII string.

Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)

icSigPs2CRD2Tag
Attribute
Tag=icSigPs2CRD2Tag; Count=30; Attribute Value=0, This is the Ps2CRD2

tag;

Count= is the number of characters in the ASCII string.

Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)

icSigPs2CRD3Tag
Attribute
Tag=icSigPs2CRD3Tag; Count=30; Attribute Value=0, This is the Ps2CRD3

tag;

Count= is the number of characters in the ASCII string.

Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)

icSigPs2CSATag
Attribute
Tag=icSigPs2CSATag; Count=30; Attribute Value=0, This is the Ps2CSA

tag;

Count= is the number of characters in the ASCII string.

Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)

icSigPs2RenderingIntentTag
Attribute
Tag=icSigPs2RenderingIntentTag; Count=40; Attribute Value=0, This is the

Ps2RenderingIntent tag;

Count= is the number of characters in the ASCII string.

Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)

icSigRedColorantTag
Attribute
Tag=icSigRedColorantTag; Attribute

Value=99.05,54.26,4.69;

Attribute Value= are floating point X, Y, and Z values.

icSigRedTRCTag
Attribute
Tag=icSigRedTRCTag; Count=4; Attribute

Value=0,20000,40000,65535;

Count= is the number of values to be supplied.

Attribute Value= are 2-byte values.

icSigScreeningDescTag
Attribute
Tag=icSigScreeningDescTag; Count=32; Attribute Value=60,70,This is a screening

description;

Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.

Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.

icSigScreeningTag
Attribute
Tag=icSigScreeningTag;Count=3; Attribute Value=0,3,10000, 20000,

icSpotShapeRound,30000,40000,

icSpotShapeRound,50000,60000,icSpotShapeRound;

Attribute Value= are the following values (repeat for the number of channels):

  1. screening flag

  2. number of channels

  3. freq

  4. screen angle

  5. spot shape

For details, see icSigScreeningTag in icc.h.

icSigTechnologyTag
Attribute
Tag=icSigTechnologyTag; Attribute

Value=icSigCRTDisplay;

Attribute Value= is an enumerated type from the ICC header file. See the icTechnology structure in icc.h.

icSigUcrBgTag
Attribute
Tag=icSigUcrBgTag;Count=40; Attribute Value=2,2,100,4,300,400,500,600,End of

UcrTag;

Count= is the number of characters in the ASCII string.

Attribute Value= are the following values:

  1. Number of values in the sine ucr curve

  2. The 2-byte ucr values

  3. Number of values in the bg curve

  4. The 2-byte bg curve values

  5. ASCII string

icSigViewingCondDescTag
Attribute
Tag=icSigViewingCondDescTag; Count=32; Attribute Value=60,70,This is a viewing

description;

Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.

Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.

icSigViewingConditionsTag
Attribute
Tag=icSigViewingConditionsTag; Attribute

Value=1.0,.8976,1.198,.756,.5,.034,icIlluminantD50;

Attribute Value= are values that exactly match fields in the icViewingCondition structure. See the icViewingCondition structure in icc.h.