Home
last modified time | relevance | path

Searched refs:NewLUT (Results 1 – 4 of 4) sorted by relevance

/external/pdfium/third_party/lcms/
D0025-upstream-direct-leak-Type_MPE_Read.patch6 NewLUT = cmsPipelineAlloc(self ->ContextID, InputChans, OutputChans);
7 if (NewLUT == NULL) return NULL;
11 - if (!ReadPositionTable(self, io, ElementCount, BaseOffset, NewLUT, ReadMPEElem)) {
12 - if (NewLUT != NULL) cmsPipelineFree(NewLUT);
17 + if (!ReadPositionTable(self, io, ElementCount, BaseOffset, NewLUT, ReadMPEElem)) goto Error;
21 return NewLUT;
25 + if (NewLUT != NULL) cmsPipelineFree(NewLUT);
D0022-check-LUT-and-MPE.patch52 cmsPipeline* NewLUT;
59 NewLUT ->Data = NewLUT;
60 NewLUT ->ContextID = ContextID;
62 - BlessLUT(NewLUT);
63 + if (!BlessLUT(NewLUT))
65 + _cmsFree(ContextID, NewLUT);
69 return NewLUT;
73 NewLUT ->SaveAs8Bits = lut ->SaveAs8Bits;
75 - BlessLUT(NewLUT);
76 + if (!BlessLUT(NewLUT))
[all …]
/external/pdfium/third_party/lcms/src/
Dcmslut.c1366 cmsPipeline* NewLUT; in cmsPipelineAlloc() local
1372 NewLUT = (cmsPipeline*) _cmsMallocZero(ContextID, sizeof(cmsPipeline)); in cmsPipelineAlloc()
1373 if (NewLUT == NULL) return NULL; in cmsPipelineAlloc()
1376 NewLUT -> InputChannels = InputChannels; in cmsPipelineAlloc()
1377 NewLUT -> OutputChannels = OutputChannels; in cmsPipelineAlloc()
1379 NewLUT ->Eval16Fn = _LUTeval16; in cmsPipelineAlloc()
1380 NewLUT ->EvalFloatFn = _LUTevalFloat; in cmsPipelineAlloc()
1381 NewLUT ->DupDataFn = NULL; in cmsPipelineAlloc()
1382 NewLUT ->FreeDataFn = NULL; in cmsPipelineAlloc()
1383 NewLUT ->Data = NewLUT; in cmsPipelineAlloc()
[all …]
Dcmstypes.c1750 cmsPipeline* NewLUT = NULL; in Type_LUT8_Read() local
1770 NewLUT = cmsPipelineAlloc(self ->ContextID, InputChannels, OutputChannels); in Type_LUT8_Read()
1771 if (NewLUT == NULL) goto Error; in Type_LUT8_Read()
1788 …if (!cmsPipelineInsertStage(NewLUT, cmsAT_BEGIN, cmsStageAllocMatrix(self ->ContextID, 3, 3, Matri… in Type_LUT8_Read()
1793 if (!Read8bitTables(self ->ContextID, io, NewLUT, InputChannels)) goto Error; in Type_LUT8_Read()
1824 …if (!cmsPipelineInsertStage(NewLUT, cmsAT_END, cmsStageAllocCLut16bit(self ->ContextID, CLUTpoints… in Type_LUT8_Read()
1831 if (!Read8bitTables(self ->ContextID, io, NewLUT, OutputChannels)) goto Error; in Type_LUT8_Read()
1834 return NewLUT; in Type_LUT8_Read()
1837 if (NewLUT != NULL) cmsPipelineFree(NewLUT); in Type_LUT8_Read()
1849 cmsPipeline* NewLUT = (cmsPipeline*) Ptr; in Type_LUT8_Write() local
[all …]