8007925: Improve cmsStageAllocLabV2ToV4curves
8007926: Improve cmsPipelineDup Reviewed-by: bae, mschoene, prr
This commit is contained in:
parent
c5ed90b0bb
commit
d168b09c44
@ -1021,6 +1021,7 @@ cmsStage* _cmsStageAllocLabV2ToV4curves(cmsContext ContextID)
|
|||||||
mpe = cmsStageAllocToneCurves(ContextID, 3, LabTable);
|
mpe = cmsStageAllocToneCurves(ContextID, 3, LabTable);
|
||||||
cmsFreeToneCurveTriple(LabTable);
|
cmsFreeToneCurveTriple(LabTable);
|
||||||
|
|
||||||
|
if (mpe == NULL) return mpe;
|
||||||
mpe ->Implements = cmsSigLabV2toV4;
|
mpe ->Implements = cmsSigLabV2toV4;
|
||||||
return mpe;
|
return mpe;
|
||||||
}
|
}
|
||||||
@ -1424,6 +1425,8 @@ cmsPipeline* CMSEXPORT cmsPipelineDup(const cmsPipeline* lut)
|
|||||||
if (lut == NULL) return NULL;
|
if (lut == NULL) return NULL;
|
||||||
|
|
||||||
NewLUT = cmsPipelineAlloc(lut ->ContextID, lut ->InputChannels, lut ->OutputChannels);
|
NewLUT = cmsPipelineAlloc(lut ->ContextID, lut ->InputChannels, lut ->OutputChannels);
|
||||||
|
if (NewLUT == NULL) return NULL;
|
||||||
|
|
||||||
for (mpe = lut ->Elements;
|
for (mpe = lut ->Elements;
|
||||||
mpe != NULL;
|
mpe != NULL;
|
||||||
mpe = mpe ->Next) {
|
mpe = mpe ->Next) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user