#include "General.h"
#include "CalcEng.h"
#include "CalcEng1.h"
#include "CalcNDim.h"
#include "Runtime.h"
#include <string.h>
Go to the source code of this file.
Classes | |
struct | ColorSpaceInfo |
Defines | |
#define | kProgressTicks 30 /* .5secs -> min. time between calls of progressproc */ |
#define | kMaxTempBlock 300 * 1024 /* allow max. 300 kByte temp buffer */ |
#define | NewCalcProc(userRoutine) ((CalcProcUPP) (userRoutine)) |
#define | NewCalcProc1Dim(userRoutine) ((CalcProc1DimUPP) (userRoutine)) |
#define | CallCalcProc(userRoutine, calcParamPtr, lutParamPtr) (*(userRoutine))( (calcParamPtr), (lutParamPtr) ) |
#define | Byte_Factor 1 |
#define | POS(x) ((x) > (0) ? (UINT32)(x) : (UINT32)(-(x))) |
Typedefs | |
typedef ColorSpaceInfo | ColorSpaceInfo |
typedef CMError(* | CalcProcPtr )(CMCalcParamPtr calcParamPtr, CMLutParamPtr lutParamPtr) |
typedef CalcProcPtr | CalcProcUPP |
typedef CMError(* | CalcProc1DimPtr )(CMCalcParamPtr calcParamPtr, CMLutParamPtr lutParamPtr, char OutDim) |
typedef CalcProc1DimPtr | CalcProc1DimUPP |
Functions | |
OSErr | Convert5To8 (Ptr dataPtr5, Ptr dataPtr8, SINT32 startLine, SINT32 height, SINT32 width, SINT32 rowBytes5) |
OSErr | Convert8To5 (Ptr dataPtr8, Ptr dataPtr5, SINT32 startLine, SINT32 height, SINT32 width, SINT32 rowBytes5) |
OSErr | Convert8To1 (Ptr dataPtr8, Ptr dataPtr5, SINT32 startLine, SINT32 height, SINT32 width, SINT32 rowBytes5) |
OSErr | Convert16To10 (Ptr dataPtr16, Ptr dataPtr10, SINT32 startLine, SINT32 height, SINT32 width, SINT32 rowBytes10) |
OSErr | Convert10To16 (Ptr dataPtr10, Ptr dataPtr16, SINT32 startLine, SINT32 height, SINT32 width, SINT32 rowBytes10) |
CMError | FillLutParam (CMLutParamPtr lutParam, CMMModelPtr modelingData) |
CMError | FillLutParamChk (CMLutParamPtr lutParam, CMMModelPtr modelingData) |
CMError | FillCalcParam (CMCalcParamPtr calcParam, const CMBitmap *bitMap, const CMBitmap *matchedBitMap) |
CMError | FillCalcParamCM (CMCalcParamPtr calcParam, CMLutParamPtr lutParam, CMColor *myColors, SINT32 count) |
CMError | CheckInputColorSpace (const CMBitmap *bitMap, CMCalcParamPtr calcParam, ColorSpaceInfo *info, OSType inColorSpace, long colorLutInDim) |
CMError | CheckOutputColorSpace (const CMBitmap *bitMap, CMCalcParamPtr calcParam, ColorSpaceInfo *info, OSType outColorSpace, long colorLutOutDim) |
CMError | SetOutputColorSpaceInplace (CMCalcParamPtr calcParam, ColorSpaceInfo *info, OSType outColorSpace) |
CMError | CheckOutputColorSpaceChk (const CMBitmap *bitMap, CMCalcParamPtr calcParam, ColorSpaceInfo *info) |
CMError | AllocBufferCheckCM (CMCalcParamPtr calcParam, ColorSpaceInfo *info) |
CalcProcPtr | FindLookupRoutine (const CMLutParam *lutParam, const ColorSpaceInfo *info) |
CalcProcPtr | FindCalcRoutine (const CMCalcParam *calcParam, const CMLutParam *lutParam, const ColorSpaceInfo *info, const Boolean lookupOnly) |
CMError | Do8To555Setup (CMCalcParamPtr calcParam, ColorSpaceInfo *info, SINT32 *theLinesAtOnce, long reverseOrder) |
CMError | Do555To8Setup (CMCalcParamPtr calcParam, ColorSpaceInfo *info, SINT32 *theLinesAtOnce, long reverseOrder) |
CMError | LHMatchColorsPrivate (CMMModelPtr modelingData, CMColor *myColors, SINT32 count) |
CMError | LHCheckColorsPrivateMS (CMMModelPtr modelingData, CMColor *myColors, UINT32 count, UINT8 *result) |
CMError | LHCheckColorsPrivate (CMMModelPtr modelingData, CMColor *myColors, UINT32 count, UINT8 *result) |
void | CopyIndexData (CMBitmap *bitMapIn, CMBitmap *bitMapOut, ColorSpaceInfo *info) |
CMError | LHMatchBitMapPrivate (CMMModelPtr modelingData, const CMBitmap *inBitMap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *outBitMap) |
CMError | LHCheckBitMapPrivate (CMMModelPtr modelingData, const CMBitmap *inBitMap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *outBitMap) |
CMError | LHMatchBitMapPlanePrivate (CMMModelPtr modelingData, const LH_CMBitmapPlane *bitMapLH, CMBitmapCallBackUPP progressProc, void *refCon, LH_CMBitmapPlane *matchedBitMapLH) |
OSErr | ConvertNamedIndexToColors (CMMModelPtr modelingData, CMColor *theData, SINT32 pixCnt) |
OSErr | ConvertNamedIndexToPCS (CMMModelPtr cw, CMColor *theData, SINT32 pixCnt) |
OSErr | ConvertPCSToNamedIndex (CMMModelPtr modelingData, CMColor *theData, SINT32 pixCnt) |
CMError | CMConvertNamedIndexToColors (CMWorldRef cw, CMColor *theData, unsigned long pixCnt) |
CMError | CMConvertNamedIndexToPCS (CMWorldRef cw, CMColor *theData, unsigned long pixCnt) |
CMError | ConvertLabToIndexBitmap (CMMModelPtr modelingData, Ptr InBuffer, UINT32 processedLinesIn, UINT32 inLineCount, UINT32 width, UINT32 rowBytes) |
CMError | ConvertIndexToLabBitmap (CMMModelPtr modelingData, Ptr InBuffer, Ptr OutBuffer, UINT32 processedLinesIn, UINT32 lineCount, UINT32 inWidth, UINT32 inRowBytes, UINT32 outRowBytes, UINT32 outputSize) |
CMError | CMConvNameToIndex (icNamedColor2Type *Data, pcCMColorName Ptr2Name, unsigned long *Arr2Indices, unsigned long count) |
CMError | CMConvNameToIndexCW (CMWorldRef *Storage, pcCMColorName Ptr2Name, unsigned long *Arr2Indices, unsigned long count) |
CMError | CMConvNameToIndexProfile (CMProfileRef aProf, pcCMColorName Ptr2Name, unsigned long *Arr2Indices, unsigned long count) |
CMError | CMConvIndexToName (icNamedColor2Type *Data, unsigned long *Arr2Indices, pCMColorName Ptr2Name, unsigned long count) |
CMError | CMConvIndexToNameCW (CMWorldRef *Storage, unsigned long *Arr2Indices, pCMColorName Ptr2Name, unsigned long count) |
CMError | CMConvIndexToNameProfile (CMProfileRef aProf, unsigned long *Arr2Indices, pCMColorName Ptr2Name, unsigned long count) |
CMError | CMGetNamedProfileInfoProfile (CMProfileRef aProf, pCMNamedProfileInfo Info) |
CMError | CMGetNamedProfileInfoCW (CMWorldRef *Storage, pCMNamedProfileInfo Info) |
|
Definition at line 625 of file w98/lh_core/runtime.c. |
|
Definition at line 78 of file w98/lh_core/runtime.c. |
|
Definition at line 63 of file w98/lh_core/runtime.c. |
|
Definition at line 62 of file w98/lh_core/runtime.c. |
|
Definition at line 74 of file w98/lh_core/runtime.c. |
|
Definition at line 76 of file w98/lh_core/runtime.c. |
|
Definition at line 4762 of file w98/lh_core/runtime.c. |
|
Definition at line 70 of file w98/lh_core/runtime.c. |
|
Definition at line 73 of file w98/lh_core/runtime.c. |
|
Definition at line 66 of file w98/lh_core/runtime.c. |
|
Definition at line 69 of file w98/lh_core/runtime.c. |
|
|
|
Referenced by LHCheckColorsPrivate(). |
|
Referenced by LHCheckBitMapPrivate(), LHMatchBitMapPlanePrivate(), and LHMatchBitMapPrivate(). |
|
Referenced by LHMatchBitMapPlanePrivate(), and LHMatchBitMapPrivate(). |
|
Referenced by LHCheckBitMapPrivate(). |
|
|
|
|
|
Referenced by CMConvIndexToNameCW(), and CMConvIndexToNameProfile(). |
|
|
|
|
|
Referenced by CMConvNameToIndexCW(), and CMConvNameToIndexProfile(). |
|
|
|
|
|
|
|
|
|
Referenced by LHCheckBitMapPrivate(), and LHMatchBitMapPrivate(). |
|
Referenced by LHMatchBitMapPrivate(). |
|
Referenced by LHCheckBitMapPrivate(), and LHMatchBitMapPrivate(). |
|
Referenced by LHCheckBitMapPrivate(), and LHCheckColorsPrivate(). |
|
Referenced by LHMatchBitMapPrivate(). |
|
Definition at line 4946 of file w98/lh_core/runtime.c. References CMError, cmNamedColorNotFound, cmparamErr, DATA_2_PTR, LH_END_PROC, LH_START_PROC, LOCK_DATA, LUT_DATA_TYPE, noErr, NULL, OSErr, UINT16, UINT32, UINT8, and UNLOCK_DATA. Referenced by LHCheckBitMapPrivate(), and LHMatchBitMapPrivate().
|
|
Definition at line 4863 of file w98/lh_core/runtime.c. References CMError, cmparamErr, DATA_2_PTR, LH_END_PROC, LH_START_PROC, LOCK_DATA, LUT_DATA_TYPE, noErr, NULL, OSErr, POS, SINT16, UINT16, UINT32, UINT8, and UNLOCK_DATA. Referenced by LHMatchBitMapPrivate().
|
|
Definition at line 4603 of file w98/lh_core/runtime.c. References PI_CMYKCOLOR::black, PI_RGBCOLOR::blue, cmNamedColorNotFound, cmparamErr, CMColor::cmyk, PI_CMYKCOLOR::cyan, DATA_2_PTR, PI_RGBCOLOR::green, LH_END_PROC, LH_START_PROC, LOCK_DATA, LUT_DATA_TYPE, PI_CMYKCOLOR::magenta, CMColor::namedColor, PI_NAMEDCOLOR::namedColorIndex, noErr, NoNamedColorProfile, NULL, OSErr, PI_RGBCOLOR::red, CMColor::rgb, SINT16, UINT16, UINT32, UNLOCK_DATA, and PI_CMYKCOLOR::yellow.
|
|
Definition at line 4688 of file w98/lh_core/runtime.c. References PI_LabCOLOR::a, PI_LabCOLOR::b, CMMModelPtr, cmNamedColorNotFound, cmparamErr, DATA_2_PTR, PI_LabCOLOR::L, CMColor::Lab, LH_END_PROC, LH_START_PROC, LOCK_DATA, LUT_DATA_TYPE, CMColor::namedColor, PI_NAMEDCOLOR::namedColorIndex, noErr, NULL, OSErr, SINT16, UINT16, UINT32, and UNLOCK_DATA. Referenced by CMConvertNamedIndexToPCS(), LHCheckColorsPrivateMS(), and LHMatchColorsPrivate().
|
|
Definition at line 4768 of file w98/lh_core/runtime.c. References PI_LabCOLOR::a, PI_LabCOLOR::b, cmparamErr, DATA_2_PTR, PI_LabCOLOR::L, CMColor::Lab, LH_END_PROC, LH_START_PROC, LOCK_DATA, LUT_DATA_TYPE, CMColor::namedColor, PI_NAMEDCOLOR::namedColorIndex, NamedColorProfileAtEnd, noErr, NULL, OSErr, POS, SINT16, UINT16, UINT32, and UNLOCK_DATA.
|
|
Referenced by LHMatchBitMapPrivate(). |
|
Referenced by CheckInputColorSpace(). |
|
Referenced by CheckOutputColorSpace(). |
|
Referenced by LHCheckBitMapPrivate(), LHMatchBitMapPlanePrivate(), and LHMatchBitMapPrivate(). |
|
Referenced by LHCheckColorsPrivate(), LHCheckColorsPrivateMS(), and LHMatchColorsPrivate(). |
|
Referenced by LHMatchBitMapPlanePrivate(), LHMatchBitMapPrivate(), and LHMatchColorsPrivate(). |
|
Referenced by LHCheckBitMapPrivate(), LHCheckColorsPrivate(), and LHCheckColorsPrivateMS(). |
|
Referenced by LHCheckBitMapPrivate(), LHCheckColorsPrivate(), LHCheckColorsPrivateMS(), LHMatchBitMapPlanePrivate(), LHMatchBitMapPrivate(), and LHMatchColorsPrivate(). |
|
Referenced by FindCalcRoutine(). |
|
Definition at line 4253 of file w98/lh_core/runtime.c. References Boolean, CalcProcPtr, CallCalcProc, CallCMBitmapCallBackProc, CheckInputColorSpace(), CheckOutputColorSpaceChk(), CMError, CMCalcParam::cmInputBytesPerLine, CMCalcParam::cmInputPixelOffset, cmInvalidDstMap, CMCalcParam::cmLineCount, cmMethodError, CMCalcParam::cmOutputBytesPerLine, CMLutParam::colorLutInDim, CMLutParam::colorLutOutDim, Convert10To16(), Convert5To8(), Convert8To1(), ConvertIndexToLabBitmap(), DisposeIfPtr(), FALSE, FillCalcParam(), FillLutParamChk(), FindCalcRoutine(), CMBitmap::height, CMBitmap::image, ColorSpaceInfo::inPlace, CMCalcParam::inputData, kMaxTempBlock, kProgressTicks, LH_END_PROC, LH_START_PROC, LOCK_DATA, NamedColorProfileAtBegin, NamedColorProfileOnly, nil, NoNamedColorProfile, ColorSpaceInfo::origSizeIn, ColorSpaceInfo::origSizeOut, OSType, CMCalcParam::outputData, ColorSpaceInfo::processedLinesIn, Ptr, CMBitmap::rowBytes, SetMem(), SINT32, ColorSpaceInfo::tempInBuffer, ColorSpaceInfo::tempOutBuffer, TickCount(), TRUE, UNLOCK_DATA, userCanceledErr, and CMBitmap::width. Referenced by CWCheckBitmap().
|
|
Definition at line 3871 of file w98/lh_core/runtime.c. References AllocBufferCheckCM(), CalcProcPtr, CallCalcProc, CMError, CMCalcParam::cmLineCount, cmMethodError, Convert8To1(), DisposeIfPtr(), FillCalcParamCM(), FillLutParamChk(), FindCalcRoutine(), ColorSpaceInfo::inPlace, LH_END_PROC, LH_START_PROC, LOCK_DATA, NamedColorProfileAtEnd, NamedColorProfileOnly, nil, ColorSpaceInfo::origSizeIn, ColorSpaceInfo::origSizeOut, ColorSpaceInfo::processedLinesIn, Ptr, SetMem(), ColorSpaceInfo::tempOutBuffer, unimpErr, UNLOCK_DATA, ColorSpaceInfo::usedSizeIn, and ColorSpaceInfo::usedSizeOut.
|
|
Definition at line 3797 of file w98/lh_core/runtime.c. References CalcProcPtr, CallCalcProc, CMError, cmGraySpace8Bit, cmMethodError, CMCalcParam::cmOutputBytesPerLine, CMCalcParam::cmOutputColorSpace, CMCalcParam::cmOutputPixelOffset, ConvertNamedIndexToPCS(), FillCalcParamCM(), FillLutParamChk(), FindCalcRoutine(), ColorSpaceInfo::inPlace, LH_END_PROC, LH_START_PROC, LOCK_DATA, NamedColorProfileAtBegin, NamedColorProfileAtEnd, NamedColorProfileOnly, nil, ColorSpaceInfo::origSizeIn, ColorSpaceInfo::origSizeOut, CMCalcParam::outputData, Ptr, SetMem(), UINT8, unimpErr, UNLOCK_DATA, ColorSpaceInfo::usedSizeIn, and ColorSpaceInfo::usedSizeOut. Referenced by CWCheckColorsMS().
|
|
Definition at line 4464 of file w98/lh_core/runtime.c. References Boolean, CalcProcPtr, CallCalcProc, CallCMBitmapCallBackProc, CheckInputColorSpace(), CheckOutputColorSpace(), cmAlphaSpace, CMError, CMCalcParam::cmInputColorSpace, CMCalcParam::cmInputPixelOffset, cmInvalidDstMap, cmMethodError, CMCalcParam::cmOutputColorSpace, CMCalcParam::cmOutputPixelOffset, CMLutParam::colorLut, CMLutParam::colorLutInDim, CMLutParam::colorLutOutDim, CMCalcParam::copyAlpha, DisposeIfPtr(), LH_CMBitmapPlane::elementOffset, FALSE, FillCalcParam(), FillLutParam(), FindCalcRoutine(), LH_CMBitmapPlane::height, CMBitmap::height, LH_CMBitmapPlane::image, CMBitmap::image, ColorSpaceInfo::inPlace, CMCalcParam::inputData, CMLutParam::inputLut, LH_END_PROC, LH_START_PROC, LOCK_DATA, nil, ColorSpaceInfo::origSizeIn, ColorSpaceInfo::origSizeOut, OSType, CMCalcParam::outputData, CMLutParam::outputLut, LH_CMBitmapPlane::pixelSize, CMBitmap::pixelSize, Ptr, LH_CMBitmapPlane::rowBytes, CMBitmap::rowBytes, SetMem(), SINT32, LH_CMBitmapPlane::space, CMBitmap::space, ColorSpaceInfo::tempInBuffer, ColorSpaceInfo::tempOutBuffer, TRUE, UNLOCK_DATA, LH_CMBitmapPlane::width, and CMBitmap::width. Referenced by CWMatchBitmapPlane().
|
|
Definition at line 3995 of file w98/lh_core/runtime.c. References Boolean, CalcProcPtr, CallCalcProc, CallCMBitmapCallBackProc, CheckInputColorSpace(), CheckOutputColorSpace(), cmAlphaSpace, CMError, CMCalcParam::cmInputBytesPerLine, CMCalcParam::cmInputColorSpace, CMCalcParam::cmInputPixelOffset, cmInvalidDstMap, CMCalcParam::cmLineCount, cmMethodError, CMCalcParam::cmOutputBytesPerLine, CMCalcParam::cmOutputColorSpace, CMCalcParam::cmOutputPixelOffset, CMCalcParam::cmPixelPerLine, CMLutParam::colorLut, CMLutParam::colorLutInDim, CMLutParam::colorLutOutDim, Convert10To16(), Convert16To10(), Convert5To8(), Convert8To5(), ConvertIndexToLabBitmap(), ConvertLabToIndexBitmap(), CMCalcParam::copyAlpha, CopyIndexData(), DisposeIfPtr(), FALSE, FillCalcParam(), FillLutParam(), FindCalcRoutine(), CMBitmap::height, CMBitmap::image, ColorSpaceInfo::inPlace, CMCalcParam::inputData, CMLutParam::inputLut, ColorSpaceInfo::inputPixelSize, kMaxTempBlock, kProgressTicks, LH_END_PROC, LH_START_PROC, LOCK_DATA, NamedColorProfileAtBegin, NamedColorProfileAtEnd, NamedColorProfileOnly, nil, NoNamedColorProfile, ColorSpaceInfo::origSizeIn, ColorSpaceInfo::origSizeOut, OSType, CMCalcParam::outputData, CMLutParam::outputLut, ColorSpaceInfo::outputPixelSize, ColorSpaceInfo::processedLinesIn, Ptr, CMBitmap::rowBytes, SetMem(), SetOutputColorSpaceInplace(), SINT32, CMBitmap::space, ColorSpaceInfo::tempInBuffer, ColorSpaceInfo::tempOutBuffer, TickCount(), TRUE, UNLOCK_DATA, userCanceledErr, and CMBitmap::width. Referenced by CWMatchBitmap().
|
|
Definition at line 3733 of file w98/lh_core/runtime.c. References CalcProcPtr, CallCalcProc, CMError, cmMethodError, CMLutParam::colorLut, ConvertNamedIndexToColors(), ConvertNamedIndexToPCS(), ConvertPCSToNamedIndex(), FillCalcParamCM(), FillLutParam(), FindCalcRoutine(), ColorSpaceInfo::inPlace, CMLutParam::inputLut, LH_END_PROC, LH_START_PROC, LOCK_DATA, NamedColorProfileAtBegin, NamedColorProfileOnly, nil, ColorSpaceInfo::origSizeIn, ColorSpaceInfo::origSizeOut, CMLutParam::outputLut, SetMem(), TRUE, UNLOCK_DATA, ColorSpaceInfo::usedSizeIn, and ColorSpaceInfo::usedSizeOut.
|
|
Referenced by LHMatchBitMapPrivate(). |