w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

lcms2_plugin.h File Reference
#include "lcms2.h"
#include <stdlib.h>
#include <math.h>
#include <stdarg.h>
#include <memory.h>
#include <string.h>
Include dependency graph for lcms2_plugin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cmsVEC3
 
struct  cmsMAT3
 
struct  _cms_io_handler
 
struct  _cmsTagBase
 
struct  _cmsPluginBaseStruct
 
struct  cmsPluginMemHandler
 
union  cmsInterpFunction
 
struct  _cms_interp_struc
 
struct  cmsPluginInterpolation
 
struct  cmsPluginParametricCurves
 
union  cmsFormatter
 
struct  cmsPluginFormatters
 
struct  _cms_typehandler_struct
 
struct  cmsPluginTagType
 
struct  cmsTagDescriptor
 
struct  cmsPluginTag
 
struct  cmsPluginRenderingIntent
 
struct  cmsPluginMultiProcessElement
 
struct  _cmsStageToneCurvesData
 
struct  _cmsStageMatrixData
 
struct  _cmsStageCLutData
 
struct  cmsPluginOptimization
 
struct  cmsStride
 
struct  cmsPluginTransform
 
struct  cmsPluginMutex
 

Macros

#define VX   0
 
#define VY   1
 
#define VZ   2
 
#define cmsPluginMagicNumber   0x61637070
 
#define cmsPluginMemHandlerSig   0x6D656D48
 
#define cmsPluginInterpolationSig   0x696E7048
 
#define cmsPluginParametricCurveSig   0x70617248
 
#define cmsPluginFormattersSig   0x66726D48
 
#define cmsPluginTagTypeSig   0x74797048
 
#define cmsPluginTagSig   0x74616748
 
#define cmsPluginRenderingIntentSig   0x696E7448
 
#define cmsPluginMultiProcessElementSig   0x6D706548
 
#define cmsPluginOptimizationSig   0x6F707448
 
#define cmsPluginTransformSig   0x7A666D48
 
#define cmsPluginMutexSig   0x6D747A48
 
#define MAX_TYPES_IN_LCMS_PLUGIN   20
 
#define CMS_LERP_FLAGS_16BITS   0x0000
 
#define CMS_LERP_FLAGS_FLOAT   0x0001
 
#define CMS_LERP_FLAGS_TRILINEAR   0x0100
 
#define MAX_INPUT_DIMENSIONS   8
 
#define CMS_PACK_FLAGS_16BITS   0x0000
 
#define CMS_PACK_FLAGS_FLOAT   0x0001
 
#define _lcms_plugin_H
 

Typedefs

typedef void(* _cmsFreeUserDataFn) (cmsContext ContextID, void *Data)
 
typedef void *(* _cmsDupUserDataFn) (cmsContext ContextID, const void *Data)
 
typedef struct _cmsPluginBaseStruct cmsPluginBase
 
typedef void *(* _cmsMallocFnPtrType) (cmsContext ContextID, cmsUInt32Number size)
 
typedef void(* _cmsFreeFnPtrType) (cmsContext ContextID, void *Ptr)
 
typedef void *(* _cmsReallocFnPtrType) (cmsContext ContextID, void *Ptr, cmsUInt32Number NewSize)
 
typedef void *(* _cmsMalloZerocFnPtrType) (cmsContext ContextID, cmsUInt32Number size)
 
typedef void *(* _cmsCallocFnPtrType) (cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size)
 
typedef void *(* _cmsDupFnPtrType) (cmsContext ContextID, const void *Org, cmsUInt32Number size)
 
typedef void(* _cmsInterpFn16) (register const cmsUInt16Number Input[], register cmsUInt16Number Output[], register const struct _cms_interp_struc *p)
 
typedef void(* _cmsInterpFnFloat) (cmsFloat32Number const Input[], cmsFloat32Number Output[], const struct _cms_interp_struc *p)
 
typedef struct _cms_interp_struc cmsInterpParams
 
typedef cmsInterpFunction(* cmsInterpFnFactory) (cmsUInt32Number nInputChannels, cmsUInt32Number nOutputChannels, cmsUInt32Number dwFlags)
 
typedef cmsFloat64Number(* cmsParametricCurveEvaluator) (cmsInt32Number Type, const cmsFloat64Number Params[10], cmsFloat64Number R)
 
typedef cmsUInt8Number *(* cmsFormatter16) (register struct _cmstransform_struct *CMMcargo, register cmsUInt16Number Values[], register cmsUInt8Number *Buffer, register cmsUInt32Number Stride)
 
typedef cmsUInt8Number *(* cmsFormatterFloat) (struct _cmstransform_struct *CMMcargo, cmsFloat32Number Values[], cmsUInt8Number *Buffer, cmsUInt32Number Stride)
 
typedef cmsFormatter(* cmsFormatterFactory) (cmsUInt32Number Type, cmsFormatterDirection Dir, cmsUInt32Number dwFlags)
 
typedef struct _cms_typehandler_struct cmsTagTypeHandler
 
typedef cmsPipeline *(* cmsIntentFn) (cmsContext ContextID, cmsUInt32Number nProfiles, cmsUInt32Number Intents[], cmsHPROFILE hProfiles[], cmsBool BPC[], cmsFloat64Number AdaptationStates[], cmsUInt32Number dwFlags)
 
typedef void(* _cmsStageEvalFn) (const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsStage *mpe)
 
typedef void *(* _cmsStageDupElemFn) (cmsStage *mpe)
 
typedef void(* _cmsStageFreeElemFn) (cmsStage *mpe)
 
typedef void(* _cmsOPTeval16Fn) (register const cmsUInt16Number In[], register cmsUInt16Number Out[], register const void *Data)
 
typedef cmsBool(* _cmsOPToptimizeFn) (cmsPipeline **Lut, cmsUInt32Number Intent, cmsUInt32Number *InputFormat, cmsUInt32Number *OutputFormat, cmsUInt32Number *dwFlags)
 
typedef void(* _cmsTransformFn) (struct _cmstransform_struct *CMMcargo, const void *InputBuffer, void *OutputBuffer, cmsUInt32Number Size, cmsUInt32Number Stride)
 
typedef void(* _cmsTransform2Fn) (struct _cmstransform_struct *CMMcargo, const void *InputBuffer, void *OutputBuffer, cmsUInt32Number PixelsPerLine, cmsUInt32Number LineCount, const cmsStride *Stride)
 
typedef cmsBool(* _cmsTransformFactory) (_cmsTransformFn *xform, void **UserData, _cmsFreeUserDataFn *FreePrivateDataFn, cmsPipeline **Lut, cmsUInt32Number *InputFormat, cmsUInt32Number *OutputFormat, cmsUInt32Number *dwFlags)
 
typedef cmsBool(* _cmsTransform2Factory) (_cmsTransform2Fn *xform, void **UserData, _cmsFreeUserDataFn *FreePrivateDataFn, cmsPipeline **Lut, cmsUInt32Number *InputFormat, cmsUInt32Number *OutputFormat, cmsUInt32Number *dwFlags)
 
typedef void *(* _cmsCreateMutexFnPtrType) (cmsContext ContextID)
 
typedef void(* _cmsDestroyMutexFnPtrType) (cmsContext ContextID, void *mtx)
 
typedef cmsBool(* _cmsLockMutexFnPtrType) (cmsContext ContextID, void *mtx)
 
typedef void(* _cmsUnlockMutexFnPtrType) (cmsContext ContextID, void *mtx)
 

Enumerations

enum  cmsFormatterDirection { cmsFormatterInput =0 , cmsFormatterOutput =1 }
 

Functions

void _cmsVEC3init (cmsVEC3 *r, cmsFloat64Number x, cmsFloat64Number y, cmsFloat64Number z)
 
void _cmsVEC3minus (cmsVEC3 *r, const cmsVEC3 *a, const cmsVEC3 *b)
 
void _cmsVEC3cross (cmsVEC3 *r, const cmsVEC3 *u, const cmsVEC3 *v)
 
cmsFloat64Number _cmsVEC3dot (const cmsVEC3 *u, const cmsVEC3 *v)
 
cmsFloat64Number _cmsVEC3length (const cmsVEC3 *a)
 
cmsFloat64Number _cmsVEC3distance (const cmsVEC3 *a, const cmsVEC3 *b)
 
void _cmsMAT3identity (cmsMAT3 *a)
 
cmsBool _cmsMAT3isIdentity (const cmsMAT3 *a)
 
void _cmsMAT3per (cmsMAT3 *r, const cmsMAT3 *a, const cmsMAT3 *b)
 
cmsBool _cmsMAT3inverse (const cmsMAT3 *a, cmsMAT3 *b)
 
cmsBool _cmsMAT3solve (cmsVEC3 *x, cmsMAT3 *a, cmsVEC3 *b)
 
void _cmsMAT3eval (cmsVEC3 *r, const cmsMAT3 *a, const cmsVEC3 *v)
 
cmsHANDLE cmsMD5alloc (cmsContext ContextID)
 
void cmsMD5add (cmsHANDLE Handle, const cmsUInt8Number *buf, cmsUInt32Number len)
 
void cmsMD5finish (cmsProfileID *ProfileID, cmsHANDLE Handle)
 
void cmsSignalError (cmsContext ContextID, cmsUInt32Number ErrorCode, const char *ErrorText,...)
 
void_cmsMalloc (cmsContext ContextID, cmsUInt32Number size)
 
void_cmsMallocZero (cmsContext ContextID, cmsUInt32Number size)
 
void_cmsCalloc (cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size)
 
void_cmsRealloc (cmsContext ContextID, void *Ptr, cmsUInt32Number NewSize)
 
void _cmsFree (cmsContext ContextID, void *Ptr)
 
void_cmsDupMem (cmsContext ContextID, const void *Org, cmsUInt32Number size)
 
cmsUInt16Number _cmsAdjustEndianess16 (cmsUInt16Number Word)
 
cmsUInt32Number _cmsAdjustEndianess32 (cmsUInt32Number Value)
 
void _cmsAdjustEndianess64 (cmsUInt64Number *Result, cmsUInt64Number *QWord)
 
cmsBool _cmsReadUInt8Number (cmsIOHANDLER *io, cmsUInt8Number *n)
 
cmsBool _cmsReadUInt16Number (cmsIOHANDLER *io, cmsUInt16Number *n)
 
cmsBool _cmsReadUInt32Number (cmsIOHANDLER *io, cmsUInt32Number *n)
 
cmsBool _cmsReadFloat32Number (cmsIOHANDLER *io, cmsFloat32Number *n)
 
cmsBool _cmsReadUInt64Number (cmsIOHANDLER *io, cmsUInt64Number *n)
 
cmsBool _cmsRead15Fixed16Number (cmsIOHANDLER *io, cmsFloat64Number *n)
 
cmsBool _cmsReadXYZNumber (cmsIOHANDLER *io, cmsCIEXYZ *XYZ)
 
cmsBool _cmsReadUInt16Array (cmsIOHANDLER *io, cmsUInt32Number n, cmsUInt16Number *Array)
 
cmsBool _cmsWriteUInt8Number (cmsIOHANDLER *io, cmsUInt8Number n)
 
cmsBool _cmsWriteUInt16Number (cmsIOHANDLER *io, cmsUInt16Number n)
 
cmsBool _cmsWriteUInt32Number (cmsIOHANDLER *io, cmsUInt32Number n)
 
cmsBool _cmsWriteFloat32Number (cmsIOHANDLER *io, cmsFloat32Number n)
 
cmsBool _cmsWriteUInt64Number (cmsIOHANDLER *io, cmsUInt64Number *n)
 
cmsBool _cmsWrite15Fixed16Number (cmsIOHANDLER *io, cmsFloat64Number n)
 
cmsBool _cmsWriteXYZNumber (cmsIOHANDLER *io, const cmsCIEXYZ *XYZ)
 
cmsBool _cmsWriteUInt16Array (cmsIOHANDLER *io, cmsUInt32Number n, const cmsUInt16Number *Array)
 
cmsTagTypeSignature _cmsReadTypeBase (cmsIOHANDLER *io)
 
cmsBool _cmsWriteTypeBase (cmsIOHANDLER *io, cmsTagTypeSignature sig)
 
cmsBool _cmsReadAlignment (cmsIOHANDLER *io)
 
cmsBool _cmsWriteAlignment (cmsIOHANDLER *io)
 
cmsBool _cmsIOPrintf (cmsIOHANDLER *io, const char *frm,...)
 
cmsFloat64Number _cms8Fixed8toDouble (cmsUInt16Number fixed8)
 
cmsUInt16Number _cmsDoubleTo8Fixed8 (cmsFloat64Number val)
 
cmsFloat64Number _cms15Fixed16toDouble (cmsS15Fixed16Number fix32)
 
cmsS15Fixed16Number _cmsDoubleTo15Fixed16 (cmsFloat64Number v)
 
void _cmsEncodeDateTimeNumber (cmsDateTimeNumber *Dest, const struct tm *Source)
 
void _cmsDecodeDateTimeNumber (const cmsDateTimeNumber *Source, struct tm *Dest)
 
cmsPipeline_cmsDefaultICCintents (cmsContext ContextID, cmsUInt32Number nProfiles, cmsUInt32Number Intents[], cmsHPROFILE hProfiles[], cmsBool BPC[], cmsFloat64Number AdaptationStates[], cmsUInt32Number dwFlags)
 
cmsStage_cmsStageAllocPlaceholder (cmsContext ContextID, cmsStageSignature Type, cmsUInt32Number InputChannels, cmsUInt32Number OutputChannels, _cmsStageEvalFn EvalPtr, _cmsStageDupElemFn DupElemPtr, _cmsStageFreeElemFn FreePtr, void *Data)
 
void _cmsPipelineSetOptimizationParameters (cmsPipeline *Lut, _cmsOPTeval16Fn Eval16, void *PrivateData, _cmsFreeUserDataFn FreePrivateDataFn, _cmsDupUserDataFn DupPrivateDataFn)
 
void _cmsSetTransformUserData (struct _cmstransform_struct *CMMcargo, void *ptr, _cmsFreeUserDataFn FreePrivateDataFn)
 
void_cmsGetTransformUserData (struct _cmstransform_struct *CMMcargo)
 
void _cmsGetTransformFormatters16 (struct _cmstransform_struct *CMMcargo, cmsFormatter16 *FromInput, cmsFormatter16 *ToOutput)
 
void _cmsGetTransformFormattersFloat (struct _cmstransform_struct *CMMcargo, cmsFormatterFloat *FromInput, cmsFormatterFloat *ToOutput)
 
void_cmsCreateMutex (cmsContext ContextID)
 
void _cmsDestroyMutex (cmsContext ContextID, void *mtx)
 
cmsBool _cmsLockMutex (cmsContext ContextID, void *mtx)
 
void _cmsUnlockMutex (cmsContext ContextID, void *mtx)
 

Macro Definition Documentation

◆ _lcms_plugin_H

#define _lcms_plugin_H

Definition at line 670 of file lcms2_plugin.h.

◆ CMS_LERP_FLAGS_16BITS

#define CMS_LERP_FLAGS_16BITS   0x0000

Definition at line 284 of file lcms2_plugin.h.

◆ CMS_LERP_FLAGS_FLOAT

#define CMS_LERP_FLAGS_FLOAT   0x0001

Definition at line 285 of file lcms2_plugin.h.

◆ CMS_LERP_FLAGS_TRILINEAR

#define CMS_LERP_FLAGS_TRILINEAR   0x0100

Definition at line 286 of file lcms2_plugin.h.

◆ CMS_PACK_FLAGS_16BITS

#define CMS_PACK_FLAGS_16BITS   0x0000

Definition at line 366 of file lcms2_plugin.h.

◆ CMS_PACK_FLAGS_FLOAT

#define CMS_PACK_FLAGS_FLOAT   0x0001

Definition at line 367 of file lcms2_plugin.h.

◆ cmsPluginFormattersSig

#define cmsPluginFormattersSig   0x66726D48

Definition at line 204 of file lcms2_plugin.h.

◆ cmsPluginInterpolationSig

#define cmsPluginInterpolationSig   0x696E7048

Definition at line 202 of file lcms2_plugin.h.

◆ cmsPluginMagicNumber

#define cmsPluginMagicNumber   0x61637070

Definition at line 199 of file lcms2_plugin.h.

◆ cmsPluginMemHandlerSig

#define cmsPluginMemHandlerSig   0x6D656D48

Definition at line 201 of file lcms2_plugin.h.

◆ cmsPluginMultiProcessElementSig

#define cmsPluginMultiProcessElementSig   0x6D706548

Definition at line 208 of file lcms2_plugin.h.

◆ cmsPluginMutexSig

#define cmsPluginMutexSig   0x6D747A48

Definition at line 211 of file lcms2_plugin.h.

◆ cmsPluginOptimizationSig

#define cmsPluginOptimizationSig   0x6F707448

Definition at line 209 of file lcms2_plugin.h.

◆ cmsPluginParametricCurveSig

#define cmsPluginParametricCurveSig   0x70617248

Definition at line 203 of file lcms2_plugin.h.

◆ cmsPluginRenderingIntentSig

#define cmsPluginRenderingIntentSig   0x696E7448

Definition at line 207 of file lcms2_plugin.h.

◆ cmsPluginTagSig

#define cmsPluginTagSig   0x74616748

Definition at line 206 of file lcms2_plugin.h.

◆ cmsPluginTagTypeSig

#define cmsPluginTagTypeSig   0x74797048

Definition at line 205 of file lcms2_plugin.h.

◆ cmsPluginTransformSig

#define cmsPluginTransformSig   0x7A666D48

Definition at line 210 of file lcms2_plugin.h.

◆ MAX_INPUT_DIMENSIONS

#define MAX_INPUT_DIMENSIONS   8

Definition at line 289 of file lcms2_plugin.h.

◆ MAX_TYPES_IN_LCMS_PLUGIN

#define MAX_TYPES_IN_LCMS_PLUGIN   20

Definition at line 223 of file lcms2_plugin.h.

◆ VX

set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds VX   0

Definition at line 66 of file lcms2_plugin.h.

◆ VY

#define VY   1

Definition at line 67 of file lcms2_plugin.h.

◆ VZ

#define VZ   2

Definition at line 68 of file lcms2_plugin.h.

Typedef Documentation

◆ _cmsCallocFnPtrType

typedef void*(* _cmsCallocFnPtrType) (cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size)

Definition at line 234 of file lcms2_plugin.h.

◆ _cmsCreateMutexFnPtrType

typedef void*(* _cmsCreateMutexFnPtrType) (cmsContext ContextID)

Definition at line 643 of file lcms2_plugin.h.

◆ _cmsDestroyMutexFnPtrType

typedef void(* _cmsDestroyMutexFnPtrType) (cmsContext ContextID, void *mtx)

Definition at line 644 of file lcms2_plugin.h.

◆ _cmsDupFnPtrType

typedef void*(* _cmsDupFnPtrType) (cmsContext ContextID, const void *Org, cmsUInt32Number size)

Definition at line 235 of file lcms2_plugin.h.

◆ _cmsDupUserDataFn

typedef void*(* _cmsDupUserDataFn) (cmsContext ContextID, const void *Data)

Definition at line 194 of file lcms2_plugin.h.

◆ _cmsFreeFnPtrType

typedef void(* _cmsFreeFnPtrType) (cmsContext ContextID, void *Ptr)

Definition at line 230 of file lcms2_plugin.h.

◆ _cmsFreeUserDataFn

typedef void(* _cmsFreeUserDataFn) (cmsContext ContextID, void *Data)

Definition at line 193 of file lcms2_plugin.h.

◆ _cmsInterpFn16

typedef void(* _cmsInterpFn16) (register const cmsUInt16Number Input[], register cmsUInt16Number Output[], register const struct _cms_interp_struc *p)

Definition at line 264 of file lcms2_plugin.h.

◆ _cmsInterpFnFloat

typedef void(* _cmsInterpFnFloat) (cmsFloat32Number const Input[], cmsFloat32Number Output[], const struct _cms_interp_struc *p)

Definition at line 271 of file lcms2_plugin.h.

◆ _cmsLockMutexFnPtrType

typedef cmsBool(* _cmsLockMutexFnPtrType) (cmsContext ContextID, void *mtx)

Definition at line 645 of file lcms2_plugin.h.

◆ _cmsMallocFnPtrType

typedef void*(* _cmsMallocFnPtrType) (cmsContext ContextID, cmsUInt32Number size)

Definition at line 229 of file lcms2_plugin.h.

◆ _cmsMalloZerocFnPtrType

typedef void*(* _cmsMalloZerocFnPtrType) (cmsContext ContextID, cmsUInt32Number size)

Definition at line 233 of file lcms2_plugin.h.

◆ _cmsOPTeval16Fn

typedef void(* _cmsOPTeval16Fn) (register const cmsUInt16Number In[], register cmsUInt16Number Out[], register const void *Data)

Definition at line 550 of file lcms2_plugin.h.

◆ _cmsOPToptimizeFn

typedef cmsBool(* _cmsOPToptimizeFn) (cmsPipeline **Lut, cmsUInt32Number Intent, cmsUInt32Number *InputFormat, cmsUInt32Number *OutputFormat, cmsUInt32Number *dwFlags)

Definition at line 555 of file lcms2_plugin.h.

◆ _cmsReallocFnPtrType

typedef void*(* _cmsReallocFnPtrType) (cmsContext ContextID, void *Ptr, cmsUInt32Number NewSize)

Definition at line 231 of file lcms2_plugin.h.

◆ _cmsStageDupElemFn

typedef void*(* _cmsStageDupElemFn) (cmsStage *mpe)

Definition at line 492 of file lcms2_plugin.h.

◆ _cmsStageEvalFn

typedef void(* _cmsStageEvalFn) (const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsStage *mpe)

Definition at line 491 of file lcms2_plugin.h.

◆ _cmsStageFreeElemFn

typedef void(* _cmsStageFreeElemFn) (cmsStage *mpe)

Definition at line 493 of file lcms2_plugin.h.

◆ _cmsTransform2Factory

typedef cmsBool(* _cmsTransform2Factory) (_cmsTransform2Fn *xform, void **UserData, _cmsFreeUserDataFn *FreePrivateDataFn, cmsPipeline **Lut, cmsUInt32Number *InputFormat, cmsUInt32Number *OutputFormat, cmsUInt32Number *dwFlags)

Definition at line 611 of file lcms2_plugin.h.

◆ _cmsTransform2Fn

typedef void(* _cmsTransform2Fn) (struct _cmstransform_struct *CMMcargo, const void *InputBuffer, void *OutputBuffer, cmsUInt32Number PixelsPerLine, cmsUInt32Number LineCount, const cmsStride *Stride)

Definition at line 596 of file lcms2_plugin.h.

◆ _cmsTransformFactory

typedef cmsBool(* _cmsTransformFactory) (_cmsTransformFn *xform, void **UserData, _cmsFreeUserDataFn *FreePrivateDataFn, cmsPipeline **Lut, cmsUInt32Number *InputFormat, cmsUInt32Number *OutputFormat, cmsUInt32Number *dwFlags)

Definition at line 603 of file lcms2_plugin.h.

◆ _cmsTransformFn

typedef void(* _cmsTransformFn) (struct _cmstransform_struct *CMMcargo, const void *InputBuffer, void *OutputBuffer, cmsUInt32Number Size, cmsUInt32Number Stride)

Definition at line 589 of file lcms2_plugin.h.

◆ _cmsUnlockMutexFnPtrType

typedef void(* _cmsUnlockMutexFnPtrType) (cmsContext ContextID, void *mtx)

Definition at line 646 of file lcms2_plugin.h.

◆ cmsFormatter16

typedef cmsUInt8Number*(* cmsFormatter16) (register struct _cmstransform_struct *CMMcargo, register cmsUInt16Number Values[], register cmsUInt8Number *Buffer, register cmsUInt32Number Stride)

Definition at line 349 of file lcms2_plugin.h.

◆ cmsFormatterFactory

typedef cmsFormatter(* cmsFormatterFactory) (cmsUInt32Number Type, cmsFormatterDirection Dir, cmsUInt32Number dwFlags)

Definition at line 371 of file lcms2_plugin.h.

◆ cmsFormatterFloat

typedef cmsUInt8Number*(* cmsFormatterFloat) (struct _cmstransform_struct *CMMcargo, cmsFloat32Number Values[], cmsUInt8Number *Buffer, cmsUInt32Number Stride)

Definition at line 354 of file lcms2_plugin.h.

◆ cmsIntentFn

typedef cmsPipeline*(* cmsIntentFn) (cmsContext ContextID, cmsUInt32Number nProfiles, cmsUInt32Number Intents[], cmsHPROFILE hProfiles[], cmsBool BPC[], cmsFloat64Number AdaptationStates[], cmsUInt32Number dwFlags)

Definition at line 458 of file lcms2_plugin.h.

◆ cmsInterpFnFactory

typedef cmsInterpFunction(* cmsInterpFnFactory) (cmsUInt32Number nInputChannels, cmsUInt32Number nOutputChannels, cmsUInt32Number dwFlags)

Definition at line 312 of file lcms2_plugin.h.

◆ cmsInterpParams

◆ cmsParametricCurveEvaluator

typedef cmsFloat64Number(* cmsParametricCurveEvaluator) (cmsInt32Number Type, const cmsFloat64Number Params[10], cmsFloat64Number R)

Definition at line 328 of file lcms2_plugin.h.

◆ cmsPluginBase

◆ cmsTagTypeHandler

Enumeration Type Documentation

◆ cmsFormatterDirection

Enumerator
cmsFormatterInput 
cmsFormatterOutput 

Definition at line 369 of file lcms2_plugin.h.

Function Documentation

◆ _cms15Fixed16toDouble()

cmsFloat64Number _cms15Fixed16toDouble ( cmsS15Fixed16Number  fix32)

Definition at line 378 of file cmsplugin.c.

References abs, and sign.

Referenced by _cmsRead15Fixed16Number(), _cmsReadXYZNumber(), and XYZ2float().

◆ _cms8Fixed8toDouble()

cmsFloat64Number _cms8Fixed8toDouble ( cmsUInt16Number  fixed8)

Definition at line 361 of file cmsplugin.c.

Referenced by Type_Curve_Read().

◆ _cmsAdjustEndianess16()

◆ _cmsAdjustEndianess32()

◆ _cmsAdjustEndianess64()

void _cmsAdjustEndianess64 ( cmsUInt64Number Result,
cmsUInt64Number QWord 
)

Definition at line 79 of file cmsplugin.c.

References _cmsAssert, and NULL.

Referenced by _cmsReadHeader(), _cmsReadUInt64Number(), _cmsWriteHeader(), and _cmsWriteUInt64Number().

◆ _cmsCalloc()

◆ _cmsCreateMutex()

void* _cmsCreateMutex ( cmsContext  ContextID)

Definition at line 627 of file cmserr.c.

References _cmsContextGetClientChunk(), MutexPlugin, NULL, and ptr.

Referenced by cmsCreateProfilePlaceholder().

◆ _cmsDecodeDateTimeNumber()

void _cmsDecodeDateTimeNumber ( const cmsDateTimeNumber Source,
struct tm Dest 
)

Definition at line 403 of file cmsplugin.c.

References _cmsAdjustEndianess16(), _cmsAssert, and NULL.

Referenced by _cmsReadHeader(), and Type_DateTime_Read().

◆ _cmsDefaultICCintents()

cmsPipeline* _cmsDefaultICCintents ( cmsContext  ContextID,
cmsUInt32Number  nProfiles,
cmsUInt32Number  Intents[],
cmsHPROFILE  hProfiles[],
cmsBool  BPC[],
cmsFloat64Number  AdaptationStates[],
cmsUInt32Number  dwFlags 
)

Definition at line 655 of file cmscnvrt.c.

References DefaultICCintents().

◆ _cmsDestroyMutex()

void _cmsDestroyMutex ( cmsContext  ContextID,
void mtx 
)

Definition at line 636 of file cmserr.c.

References _cmsContextGetClientChunk(), MutexPlugin, NULL, and ptr.

Referenced by cmsCloseProfile().

◆ _cmsDoubleTo15Fixed16()

cmsS15Fixed16Number _cmsDoubleTo15Fixed16 ( cmsFloat64Number  v)

◆ _cmsDoubleTo8Fixed8()

cmsUInt16Number _cmsDoubleTo8Fixed8 ( cmsFloat64Number  val)

Definition at line 371 of file cmsplugin.c.

References _cmsDoubleTo15Fixed16().

Referenced by Type_Curve_Write().

◆ _cmsDupMem()

◆ _cmsEncodeDateTimeNumber()

◆ _cmsFree()

void _cmsFree ( cmsContext  ContextID,
void Ptr 
)

Definition at line 292 of file cmserr.c.

References _cmsContextGetClientChunk(), MemPlugin, NULL, and ptr.

Referenced by _cmsComputeInterpParamsEx(), _cmsCreateSubAlloc(), _cmsCreateSubAllocChunk(), _cmsDeleteTagByPos(), _cmsFreeInterpParams(), _cmsSubAllocDestroy(), AllocateToneCurveStruct(), AllocBigBlock(), AllocElem(), CLUTElemDup(), CLutElemTypeFree(), cmsAllocProfileSequenceDescription(), cmsCIECAM02Done(), cmsCloseProfile(), cmsDeleteContext(), cmsDeleteTransform(), cmsDictFree(), cmsFreeNamedColorList(), cmsFreeProfileSequenceDescription(), cmsFreeToneCurve(), cmsGBDFree(), cmsIT8Free(), cmsIT8LoadFromMem(), cmsJoinToneCurve(), cmsMD5computeID(), cmsMD5finish(), cmsMLUalloc(), cmsMLUfree(), cmsMLUsetASCII(), cmsOpenIOhandlerFromFile(), cmsOpenIOhandlerFromMem(), cmsOpenIOhandlerFromNULL(), cmsPipelineAlloc(), cmsPipelineDup(), cmsPipelineFree(), cmsSmoothToneCurve(), cmsStageFree(), ComputeKToLstar(), CurvesAlloc(), CurveSetDup(), CurveSetElemTypeFree(), CurvesFree(), defMtxDestroy(), FileClose(), FreeElem(), FreeMatShaper(), GrowNamedColorList(), MatrixElemTypeFree(), MemoryClose(), NULLClose(), OptimizeByJoiningCurves(), Prelin8free(), PrelinOpt16free(), Read8bitTables(), ReadCountAndSting(), ReadOneWChar(), ReadPositionTable(), ReadSegmentedCurve(), SaveTags(), smooth2(), Type_Chromaticity_Free(), Type_Chromaticity_Read(), Type_ColorantOrderType_Free(), Type_ColorantOrderType_Read(), Type_Data_Free(), Type_Data_Read(), Type_DateTime_Free(), Type_Dictionary_Read(), Type_LUT16_Read(), Type_LUT8_Read(), Type_Measurement_Free(), Type_MPE_Write(), Type_MPEcurve_Read(), Type_MPEmatrix_Read(), Type_S15Fixed16_Free(), Type_S15Fixed16_Read(), Type_Screening_Free(), Type_Screening_Read(), Type_Signature_Free(), Type_Text_Description_Read(), Type_Text_Description_Write(), Type_Text_Read(), Type_Text_Write(), Type_U16Fixed16_Free(), Type_U16Fixed16_Read(), Type_UcrBg_Free(), Type_UcrBg_Read(), Type_UcrBg_Write(), Type_vcgt_Free(), Type_vcgt_Read(), Type_ViewingConditions_Free(), Type_ViewingConditions_Read(), Type_XYZ_Free(), Type_XYZ_Read(), WriteCountAndSting(), and WritePositionTable().

◆ _cmsGetTransformFormatters16()

void _cmsGetTransformFormatters16 ( struct _cmstransform_struct CMMcargo,
cmsFormatter16 FromInput,
cmsFormatter16 ToOutput 
)

◆ _cmsGetTransformFormattersFloat()

void _cmsGetTransformFormattersFloat ( struct _cmstransform_struct CMMcargo,
cmsFormatterFloat FromInput,
cmsFormatterFloat ToOutput 
)

◆ _cmsGetTransformUserData()

void* _cmsGetTransformUserData ( struct _cmstransform_struct CMMcargo)

Definition at line 756 of file cmsxform.c.

References _cmsAssert, NULL, and _cmstransform_struct::UserData.

◆ _cmsIOPrintf()

◆ _cmsLockMutex()

cmsBool _cmsLockMutex ( cmsContext  ContextID,
void mtx 
)

◆ _cmsMalloc()

◆ _cmsMallocZero()

◆ _cmsMAT3eval()

void _cmsMAT3eval ( cmsVEC3 r,
const cmsMAT3 a,
const cmsVEC3 v 
)

Definition at line 169 of file cmsmtrx.c.

References a, r, v, VX, VY, and VZ.

Referenced by _cmsBuildRGB2XYZtransferMatrix(), _cmsMAT3solve(), CHAD2Temp(), cmsAdaptToIlluminant(), and ComputeChromaticAdaptation().

◆ _cmsMAT3identity()

◆ _cmsMAT3inverse()

◆ _cmsMAT3isIdentity()

cmsBool _cmsMAT3isIdentity ( const cmsMAT3 a)

◆ _cmsMAT3per()

void _cmsMAT3per ( cmsMAT3 r,
const cmsMAT3 a,
const cmsMAT3 b 
)

◆ _cmsMAT3solve()

cmsBool _cmsMAT3solve ( cmsVEC3 x,
cmsMAT3 a,
cmsVEC3 b 
)

◆ _cmsPipelineSetOptimizationParameters()

◆ _cmsRead15Fixed16Number()

◆ _cmsReadAlignment()

cmsBool _cmsReadAlignment ( cmsIOHANDLER io)

Definition at line 458 of file cmsplugin.c.

References _cmsALIGNLONG, _cmsAssert, FALSE, NULL, and TRUE.

Referenced by ReadSetOfCurves().

◆ _cmsReadFloat32Number()

cmsBool _cmsReadFloat32Number ( cmsIOHANDLER io,
cmsFloat32Number n 
)

Definition at line 169 of file cmsplugin.c.

References _cmsAdjustEndianess32(), _cmsAssert, E, FALSE, n, NULL, and TRUE.

Referenced by ReadSegmentedCurve(), Type_MPEclut_Read(), and Type_MPEmatrix_Read().

◆ _cmsReadTypeBase()

cmsTagTypeSignature _cmsReadTypeBase ( cmsIOHANDLER io)

Definition at line 434 of file cmsplugin.c.

References _cmsAdjustEndianess32(), _cmsAssert, Base, and NULL.

Referenced by cmsReadTag(), ReadEmbeddedCurve(), and ReadEmbeddedText().

◆ _cmsReadUInt16Array()

◆ _cmsReadUInt16Number()

◆ _cmsReadUInt32Number()

◆ _cmsReadUInt64Number()

cmsBool _cmsReadUInt64Number ( cmsIOHANDLER io,
cmsUInt64Number n 
)

Definition at line 203 of file cmsplugin.c.

References _cmsAdjustEndianess64(), _cmsAssert, FALSE, n, NULL, and TRUE.

Referenced by Type_ProfileSequenceDesc_Read().

◆ _cmsReadUInt8Number()

cmsBool _cmsReadUInt8Number ( cmsIOHANDLER io,
cmsUInt8Number n 
)

◆ _cmsReadXYZNumber()

◆ _cmsRealloc()

void* _cmsRealloc ( cmsContext  ContextID,
void Ptr,
cmsUInt32Number  NewSize 
)

Definition at line 285 of file cmserr.c.

References _cmsContextGetClientChunk(), MemPlugin, ptr, and size.

Referenced by GrowMLUpool(), GrowMLUtable(), and GrowNamedColorList().

◆ _cmsSetTransformUserData()

void _cmsSetTransformUserData ( struct _cmstransform_struct CMMcargo,
void ptr,
_cmsFreeUserDataFn  FreePrivateDataFn 
)

◆ _cmsStageAllocPlaceholder()

◆ _cmsUnlockMutex()

void _cmsUnlockMutex ( cmsContext  ContextID,
void mtx 
)

◆ _cmsVEC3cross()

void _cmsVEC3cross ( cmsVEC3 r,
const cmsVEC3 u,
const cmsVEC3 v 
)

Definition at line 50 of file cmsmtrx.c.

References r, u, v, VX, VY, and VZ.

◆ _cmsVEC3distance()

cmsFloat64Number _cmsVEC3distance ( const cmsVEC3 a,
const cmsVEC3 b 
)

Definition at line 72 of file cmsmtrx.c.

References a, b, d1, sqrt(), VX, VY, and VZ.

◆ _cmsVEC3dot()

cmsFloat64Number _cmsVEC3dot ( const cmsVEC3 u,
const cmsVEC3 v 
)

Definition at line 58 of file cmsmtrx.c.

References u, v, VX, VY, and VZ.

Referenced by ClosestLineToLine().

◆ _cmsVEC3init()

◆ _cmsVEC3length()

cmsFloat64Number _cmsVEC3length ( const cmsVEC3 a)

Definition at line 64 of file cmsmtrx.c.

References a, n, sqrt(), VX, VY, and VZ.

◆ _cmsVEC3minus()

void _cmsVEC3minus ( cmsVEC3 r,
const cmsVEC3 a,
const cmsVEC3 b 
)

Definition at line 42 of file cmsmtrx.c.

References a, b, n, r, VX, VY, and VZ.

Referenced by ClosestLineToLine().

◆ _cmsWrite15Fixed16Number()

◆ _cmsWriteAlignment()

cmsBool _cmsWriteAlignment ( cmsIOHANDLER io)

Definition at line 475 of file cmsplugin.c.

References _cmsALIGNLONG, _cmsAssert, FALSE, memset(), NULL, and TRUE.

Referenced by SaveTags(), Type_MPE_Write(), WriteCLUT(), and WriteSetOfCurves().

◆ _cmsWriteFloat32Number()

cmsBool _cmsWriteFloat32Number ( cmsIOHANDLER io,
cmsFloat32Number  n 
)

◆ _cmsWriteTypeBase()

cmsBool _cmsWriteTypeBase ( cmsIOHANDLER io,
cmsTagTypeSignature  sig 
)

Definition at line 447 of file cmsplugin.c.

References _cmsAdjustEndianess32(), _cmsAssert, Base, memset(), and NULL.

Referenced by cmsReadRawTag(), SaveDescription(), SaveTags(), and WriteSetOfCurves().

◆ _cmsWriteUInt16Array()

◆ _cmsWriteUInt16Number()

◆ _cmsWriteUInt32Number()

◆ _cmsWriteUInt64Number()

cmsBool _cmsWriteUInt64Number ( cmsIOHANDLER io,
cmsUInt64Number n 
)

Definition at line 320 of file cmsplugin.c.

References _cmsAdjustEndianess64(), _cmsAssert, FALSE, n, NULL, and TRUE.

Referenced by Type_ProfileSequenceDesc_Write().

◆ _cmsWriteUInt8Number()

◆ _cmsWriteXYZNumber()

◆ cmsMD5add()

void cmsMD5add ( cmsHANDLE  Handle,
const cmsUInt8Number buf,
cmsUInt32Number  len 
)

Definition at line 172 of file cmsmd5.c.

References _cmsMD5::bits, buf, _cmsMD5::buf, byteReverse, cmsMD5_Transform(), Handle, if, _cmsMD5::in, len, memmove, p, and t.

Referenced by cmsMD5computeID().

◆ cmsMD5alloc()

cmsHANDLE cmsMD5alloc ( cmsContext  ContextID)

Definition at line 154 of file cmsmd5.c.

References _cmsMallocZero(), _cmsMD5::bits, _cmsMD5::buf, _cmsMD5::ContextID, and NULL.

Referenced by cmsMD5computeID().

◆ cmsMD5finish()

void cmsMD5finish ( cmsProfileID ProfileID,
cmsHANDLE  Handle 
)

◆ cmsSignalError()

void cmsSignalError ( cmsContext  ContextID,
cmsUInt32Number  ErrorCode,
const char *  ErrorText,
  ... 
)

Definition at line 509 of file cmserr.c.

References _cmsContextGetClientChunk(), args, _cmsLogErrorChunkType::LogErrorHandler, MAX_ERROR_MESSAGE_LEN, va_end, va_start, and vsnprintf.

Referenced by _cmsComputeInterpParamsEx(), _cmsContextGetClientChunk(), _cmsCreateGamutCheckPipeline(), _cmsGetFormatterAlpha(), _cmsLinkProfiles(), _cmsNewTag(), _cmsPluginMalloc(), _cmsReadHeader(), AllocateToneCurveStruct(), AllocEmptyTransform(), cmsBuildParametricToneCurve(), cmsChangeBuffersFormat(), cmsCreateExtendedTransform(), cmsCreateInkLimitingDeviceLinkTHR(), cmsCreateMultiprofileTransform(), cmsCreateMultiprofileTransformTHR(), cmsDesaturateLab(), cmsIsCLUT(), cmsOpenIOhandlerFromFile(), cmsOpenIOhandlerFromMem(), cmsOpenIOhandlerFromStream(), cmsPluginTHR(), cmsReadTag(), cmsSmoothToneCurve(), cmsStageAllocCLut16bitGranular(), cmsStageAllocCLutFloatGranular(), cmsWhitePointFromTemp(), cmsWriteTag(), DefaultICCintents(), EvalNamedColor(), EvalNamedColorPCS(), FileRead(), FileSeek(), FileTell(), GenerateCSA(), GetPoint(), IsMyFile(), MemoryRead(), MemorySeek(), PatchLUT(), ReadCLUT(), ReadEmbeddedCurve(), ReadMPEElem(), ReadSegmentedCurve(), SaveTags(), SynError(), Type_ColorantTable_Read(), Type_Dictionary_Read(), Type_LUT16_Write(), Type_LUT8_Write(), Type_LUTA2B_Write(), Type_LUTB2A_Write(), Type_MLU_Read(), Type_MPE_Write(), Type_NamedColor_Read(), Type_ParametricCurve_Read(), Type_ParametricCurve_Write(), Type_vcgt_Read(), Write8bitTables(), WriteCLUT(), WriteInputLUT(), WriteInputMatrixShaper(), WriteOutputLUT(), WriteSetOfCurves(), and WriteStr().