CMMakeProfile
Makes a display or abstract profile by modifying an existing one.
Declaration
CMError CMMakeProfile (
CMProfileRef prof,
CFDictionaryRef spec
);Parameters
- prof:
The profile to modify.
- spec:
A dictionary that specifies the modifications to make to the profile supplied in the
profparameter.
Return Value
A CMError value. See Result Codes.
Overview
The function CMMakeProfile adds appropriate tags to a profile to make a display or abstract profile based on a specification dictionary you supply.
One key in the specification dictionary must be "profileType" with a CFString value of either "abstractLab", "displayRGB" or "displayID".
The dictionary can optionally contain these keys-value pairs:
"description", with an associated CFString value"copyright", with an associated CFString value
For a profileType key whose value is "abstractLab", the dictionary can also contain the keys-value pairs listed in Table 1.
Key | Value | Comment |
|---|---|---|
| A CFNumber ( | Required |
| A CFNumber ( | Required |
| A CFNumber ( | Optional |
For a profileType key whose value is "displayRGB", the dictionary can also contain the keys-value pairs listed in Table 2.
Key | Value | Comment |
|---|---|---|
| A CFNumber ( | Optional |
| A CFNumber ( | Optional |
| A CFNumber ( | Required |
| A CFNumber ( | Required |
| A CFNumber ( | Required |
| A CFNumber ( | Optional |
| A CFNumber ( | Optional |
| A CFNumber ( | Optional |
| A CFData (lut in RRRGGGBBB order) | Optional |
| A CFNumber ( | Only if not supplying the |
| A CFNumber ( | Only if not supplying the |
| A CFNumber ( | Only if not supplying the |
| A CFNumber ( | Only if not supplying the |
| A CFNumber ( | Only if not supplying the |
| A CFNumber ( | Only if not supplying the |
| A CFString: "WideRGB", "700/525/450nm", "P22-EBU", "HDTV", "CCIR709", "sRGB", "AdobeRGB98" or "Trinitron" | Only if not supplying the phosphor R, G, B keys |
| A CFNumber ( | Only if not supplying a |
| A CFNumber ( | Only if not supplying a |
| A CFNumber ( | Only if not supplying |
For a profileType key whose value is "displayID", the dictionary can also contain the keys-value pairs in Table 3
Key | Value | Comment |
|---|---|---|
| A CFNumber ( | Optional |
| A CFNumber ( | Optional |
| A CFNumber ( | Required |
Optionally, the keys-value pairs s for a profileType key whose value is "displayRGB" can be provided to override the values from the display.