Skip to content

Commit

Permalink
Final changes to 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mm2 committed Nov 22, 2011
1 parent b5c339c commit 5b468a6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ Fixed encoding for floating point tags in Lab/XYZ
Fixed Absolute colorimetric intent issues
Fixed a bug on the range of data in transicc, when colorant tag is specified
Adding a memory alignment macro for CGATS parser
Updated to ICC spec 4.3
2 changes: 1 addition & 1 deletion src/cmstypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ typedef cmsBool (* PositionTableEntryFn)(struct _cms_typehandler_struct* self,
cmsUInt32Number n,
cmsUInt32Number SizeOfTag);

// Helper function to deal with position tables as decribed in several addendums to ICC spec 4.2
// Helper function to deal with position tables as decribed in ICC spec 4.3
// A table of n elements is readed, where first comes n records containing offsets and sizes and
// then a block containing the data itself. This allows to reuse same data in more than one entry
static
Expand Down
14 changes: 7 additions & 7 deletions src/cmsvirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ cmsHPROFILE CMSEXPORT cmsCreateRGBProfileTHR(cmsContext ContextID,
if (!hICC) // can't allocate
return NULL;

cmsSetProfileVersion(hICC, 4.2);
cmsSetProfileVersion(hICC, 4.3);

cmsSetDeviceClass(hICC, cmsSigDisplayClass);
cmsSetColorSpace(hICC, cmsSigRgbData);
Expand Down Expand Up @@ -218,7 +218,7 @@ cmsHPROFILE CMSEXPORT cmsCreateGrayProfileTHR(cmsContext ContextID,
if (!hICC) // can't allocate
return NULL;

cmsSetProfileVersion(hICC, 4.2);
cmsSetProfileVersion(hICC, 4.3);

cmsSetDeviceClass(hICC, cmsSigDisplayClass);
cmsSetColorSpace(hICC, cmsSigGrayData);
Expand Down Expand Up @@ -281,7 +281,7 @@ cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLinkTHR(cmsContext ContextID,
if (!hICC)
return NULL;

cmsSetProfileVersion(hICC, 4.2);
cmsSetProfileVersion(hICC, 4.3);

cmsSetDeviceClass(hICC, cmsSigLinkClass);
cmsSetColorSpace(hICC, ColorSpace);
Expand Down Expand Up @@ -401,7 +401,7 @@ cmsHPROFILE CMSEXPORT cmsCreateInkLimitingDeviceLinkTHR(cmsContext ContextID,
if (!hICC) // can't allocate
return NULL;

cmsSetProfileVersion(hICC, 4.2);
cmsSetProfileVersion(hICC, 4.3);

cmsSetDeviceClass(hICC, cmsSigLinkClass);
cmsSetColorSpace(hICC, ColorSpace);
Expand Down Expand Up @@ -509,7 +509,7 @@ cmsHPROFILE CMSEXPORT cmsCreateLab4ProfileTHR(cmsContext ContextID, const cmsCIE
hProfile = cmsCreateRGBProfileTHR(ContextID, WhitePoint == NULL ? cmsD50_xyY() : WhitePoint, NULL, NULL);
if (hProfile == NULL) return NULL;

cmsSetProfileVersion(hProfile, 4.2);
cmsSetProfileVersion(hProfile, 4.3);

cmsSetDeviceClass(hProfile, cmsSigAbstractClass);
cmsSetColorSpace(hProfile, cmsSigLabData);
Expand Down Expand Up @@ -554,7 +554,7 @@ cmsHPROFILE CMSEXPORT cmsCreateXYZProfileTHR(cmsContext ContextID)
hProfile = cmsCreateRGBProfileTHR(ContextID, cmsD50_xyY(), NULL, NULL);
if (hProfile == NULL) return NULL;

cmsSetProfileVersion(hProfile, 4.2);
cmsSetProfileVersion(hProfile, 4.3);

cmsSetDeviceClass(hProfile, cmsSigAbstractClass);
cmsSetColorSpace(hProfile, cmsSigXYZData);
Expand Down Expand Up @@ -809,7 +809,7 @@ cmsHPROFILE CMSEXPORT cmsCreateNULLProfileTHR(cmsContext ContextID)
if (!hProfile) // can't allocate
return NULL;

cmsSetProfileVersion(hProfile, 4.2);
cmsSetProfileVersion(hProfile, 4.3);

if (!SetTextTags(hProfile, L"NULL profile built-in")) goto Error;

Expand Down
6 changes: 4 additions & 2 deletions utils/common/vprf.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ void MyErrorLogHandler(cmsContext ContextID, cmsUInt32Number ErrorCode, const ch
if (Verbose >= 0)
fprintf(stderr, "[%s]: %s\n", ProgramName, Text);

UTILS_UNUSED_PARAMETER(ErrorCode);
UTILS_UNUSED_PARAMETER(ContextID);
UTILS_UNUSED_PARAMETER(ErrorCode);
UTILS_UNUSED_PARAMETER(ContextID);
}


void InitUtils(const char* PName)
{
strncpy(ProgramName, PName, sizeof(ProgramName));
ProgramName[sizeof(ProgramName)-1] = 0;

cmsSetLogErrorHandler(MyErrorLogHandler);
}

Expand Down
4 changes: 2 additions & 2 deletions utils/linkicc/linkicc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static cmsFloat64Number InkLimit = 400;
static cmsBool lUse8bits = FALSE;
static cmsBool TagResult = FALSE;
static cmsBool KeepLinearization = FALSE;
static cmsFloat64Number Version = 4.2;
static cmsFloat64Number Version = 4.3;


// The manual
Expand Down Expand Up @@ -275,7 +275,7 @@ int main(int argc, char *argv[])
cmsHTRANSFORM hTransform = NULL;

// Here we are
fprintf(stderr, "little cms ICC device link generator - v2.1 [LittleCMS %2.2f]\n", LCMS_VERSION / 1000.0);
fprintf(stderr, "little cms ICC device link generator - v2.2 [LittleCMS %2.2f]\n", LCMS_VERSION / 1000.0);
fflush(stderr);

// Initialize
Expand Down
2 changes: 1 addition & 1 deletion utils/tificc/tificc.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static int ProofingIntent = INTENT_PERCEPTUAL;
static int PrecalcMode = 1;
static cmsFloat64Number InkLimit = 400;

static cmsFloat64Number ObserverAdaptationState = 1.0; // According ICC 4.2 this is the default
static cmsFloat64Number ObserverAdaptationState = 1.0; // According ICC 4.3 this is the default

static const char *cInpProf = NULL;
static const char *cOutProf = NULL;
Expand Down

0 comments on commit 5b468a6

Please sign in to comment.