/external/pdfium/third_party/lcms2-2.6/src/ |
cmserr.c | 77 cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 84 void* _cmsMallocDefaultFn(cmsContext ContextID, cmsUInt32Number size) 90 cmsUNUSED_PARAMETER(ContextID); 95 void* _cmsMallocZeroDefaultFn(cmsContext ContextID, cmsUInt32Number size) 97 void *pt = _cmsMalloc(ContextID, size); 107 void _cmsFreeDefaultFn(cmsContext ContextID, void *Ptr) 114 cmsUNUSED_PARAMETER(ContextID); 120 void* _cmsReallocDefaultFn(cmsContext ContextID, void* Ptr, cmsUInt32Number size) 127 cmsUNUSED_PARAMETER(ContextID); 134 void* _cmsCallocDefaultFn(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size [all...] |
cmsio0.c | 93 _cmsFree(iohandler ->ContextID, ResData); 94 _cmsFree(iohandler ->ContextID, iohandler); 99 cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromNULL(cmsContext ContextID) 104 iohandler = (struct _cms_io_handler*) _cmsMallocZero(ContextID, sizeof(struct _cms_io_handler)); 107 fm = (FILENULL*) _cmsMallocZero(ContextID, sizeof(FILENULL)); 112 iohandler ->ContextID = ContextID; 127 if (iohandler) _cmsFree(ContextID, iohandler); 155 cmsSignalError(iohandler ->ContextID, cmsERROR_READ, "Read from memory error. Got %d bytes, block should be of %d bytes", len, count * size); 174 cmsSignalError(iohandler ->ContextID, cmsERROR_SEEK, "Too few data; probably corrupted profile") [all...] |
lcms2_internal.h | 326 void* _cmsPluginMalloc(cmsContext ContextID, cmsUInt32Number size); 329 cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 332 cmsBool _cmsRegisterInterpPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 335 cmsBool _cmsRegisterParametricCurvesPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 338 cmsBool _cmsRegisterFormattersPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 341 cmsBool _cmsRegisterTagTypePlugin(cmsContext ContextID, cmsPluginBase* Plugin); 344 cmsBool _cmsRegisterTagPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 347 cmsBool _cmsRegisterRenderingIntentPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 350 cmsBool _cmsRegisterMultiProcessElementPlugin(cmsContext ContextID, cmsPluginBase* Plugin); 353 cmsBool _cmsRegisterOptimizationPlugin(cmsContext ContextID, cmsPluginBase* Plugin) [all...] |
cmsxform.c | 57 cmsFloat64Number CMSEXPORT cmsSetAdaptationStateTHR(cmsContext ContextID, cmsFloat64Number d) 60 _cmsAdaptationStateChunkType* ptr = (_cmsAdaptationStateChunkType*) _cmsContextGetClientChunk(ContextID, AdaptationStateContext); 93 void CMSEXPORT cmsSetAlarmCodesTHR(cmsContext ContextID, const cmsUInt16Number AlarmCodesP[cmsMAXCHANNELS]) 95 _cmsAlarmCodesChunkType* ContextAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(ContextID, AlarmCodesContext); 104 void CMSEXPORT cmsGetAlarmCodesTHR(cmsContext ContextID, cmsUInt16Number AlarmCodesP[cmsMAXCHANNELS]) 106 _cmsAlarmCodesChunkType* ContextAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(ContextID, AlarmCodesContext); 169 p ->FreeUserData(p ->ContextID, p ->UserData); 171 _cmsFree(p ->ContextID, (void *) p); 337 _cmsAlarmCodesChunkType* ContextAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(p->ContextID, AlarmCodesContext); 523 cmsBool _cmsRegisterTransformPlugin(cmsContext ContextID, cmsPluginBase* Data [all...] |
cmsvirt.c | 37 cmsContext ContextID = cmsGetProfileContextID(hProfile); 39 DescriptionMLU = cmsMLUalloc(ContextID, 1); 40 CopyrightMLU = cmsMLUalloc(ContextID, 1); 66 cmsContext ContextID = cmsGetProfileContextID(hProfile); 67 cmsSEQ* Seq = cmsAllocProfileSequenceDescription(ContextID, 1); 101 cmsHPROFILE CMSEXPORT cmsCreateRGBProfileTHR(cmsContext ContextID, 113 hICC = cmsCreateProfilePlaceholder(ContextID); 227 cmsHPROFILE CMSEXPORT cmsCreateGrayProfileTHR(cmsContext ContextID, 234 hICC = cmsCreateProfilePlaceholder(ContextID); 288 cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLinkTHR(cmsContext ContextID, [all...] |
cmsio1.c | 160 cmsContext ContextID = cmsGetProfileContextID(hProfile); 165 Lut = cmsPipelineAlloc(ContextID, 1, 3); 176 EmptyTab = cmsBuildTabulatedToneCurve16(ContextID, 2, Zero); 185 if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 1, OneToThreeInputMatrix, NULL)) || 186 !cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, LabCurves))) { 196 if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 1, &GrayTRC)) || 197 !cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 1, GrayInputMatrix, NULL))) 220 cmsContext ContextID = cmsGetProfileContextID(hProfile); 241 Lut = cmsPipelineAlloc(ContextID, 3, 3); 244 if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, Shapes)) | [all...] |
cmsnamed.c | 33 cmsMLU* CMSEXPORT cmsMLUalloc(cmsContext ContextID, cmsUInt32Number nItems) 41 mlu = (cmsMLU*) _cmsMallocZero(ContextID, sizeof(cmsMLU)); 44 mlu ->ContextID = ContextID; 47 mlu ->Entries = (_cmsMLUentry*) _cmsCalloc(ContextID, nItems, sizeof(_cmsMLUentry)); 49 _cmsFree(ContextID, mlu); 80 NewPtr = _cmsRealloc(mlu ->ContextID, mlu ->MemPool, size); 107 NewPtr = (_cmsMLUentry*)_cmsRealloc(mlu ->ContextID, mlu ->Entries, AllocatedEntries*sizeof(_cmsMLUentry)); 193 WStr = (wchar_t*) _cmsCalloc(mlu ->ContextID, len, sizeof(wchar_t)); 201 _cmsFree(mlu ->ContextID, WStr) [all...] |
cmslut.c | 31 cmsStage* CMSEXPORT _cmsStageAllocPlaceholder(cmsContext ContextID, 40 cmsStage* ph = (cmsStage*) _cmsMallocZero(ContextID, sizeof(cmsStage)); 45 ph ->ContextID = ContextID; 70 cmsStage* CMSEXPORT cmsStageAllocIdentity(cmsContext ContextID, cmsUInt32Number nChannels) 72 return _cmsStageAllocPlaceholder(ContextID, 203 _cmsFree(mpe ->ContextID, Data ->TheCurves); 204 _cmsFree(mpe ->ContextID, Data); 215 NewElem = (_cmsStageToneCurvesData*) _cmsMallocZero(mpe ->ContextID, sizeof(_cmsStageToneCurvesData)); 219 NewElem ->TheCurves = (cmsToneCurve**) _cmsCalloc(mpe ->ContextID, NewElem ->nCurves, sizeof(cmsToneCurve*)) [all...] |
cmsgmt.c | 32 cmsHTRANSFORM _cmsChain2Lab(cmsContext ContextID, 55 hLab = cmsCreateLab4ProfileTHR(ContextID, NULL); 74 xform = cmsCreateExtendedTransform(ContextID, nProfiles + 1, ProfileList, 92 cmsToneCurve* ComputeKToLstar(cmsContext ContextID, 108 xform = _cmsChain2Lab(ContextID, nProfiles, TYPE_CMYK_FLT, TYPE_Lab_DBL, Intents, hProfiles, BPC, AdaptationStates, dwFlags); 111 SampledPoints = (cmsFloat32Number*) _cmsCalloc(ContextID, nPoints, sizeof(cmsFloat32Number)); 125 out = cmsBuildTabulatedToneCurveFloat(ContextID, nPoints, SampledPoints); 130 if (SampledPoints) _cmsFree(ContextID, SampledPoints); 139 cmsToneCurve* _cmsBuildKToneCurve(cmsContext ContextID, 160 in = ComputeKToLstar(ContextID, nPoints, nProfiles - 1, Intents, hProfiles, BPC, AdaptationStates, dwFlags) [all...] |
cmsgamma.c | 127 cmsBool _cmsRegisterParametricCurvesPlugin(cmsContext ContextID, cmsPluginBase* Data) 129 _cmsCurvesPluginChunkType* ctx = ( _cmsCurvesPluginChunkType*) _cmsContextGetClientChunk(ContextID, CurvesPlugin); 139 fl = (_cmsParametricCurvesCollection*) _cmsPluginMalloc(ContextID, sizeof(_cmsParametricCurvesCollection)); 178 _cmsParametricCurvesCollection *GetParametricCurveByType(cmsContext ContextID, int Type, int* index) 182 _cmsCurvesPluginChunkType* ctx = ( _cmsCurvesPluginChunkType*) _cmsContextGetClientChunk(ContextID, CurvesPlugin); 213 cmsToneCurve* AllocateToneCurveStruct(cmsContext ContextID, cmsInt32Number nEntries, 222 cmsSignalError(ContextID, cmsERROR_RANGE, "Couldn't create tone curve of more than 65530 entries"); 227 cmsSignalError(ContextID, cmsERROR_RANGE, "Couldn't create tone curve with zero segments and no table"); 232 p = (cmsToneCurve*) _cmsMallocZero(ContextID, sizeof(cmsToneCurve)); 241 p ->Segments = (cmsCurveSegment*) _cmsCalloc(ContextID, nSegments, sizeof(cmsCurveSegment)) [all...] |
cmsopt.c | 35 cmsContext ContextID; 49 cmsContext ContextID; 77 cmsContext ContextID; 95 cmsContext ContextID; 239 void PrelinOpt16free(cmsContext ContextID, void* ptr) 243 _cmsFree(ContextID, p16 ->EvalCurveOut16); 244 _cmsFree(ContextID, p16 ->ParamsCurveOut16); 246 _cmsFree(ContextID, p16); 250 void* Prelin16dup(cmsContext ContextID, const void* ptr) 253 Prelin16Data* Duped = _cmsDupMem(ContextID, p16, sizeof(Prelin16Data)) [all...] |
cmstypes.c | 178 ElementOffsets = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); 181 ElementSizes = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); 202 if (ElementOffsets != NULL) _cmsFree(io ->ContextID, ElementOffsets); 203 if (ElementSizes != NULL) _cmsFree(io ->ContextID, ElementSizes); 207 if (ElementOffsets != NULL) _cmsFree(io ->ContextID, ElementOffsets); 208 if (ElementSizes != NULL) _cmsFree(io ->ContextID, ElementSizes); 227 ElementOffsets = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); 230 ElementSizes = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number)); 267 if (ElementOffsets != NULL) _cmsFree(io ->ContextID, ElementOffsets); 268 if (ElementSizes != NULL) _cmsFree(io ->ContextID, ElementSizes) [all...] |
cmscnvrt.c | 33 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) 166 _cmsIntentsPluginChunkType* ctx = ( _cmsIntentsPluginChunkType*) _cmsContextGetClientChunk(ContextID, IntentPlugin); 444 !cmsPipelineInsertStage(Result, cmsAT_END, cmsStageAllocMatrix(Result ->ContextID, 3, 3, m_as_dbl, off_as_dbl))) 450 !cmsPipelineInsertStage(Result, cmsAT_END, cmsStageAllocMatrix(Result ->ContextID, 3, 3, m_as_dbl, off_as_dbl))) 452 if (!cmsPipelineInsertStage(Result, cmsAT_END, _cmsStageAllocXYZ2Lab(Result ->ContextID))) 467 if (!cmsPipelineInsertStage(Result, cmsAT_END, _cmsStageAllocLab2XYZ(Result ->ContextID))) [all...] |
cmsplugin.c | 519 void* _cmsPluginMalloc(cmsContext ContextID, cmsUInt32Number size) 521 struct _cmsContext_struct* ctx = _cmsGetContext(ContextID); 525 if (ContextID == NULL) { 530 cmsSignalError(ContextID, cmsERROR_CORRUPTION_DETECTED, "NULL memory pool on context"); 661 struct _cmsContext_struct* _cmsGetContext(cmsContext ContextID) 663 struct _cmsContext_struct* id = (struct _cmsContext_struct*) ContextID; 687 void* _cmsContextGetClientChunk(cmsContext ContextID, _cmsMemoryClient mc) 693 cmsSignalError(ContextID, cmsERROR_RANGE, "Bad context client"); 697 ctx = _cmsGetContext(ContextID); 714 void CMSEXPORT cmsUnregisterPluginsTHR(cmsContext ContextID) [all...] |
cmsps2.c | 831 cmsToneCurve* ExtractGray2Y(cmsContext ContextID, cmsHPROFILE hProfile, int Intent) 833 cmsToneCurve* Out = cmsBuildTabulatedToneCurve16(ContextID, 256, NULL); 835 cmsHTRANSFORM xform = cmsCreateTransformTHR(ContextID, hProfile, TYPE_GRAY_8, hXYZ, TYPE_XYZ_DBL, Intent, cmsFLAGS_NOOPTIMIZE); 881 hLab = cmsCreateLab4ProfileTHR(m ->ContextID, NULL); 891 cmsSignalError(m ->ContextID, cmsERROR_COLORSPACE_CHECK, "Cannot create transform Profile -> Lab"); 900 cmsToneCurve* Gray2Y = ExtractGray2Y(m ->ContextID, hProfile, Intent); 916 _cmsOptimizePipeline(m->ContextID, &DeviceLink, Intent, &InputFormat, &OutFrm, &dwFlags); 926 cmsSignalError(m ->ContextID, cmsERROR_COLORSPACE_CHECK, "Only 3, 4 channels supported for CSA. This profile has %d channels.", nChannels); 982 cmsSignalError(m ->ContextID, cmsERROR_COLORSPACE_CHECK, "Profile is not suitable for CSA. Unsupported colorspace."); 1003 hLab = cmsCreateLab4ProfileTHR(m ->ContextID, NULL) [all...] |
cmsmd5.c | 53 cmsContext ContextID; 154 cmsHANDLE MD5alloc(cmsContext ContextID) 156 _cmsMD5* ctx = (_cmsMD5*) _cmsMallocZero(ContextID, sizeof(_cmsMD5)); 159 ctx ->ContextID = ContextID; 251 _cmsFree(ctx ->ContextID, ctx); 262 cmsContext ContextID; 271 ContextID = cmsGetProfileContextID(hProfile); 285 Mem = (cmsUInt8Number*) _cmsMalloc(ContextID, BytesNeeded); 292 MD5 = MD5alloc(ContextID); [all...] |
cmssamp.c | 43 cmsContext ContextID = cmsGetProfileContextID(hProfile); 44 cmsHPROFILE hLab = cmsCreateLab4ProfileTHR(ContextID, NULL); 54 xform = cmsCreateExtendedTransform(ContextID, 4, hProfiles, BPC, Intents, 77 cmsContext ContextID = cmsGetProfileContextID(hInput); 105 hLab = cmsCreateLab2ProfileTHR(ContextID, NULL); 112 xform = cmsCreateTransformTHR(ContextID, hInput, dwFormat,
|
cmssm.c | 68 cmsContext ContextID; 301 cmsHANDLE CMSEXPORT cmsGBDAlloc(cmsContext ContextID) 303 cmsGDB* gbd = (cmsGDB*) _cmsMallocZero(ContextID, sizeof(cmsGDB)); 306 gbd -> ContextID = ContextID; 316 _cmsFree(gbd->ContextID, (void*) gbd); 339 cmsSignalError(gbd ->ContextID, cmsERROR_RANGE, "spherical value out of range"); 347 cmsSignalError(gbd ->ContextID, cmsERROR_RANGE, " quadrant out of range");
|
cmscgats.c | 175 cmsContext ContextID; // The threading context 471 cmsSignalError(it8 ->ContextID, cmsERROR_CORRUPTION_DETECTED, "%s", ErrMsg); 1035 if (p->Ptr) _cmsFree(it8 ->ContextID, p->Ptr); 1036 _cmsFree(it8 ->ContextID, p); 1041 _cmsFree(it8 ->ContextID, it8->MemoryBlock); 1043 _cmsFree(it8 ->ContextID, it8); 1052 void* ptr = _cmsMallocZero(it8->ContextID, size); 1056 ptr1 = (OWNEDMEM*) _cmsMallocZero(it8 ->ContextID, sizeof(OWNEDMEM)); [all...] |
cmscam02.c | 55 cmsContext ContextID; 359 cmsHANDLE CMSEXPORT cmsCIECAM02Init(cmsContext ContextID, const cmsViewingConditions* pVC) 365 if((lpMod = (cmsCIECAM02*) _cmsMallocZero(ContextID, sizeof(cmsCIECAM02))) == NULL) { 369 lpMod ->ContextID = ContextID; 432 if (lpMod) _cmsFree(lpMod ->ContextID, lpMod);
|
cmsintrp.c | 60 cmsBool _cmsRegisterInterpPlugin(cmsContext ContextID, cmsPluginBase* Data) 63 _cmsInterpPluginChunkType* ptr = (_cmsInterpPluginChunkType*) _cmsContextGetClientChunk(ContextID, InterpPlugin); 78 cmsBool _cmsSetInterpolationRoutine(cmsContext ContextID, cmsInterpParams* p) 80 _cmsInterpPluginChunkType* ptr = (_cmsInterpPluginChunkType*) _cmsContextGetClientChunk(ContextID, InterpPlugin); 103 cmsInterpParams* _cmsComputeInterpParamsEx(cmsContext ContextID, 114 cmsSignalError(ContextID, cmsERROR_RANGE, "Too many input channels (%d channels, max=%d)", InputChan, MAX_INPUT_DIMENSIONS); 119 p = (cmsInterpParams*) _cmsMallocZero(ContextID, sizeof(cmsInterpParams)); 127 p ->ContextID = ContextID; 142 if (!_cmsSetInterpolationRoutine(ContextID, p)) [all...] |
cmspack.c | [all...] |
/external/pdfium/third_party/lcms2-2.6/include/ |
lcms2_plugin.h | 99 CMSAPI void CMSEXPORT cmsSignalError(cmsContext ContextID, cmsUInt32Number ErrorCode, const char *ErrorText, ...); 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, cmsUInt32Number size); 106 CMSAPI void* CMSEXPORT _cmsRealloc(cmsContext ContextID, void* Ptr, cmsUInt32Number NewSize); 107 CMSAPI void CMSEXPORT _cmsFree(cmsContext ContextID, void* Ptr); 108 CMSAPI void* CMSEXPORT _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Number size); 116 cmsContext ContextID; 187 typedef void (* _cmsFreeUserDataFn)(cmsContext ContextID, void* Data); 188 typedef void* (* _cmsDupUserDataFn)(cmsContext ContextID, const void* Data) [all...] |
lcms2.h | [all...] |