Lines Matching refs:profile
53 // This implies we have to temporarily change the profile of the main display to the colorspace we want to render into.
56 #define PROFILE_PATH "/System/Library/ColorSync/Profiles/Generic RGB Profile.icc" // FIXME: This cannot be more than CS_MAX_PATH (256 characters)
63 // But we might as well try to restore the user's color profile, we're going down anyway...
68 fprintf(stderr, "Failed to restore initial color profile for main display! Open System Preferences > Displays > Color and manually re-select the profile. (Error: %i)", error);
78 CMProfileRef profile = 0;
79 error = CMGetProfileByAVID((CMDisplayIDType)kCGDirectMainDisplay, &profile);
82 error = NCMGetProfileLocation(profile, &sInitialProfileLocation, &size);
83 CMCloseProfile(profile);
86 fprintf(stderr, "Failed to retrieve current color profile for main display, thus it won't be changed. Many pixel tests may fail as a result. (Error: %i)", error);
96 fprintf(stderr, "Failed to set color profile for main display! Many pixel tests may fail as a result. (Error: %i)", error);
130 CMProfileRef profile;
131 if (CMOpenProfile(&profile, &location) == noErr) {
132 colorSpace = CGColorSpaceCreateWithPlatformColorSpace(profile);
133 CMCloseProfile(profile);