8007925: Improve cmsStageAllocLabV2ToV4curves

8007926: Improve cmsPipelineDup

Reviewed-by: bae, mschoene, prr
This commit is contained in:
Jia-Hong Chen 2013-03-27 15:58:39 -07:00 committed by Jennifer Godinez
parent c5ed90b0bb
commit d168b09c44

View File

@ -1021,6 +1021,7 @@ cmsStage* _cmsStageAllocLabV2ToV4curves(cmsContext ContextID)
mpe = cmsStageAllocToneCurves(ContextID, 3, LabTable);
cmsFreeToneCurveTriple(LabTable);
if (mpe == NULL) return mpe;
mpe ->Implements = cmsSigLabV2toV4;
return mpe;
}
@ -1424,6 +1425,8 @@ cmsPipeline* CMSEXPORT cmsPipelineDup(const cmsPipeline* lut)
if (lut == NULL) return NULL;
NewLUT = cmsPipelineAlloc(lut ->ContextID, lut ->InputChannels, lut ->OutputChannels);
if (NewLUT == NULL) return NULL;
for (mpe = lut ->Elements;
mpe != NULL;
mpe = mpe ->Next) {