Home
last modified time | relevance | path

Searched refs:ContextID (Results 1 – 25 of 44) sorted by relevance

12

/external/pdfium/third_party/lcms/src/
Dcmserr.c70 cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin) in _cmsRegisterMemHandlerPlugin() argument
76 void* CMSEXPORT _cmsMalloc(cmsContext ContextID, cmsUInt32Number size) in _cmsMalloc() argument
82 void* CMSEXPORT _cmsMallocZero(cmsContext ContextID, cmsUInt32Number size) in _cmsMallocZero() argument
90 void* CMSEXPORT _cmsCalloc(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size) in _cmsCalloc() argument
96 return _cmsMallocZero(ContextID, num * size); in _cmsCalloc()
100 void* CMSEXPORT _cmsRealloc(cmsContext ContextID, void* Ptr, cmsUInt32Number size) in _cmsRealloc() argument
106 void CMSEXPORT _cmsFree(cmsContext ContextID, void* Ptr) in _cmsFree() argument
112 void* CMSEXPORT _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Number size) in _cmsDupMem() argument
170 _cmsSubAllocator_chunk* _cmsCreateSubAllocChunk(cmsContext ContextID, cmsUInt32Number Initial) in _cmsCreateSubAllocChunk() argument
179 chunk = (_cmsSubAllocator_chunk*) _cmsMallocZero(ContextID, sizeof(_cmsSubAllocator_chunk)); in _cmsCreateSubAllocChunk()
[all …]
Dcmsio0.c94 _cmsFree(iohandler ->ContextID, ResData); in NULLClose()
95 _cmsFree(iohandler ->ContextID, iohandler); in NULLClose()
100 cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromNULL(cmsContext ContextID) in cmsOpenIOhandlerFromNULL() argument
105 iohandler = (struct _cms_io_handler*) _cmsMallocZero(ContextID, sizeof(struct _cms_io_handler)); in cmsOpenIOhandlerFromNULL()
108 fm = (FILENULL*) _cmsMallocZero(ContextID, sizeof(FILENULL)); in cmsOpenIOhandlerFromNULL()
113 iohandler ->ContextID = ContextID; in cmsOpenIOhandlerFromNULL()
128 if (iohandler) _cmsFree(ContextID, iohandler); in cmsOpenIOhandlerFromNULL()
156 …cmsSignalError(iohandler ->ContextID, cmsERROR_READ, "Read from memory error. Got %d bytes, block … in MemoryRead()
175 … cmsSignalError(iohandler ->ContextID, cmsERROR_SEEK, "Too few data; probably corrupted profile"); in MemorySeek()
226 if (ResData ->Block) _cmsFree(iohandler ->ContextID, ResData ->Block); in MemoryClose()
[all …]
Dlcms2_internal.h339 void* _cmsPluginMalloc(cmsContext ContextID, cmsUInt32Number size);
342 cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
345 cmsBool _cmsRegisterInterpPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
348 cmsBool _cmsRegisterParametricCurvesPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
351 cmsBool _cmsRegisterFormattersPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
354 cmsBool _cmsRegisterTagTypePlugin(cmsContext ContextID, cmsPluginBase* Plugin);
357 cmsBool _cmsRegisterTagPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
360 cmsBool _cmsRegisterRenderingIntentPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
363 cmsBool _cmsRegisterMultiProcessElementPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
366 cmsBool _cmsRegisterOptimizationPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
[all …]
Dcmslut.c31 cmsStage* CMSEXPORT _cmsStageAllocPlaceholder(cmsContext ContextID, in _cmsStageAllocPlaceholder() argument
40 cmsStage* ph = (cmsStage*) _cmsMallocZero(ContextID, sizeof(cmsStage)); in _cmsStageAllocPlaceholder()
45 ph ->ContextID = ContextID; in _cmsStageAllocPlaceholder()
70 cmsStage* CMSEXPORT cmsStageAllocIdentity(cmsContext ContextID, cmsUInt32Number nChannels) in cmsStageAllocIdentity() argument
72 return _cmsStageAllocPlaceholder(ContextID, in cmsStageAllocIdentity()
203 _cmsFree(mpe ->ContextID, Data ->TheCurves); in CurveSetElemTypeFree()
204 _cmsFree(mpe ->ContextID, Data); in CurveSetElemTypeFree()
215 …NewElem = (_cmsStageToneCurvesData*) _cmsMallocZero(mpe ->ContextID, sizeof(_cmsStageToneCurvesDat… in CurveSetDup()
219 …NewElem ->TheCurves = (cmsToneCurve**) _cmsCalloc(mpe ->ContextID, NewElem ->nCurves, sizeof(cmsTo… in CurveSetDup()
241 _cmsFree(mpe ->ContextID, NewElem ->TheCurves); in CurveSetDup()
[all …]
Dcmsio1.c160 cmsContext ContextID = cmsGetProfileContextID(hProfile); in BuildGrayInputMatrixPipeline() local
165 Lut = cmsPipelineAlloc(ContextID, 1, 3); in BuildGrayInputMatrixPipeline()
176 EmptyTab = cmsBuildTabulatedToneCurve16(ContextID, 2, Zero); in BuildGrayInputMatrixPipeline()
185 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 1, OneToThreeInputM… in BuildGrayInputMatrixPipeline()
186 … !cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, LabCurves))) { in BuildGrayInputMatrixPipeline()
196 … if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 1, &GrayTRC)) || in BuildGrayInputMatrixPipeline()
197 …!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 1, GrayInputMatrix, NUL… in BuildGrayInputMatrixPipeline()
220 cmsContext ContextID = cmsGetProfileContextID(hProfile); in BuildRGBInputMatrixShaper() local
241 Lut = cmsPipelineAlloc(ContextID, 3, 3); in BuildRGBInputMatrixShaper()
244 … if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, Shapes)) || in BuildRGBInputMatrixShaper()
[all …]
Dcmsgamma.c126 cmsBool _cmsRegisterParametricCurvesPlugin(cmsContext ContextID, cmsPluginBase* Data) in _cmsRegisterParametricCurvesPlugin() argument
128 …nChunkType* ctx = ( _cmsCurvesPluginChunkType*) _cmsContextGetClientChunk(ContextID, CurvesPlugin); in _cmsRegisterParametricCurvesPlugin()
138 …fl = (_cmsParametricCurvesCollection*) _cmsPluginMalloc(ContextID, sizeof(_cmsParametricCurvesColl… in _cmsRegisterParametricCurvesPlugin()
177 _cmsParametricCurvesCollection *GetParametricCurveByType(cmsContext ContextID, int Type, int* index) in GetParametricCurveByType() argument
181 …nChunkType* ctx = ( _cmsCurvesPluginChunkType*) _cmsContextGetClientChunk(ContextID, CurvesPlugin); in GetParametricCurveByType()
212 cmsToneCurve* AllocateToneCurveStruct(cmsContext ContextID, cmsInt32Number nEntries, in AllocateToneCurveStruct() argument
221 …cmsSignalError(ContextID, cmsERROR_RANGE, "Couldn't create tone curve of more than 65530 entries"); in AllocateToneCurveStruct()
226 …cmsSignalError(ContextID, cmsERROR_RANGE, "Couldn't create tone curve with zero segments and no ta… in AllocateToneCurveStruct()
231 p = (cmsToneCurve*) _cmsMallocZero(ContextID, sizeof(cmsToneCurve)); in AllocateToneCurveStruct()
240 p ->Segments = (cmsCurveSegment*) _cmsCalloc(ContextID, nSegments, sizeof(cmsCurveSegment)); in AllocateToneCurveStruct()
[all …]
Dcmsnamed.c33 cmsMLU* CMSEXPORT cmsMLUalloc(cmsContext ContextID, cmsUInt32Number nItems) in cmsMLUalloc() argument
41 mlu = (cmsMLU*) _cmsMallocZero(ContextID, sizeof(cmsMLU)); in cmsMLUalloc()
44 mlu ->ContextID = ContextID; in cmsMLUalloc()
47 mlu ->Entries = (_cmsMLUentry*) _cmsCalloc(ContextID, nItems, sizeof(_cmsMLUentry)); in cmsMLUalloc()
49 _cmsFree(ContextID, mlu); in cmsMLUalloc()
80 NewPtr = _cmsRealloc(mlu ->ContextID, mlu ->MemPool, size); in GrowMLUpool()
107 …NewPtr = (_cmsMLUentry*)_cmsRealloc(mlu ->ContextID, mlu ->Entries, AllocatedEntries*sizeof(_cmsML… in GrowMLUtable()
220 WStr = (wchar_t*) _cmsCalloc(mlu ->ContextID, len, sizeof(wchar_t)); in cmsMLUsetASCII()
228 _cmsFree(mlu ->ContextID, WStr); in cmsMLUsetASCII()
268 NewMlu = cmsMLUalloc(mlu ->ContextID, mlu ->UsedEntries); in cmsMLUdup()
[all …]
Dcmsvirt.c37 cmsContext ContextID = cmsGetProfileContextID(hProfile); in SetTextTags() local
39 DescriptionMLU = cmsMLUalloc(ContextID, 1); in SetTextTags()
40 CopyrightMLU = cmsMLUalloc(ContextID, 1); in SetTextTags()
66 cmsContext ContextID = cmsGetProfileContextID(hProfile); in SetSeqDescTag() local
67 cmsSEQ* Seq = cmsAllocProfileSequenceDescription(ContextID, 1); in SetSeqDescTag()
101 cmsHPROFILE CMSEXPORT cmsCreateRGBProfileTHR(cmsContext ContextID, in cmsCreateRGBProfileTHR() argument
113 hICC = cmsCreateProfilePlaceholder(ContextID); in cmsCreateRGBProfileTHR()
227 cmsHPROFILE CMSEXPORT cmsCreateGrayProfileTHR(cmsContext ContextID, in cmsCreateGrayProfileTHR() argument
234 hICC = cmsCreateProfilePlaceholder(ContextID); in cmsCreateGrayProfileTHR()
288 cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLinkTHR(cmsContext ContextID, in cmsCreateLinearizationDeviceLinkTHR() argument
[all …]
Dcmsxform.c57 cmsFloat64Number CMSEXPORT cmsSetAdaptationStateTHR(cmsContext ContextID, cmsFloat64Number d) in cmsSetAdaptationStateTHR() argument
60 …nkType* ptr = (_cmsAdaptationStateChunkType*) _cmsContextGetClientChunk(ContextID, AdaptationState… in cmsSetAdaptationStateTHR()
93 void CMSEXPORT cmsSetAlarmCodesTHR(cmsContext ContextID, const cmsUInt16Number AlarmCodesP[cmsMAXCH… in cmsSetAlarmCodesTHR() argument
95 …ontextAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(ContextID, AlarmCodesConte… in cmsSetAlarmCodesTHR()
104 void CMSEXPORT cmsGetAlarmCodesTHR(cmsContext ContextID, cmsUInt16Number AlarmCodesP[cmsMAXCHANNELS… in cmsGetAlarmCodesTHR() argument
106 …ontextAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(ContextID, AlarmCodesConte… in cmsGetAlarmCodesTHR()
169 p ->FreeUserData(p ->ContextID, p ->UserData); in cmsDeleteTransform()
171 _cmsFree(p ->ContextID, (void *) p); in cmsDeleteTransform()
428 …extAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(p->ContextID, AlarmCodesConte… in TransformOnePixelWithGamutCheck()
683 cmsBool _cmsRegisterTransformPlugin(cmsContext ContextID, cmsPluginBase* Data) in _cmsRegisterTransformPlugin() argument
[all …]
Dcmstypes.c184 ElementOffsets = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); in ReadPositionTable()
187 ElementSizes = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); in ReadPositionTable()
208 if (ElementOffsets != NULL) _cmsFree(io ->ContextID, ElementOffsets); in ReadPositionTable()
209 if (ElementSizes != NULL) _cmsFree(io ->ContextID, ElementSizes); in ReadPositionTable()
213 if (ElementOffsets != NULL) _cmsFree(io ->ContextID, ElementOffsets); in ReadPositionTable()
214 if (ElementSizes != NULL) _cmsFree(io ->ContextID, ElementSizes); in ReadPositionTable()
233 ElementOffsets = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); in WritePositionTable()
236 ElementSizes = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); in WritePositionTable()
273 if (ElementOffsets != NULL) _cmsFree(io ->ContextID, ElementOffsets); in WritePositionTable()
274 if (ElementSizes != NULL) _cmsFree(io ->ContextID, ElementSizes); in WritePositionTable()
[all …]
Dcmsgmt.c32 cmsHTRANSFORM _cmsChain2Lab(cmsContext ContextID, in _cmsChain2Lab() argument
55 hLab = cmsCreateLab4ProfileTHR(ContextID, NULL); in _cmsChain2Lab()
74 xform = cmsCreateExtendedTransform(ContextID, nProfiles + 1, ProfileList, in _cmsChain2Lab()
92 cmsToneCurve* ComputeKToLstar(cmsContext ContextID, in ComputeKToLstar() argument
108 …xform = _cmsChain2Lab(ContextID, nProfiles, TYPE_CMYK_FLT, TYPE_Lab_DBL, Intents, hProfiles, BPC, … in ComputeKToLstar()
111 SampledPoints = (cmsFloat32Number*) _cmsCalloc(ContextID, nPoints, sizeof(cmsFloat32Number)); in ComputeKToLstar()
125 out = cmsBuildTabulatedToneCurveFloat(ContextID, nPoints, SampledPoints); in ComputeKToLstar()
130 if (SampledPoints) _cmsFree(ContextID, SampledPoints); in ComputeKToLstar()
139 cmsToneCurve* _cmsBuildKToneCurve(cmsContext ContextID, in _cmsBuildKToneCurve() argument
160 …in = ComputeKToLstar(ContextID, nPoints, nProfiles - 1, Intents, hProfiles, BPC, AdaptationStates… in _cmsBuildKToneCurve()
[all …]
Dcmscnvrt.c33 cmsPipeline* _cmsLinkProfiles(cmsContext ContextID,
46 cmsPipeline* DefaultICCintents(cmsContext ContextID,
59 cmsPipeline* BlackPreservingKOnlyIntents(cmsContext ContextID,
72 cmsPipeline* BlackPreservingKPlaneIntents(cmsContext ContextID,
164 cmsIntentsList* SearchIntent(cmsContext ContextID, cmsUInt32Number Intent) in SearchIntent() argument
166 …ChunkType* ctx = ( _cmsIntentsPluginChunkType*) _cmsContextGetClientChunk(ContextID, IntentPlugin); in SearchIntent()
447 …!cmsPipelineInsertStage(Result, cmsAT_END, cmsStageAllocMatrix(Result ->ContextID, 3, 3, m_as_dbl,… in AddConversion()
453 …!cmsPipelineInsertStage(Result, cmsAT_END, cmsStageAllocMatrix(Result ->ContextID, 3, 3, m_as_dbl,… in AddConversion()
455 … if (!cmsPipelineInsertStage(Result, cmsAT_END, _cmsStageAllocXYZ2Lab(Result ->ContextID))) in AddConversion()
470 … if (!cmsPipelineInsertStage(Result, cmsAT_END, _cmsStageAllocLab2XYZ(Result ->ContextID))) in AddConversion()
[all …]
Dcmsopt.c35 cmsContext ContextID; member
49 cmsContext ContextID; member
77 cmsContext ContextID; member
95 cmsContext ContextID; member
230 …cmsStage* Multmat = cmsStageAllocMatrix(Lut->ContextID, 3, 3, (const cmsFloat64Number*) &res, NULL… in _MultiplyMatrix()
325 void PrelinOpt16free(cmsContext ContextID, void* ptr) in PrelinOpt16free() argument
329 _cmsFree(ContextID, p16 ->EvalCurveOut16); in PrelinOpt16free()
330 _cmsFree(ContextID, p16 ->ParamsCurveOut16); in PrelinOpt16free()
332 _cmsFree(ContextID, p16); in PrelinOpt16free()
336 void* Prelin16dup(cmsContext ContextID, const void* ptr) in Prelin16dup() argument
[all …]
Dcmsplugin.c508 void* _cmsPluginMalloc(cmsContext ContextID, cmsUInt32Number size) in _cmsPluginMalloc() argument
510 struct _cmsContext_struct* ctx = _cmsGetContext(ContextID); in _cmsPluginMalloc()
514 if (ContextID == NULL) { in _cmsPluginMalloc()
520 cmsSignalError(ContextID, cmsERROR_CORRUPTION_DETECTED, "NULL memory pool on context"); in _cmsPluginMalloc()
651 struct _cmsContext_struct* _cmsGetContext(cmsContext ContextID) in _cmsGetContext() argument
653 struct _cmsContext_struct* id = (struct _cmsContext_struct*) ContextID; in _cmsGetContext()
677 void* _cmsContextGetClientChunk(cmsContext ContextID, _cmsMemoryClient mc) in _cmsContextGetClientChunk() argument
684 … cmsSignalError(ContextID, cmsERROR_INTERNAL, "Bad context client -- possible corruption"); in _cmsContextGetClientChunk()
693 ctx = _cmsGetContext(ContextID); in _cmsContextGetClientChunk()
710 void CMSEXPORT cmsUnregisterPluginsTHR(cmsContext ContextID) in cmsUnregisterPluginsTHR() argument
[all …]
Dcmsps2.c831 cmsToneCurve* ExtractGray2Y(cmsContext ContextID, cmsHPROFILE hProfile, int Intent) in ExtractGray2Y() argument
833 cmsToneCurve* Out = cmsBuildTabulatedToneCurve16(ContextID, 256, NULL); in ExtractGray2Y()
835 …cmsHTRANSFORM xform = cmsCreateTransformTHR(ContextID, hProfile, TYPE_GRAY_8, hXYZ, TYPE_XYZ_DBL, … in ExtractGray2Y()
881 hLab = cmsCreateLab4ProfileTHR(m ->ContextID, NULL); in WriteInputLUT()
891 …cmsSignalError(m ->ContextID, cmsERROR_COLORSPACE_CHECK, "Cannot create transform Profile -> Lab"); in WriteInputLUT()
900 cmsToneCurve* Gray2Y = ExtractGray2Y(m ->ContextID, hProfile, Intent); in WriteInputLUT()
916 … _cmsOptimizePipeline(m->ContextID, &DeviceLink, Intent, &InputFormat, &OutFrm, &dwFlags); in WriteInputLUT()
926 …cmsSignalError(m ->ContextID, cmsERROR_COLORSPACE_CHECK, "Only 3, 4 channels supported for CSA. Th… in WriteInputLUT()
982 …cmsSignalError(m ->ContextID, cmsERROR_COLORSPACE_CHECK, "Profile is not suitable for CSA. Unsuppo… in WriteInputMatrixShaper()
1003 hLab = cmsCreateLab4ProfileTHR(m ->ContextID, NULL); in WriteNamedColorCSA()
[all …]
Dcmsmd5.c54 cmsContext ContextID; member
155 cmsHANDLE MD5alloc(cmsContext ContextID) in MD5alloc() argument
157 _cmsMD5* ctx = (_cmsMD5*) _cmsMallocZero(ContextID, sizeof(_cmsMD5)); in MD5alloc()
160 ctx ->ContextID = ContextID; in MD5alloc()
252 _cmsFree(ctx ->ContextID, ctx); in MD5finish()
263 cmsContext ContextID; in cmsMD5computeID() local
272 ContextID = cmsGetProfileContextID(hProfile); in cmsMD5computeID()
286 Mem = (cmsUInt8Number*) _cmsMalloc(ContextID, BytesNeeded); in cmsMD5computeID()
293 MD5 = MD5alloc(ContextID); in cmsMD5computeID()
300 _cmsFree(ContextID, Mem); in cmsMD5computeID()
[all …]
/external/pdfium/third_party/lcms/
D0000-cmserr-changes.patch34 -cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
41 -void* _cmsMallocDefaultFn(cmsContext ContextID, cmsUInt32Number size)
42 +cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin)
50 - cmsUNUSED_PARAMETER(ContextID);
52 +void* CMSEXPORT _cmsMalloc(cmsContext ContextID, cmsUInt32Number size)
59 -void* _cmsMallocZeroDefaultFn(cmsContext ContextID, cmsUInt32Number size)
60 +void* CMSEXPORT _cmsMallocZero(cmsContext ContextID, cmsUInt32Number size)
62 - void *pt = _cmsMalloc(ContextID, size);
75 -void _cmsFreeDefaultFn(cmsContext ContextID, void *Ptr)
77 +void* CMSEXPORT _cmsCalloc(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size)
[all …]
D0011-memory-leak-AllocEmptyTransform.patch5 @@ -761,7 +761,10 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut,
8 _cmsTRANSFORM* p = (_cmsTRANSFORM*)_cmsMallocZero(ContextID, sizeof(_cmsTRANSFORM));
17 @@ -819,7 +822,7 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut,
20 cmsSignalError(ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unsupported raster format");
21 - _cmsFree(ContextID, p);
26 @@ -849,7 +852,7 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut,
29 cmsSignalError(ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unsupported raster format");
30 - _cmsFree(ContextID, p);
D0027-changes-from-beginning-of-time.patch23 cmsContext ContextID;
30 ContextID = Curve ->InterpParams->ContextID;
37 _cmsFree(ContextID, Curve ->Table16);
46 _cmsFree(ContextID, Curve ->Segments[i].SampledPoints);
57 _cmsFree(ContextID, Curve ->Segments);
59 _cmsFree(ContextID, Curve ->SegInterp);
65 _cmsFree(ContextID, Curve -> Evals);
69 - if (Curve) _cmsFree(ContextID, Curve);
71 + _cmsFree(ContextID, Curve);
87 …return AllocateToneCurveStruct(In ->InterpParams ->ContextID, In ->nEntries, In ->nSegments, In -…
[all …]
D0022-check-LUT-and-MPE.patch50 @@ -1331,6 +1349,7 @@ cmsPipeline* CMSEXPORT cmsPipelineAlloc(cmsContext ContextID, cmsUInt32Number…
58 @@ -1348,7 +1367,11 @@ cmsPipeline* CMSEXPORT cmsPipelineAlloc(cmsContext ContextID, cmsUInt32Numbe…
60 NewLUT ->ContextID = ContextID;
65 + _cmsFree(ContextID, NewLUT);
78 + _cmsFree(lut->ContextID, NewLUT);
127 NewLUT = cmsPipelineAlloc(self ->ContextID, InputChannels, OutputChannels);
138 NewLUT = cmsPipelineAlloc(self ->ContextID, InputChannels, OutputChannels);
148 NewLUT = cmsPipelineAlloc(self ->ContextID, inputChan, outputChan);
169 NewLUT = cmsPipelineAlloc(self ->ContextID, InputChans, OutputChans);
D0017-memory-leak-ReadSegmentedCurve.patch13 …Segments[i].SampledPoints = (cmsFloat32Number*) _cmsCalloc(self ->ContextID, Count, sizeof(cmsFloa…
16 …cmsSignalError(self->ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unknown curve element type '%s' found…
27 - if (Segments) _cmsFree(self ->ContextID, Segments);
30 + if (Segments[i].SampledPoints) _cmsFree(self ->ContextID, Segments[i].SampledPoints);
32 + _cmsFree(self ->ContextID, Segments);
D0014-memory-leak-Type_MPEmatrix_Read.patch11 + _cmsFree(self ->ContextID, Matrix);
12 + _cmsFree(self ->ContextID, Offsets);
24 + _cmsFree(self ->ContextID, Matrix);
25 + _cmsFree(self ->ContextID, Offsets);
D0015-cmsStageAllocMatrix-param-swap.patch5 @@ -414,13 +414,13 @@ cmsStage* CMSEXPORT cmsStageAllocMatrix(cmsContext ContextID, cmsUInt32Numbe…
9 - NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Cols, sizeof(cmsFloat64Number…
10 + NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Rows, sizeof(cmsFloat64Number…
/external/pdfium/third_party/lcms/include/
Dlcms2_plugin.h99 CMSAPI void CMSEXPORT cmsSignalError(cmsContext ContextID, cmsUInt32Number ErrorCode…
103 CMSAPI void* CMSEXPORT _cmsMalloc(cmsContext ContextID, cmsUInt32Number size);
104 CMSAPI void* CMSEXPORT _cmsMallocZero(cmsContext ContextID, cmsUInt32Number size);
105 CMSAPI void* CMSEXPORT _cmsCalloc(cmsContext ContextID, cmsUInt32Number num, cmsUInt32…
106 CMSAPI void* CMSEXPORT _cmsRealloc(cmsContext ContextID, void* Ptr, cmsUInt32Number Ne…
107 CMSAPI void CMSEXPORT _cmsFree(cmsContext ContextID, void* Ptr);
108 CMSAPI void* CMSEXPORT _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Numb…
116 cmsContext ContextID; member
187 typedef void (* _cmsFreeUserDataFn)(cmsContext ContextID, void* Data);
188 typedef void* (* _cmsDupUserDataFn)(cmsContext ContextID, const void* Data);
[all …]
Dlcms2.h1025 CMSAPI cmsContext CMSEXPORT cmsDupContext(cmsContext ContextID, void* NewUserData);
1026 CMSAPI void* CMSEXPORT cmsGetContextUserData(cmsContext ContextID);
1031 CMSAPI cmsBool CMSEXPORT cmsPluginTHR(cmsContext ContextID, void* Plugin);
1033 CMSAPI void CMSEXPORT cmsUnregisterPluginsTHR(cmsContext ContextID);
1066 typedef void (* cmsLogErrorHandlerFunction)(cmsContext ContextID, cmsUInt32Number ErrorCode, const…
1070 CMSAPI void CMSEXPORT cmsSetLogErrorHandlerTHR(cmsContext ContextID, cmsLogErrorHandle…
1133 CMSAPI cmsHANDLE CMSEXPORT cmsCIECAM02Init(cmsContext ContextID, const cmsViewingConditions…
1156 CMSAPI cmsToneCurve* CMSEXPORT cmsBuildSegmentedToneCurve(cmsContext ContextID, cmsInt32Number …
1157 CMSAPI cmsToneCurve* CMSEXPORT cmsBuildParametricToneCurve(cmsContext ContextID, cmsInt32Number…
1158 CMSAPI cmsToneCurve* CMSEXPORT cmsBuildGamma(cmsContext ContextID, cmsFloat64Number Gamma);
[all …]

12