#include "Windef.h"
#include "WinGdi.h"
#include <wtypes.h>
#include <winbase.h>
#include <WindowsX.h>
#include "ICM.h"
#include "General.h"
#include "MemProf.h"
Go to the source code of this file.
Defines | |
#define | CMM_WIN_VERSION 0 |
#define | CMM_IDENT 1 |
#define | CMM_DRIVER_LEVEL 2 |
#define | CMM_DLL_VERSION 3 |
#define | CMM_VERSION 4 |
#define | CMS_LEVEL_1 1 |
#define | DllExport __declspec( dllexport ) |
Typedefs | |
typedef HANDLE | HCMTRANSFORM |
typedef LPVOID | LPDEVCHARACTER |
typedef HANDLE * | LPHPROFILE |
typedef LPVOID | LPARGBQUAD |
typedef COLORREF FAR * | LPCOLORREF |
Functions | |
BOOL WINAPI | DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) |
HCMTRANSFORM WINAPI | CMCreateMultiProfileTransform (LPHPROFILE lpahProfiles, DWORD nProfiles, DWORD *aIntentArr, DWORD nIntents, DWORD dwFlags) |
long | FillProfileFromLog (LPLOGCOLORSPACEA lpColorSpace, PPROFILE theProf) |
long | FillProfileFromLogW (LPLOGCOLORSPACEW lpColorSpace, PPROFILE theProf) |
BOOL WINAPI | CMCreateProfile (LPLOGCOLORSPACEA lpColorSpace, LPDEVCHARACTER *lpProfileData) |
CMWorldRef | StoreTransform (CMWorldRef aRef) |
CMBitmapColorSpace | CMGetDataColorSpace (BMFORMAT c, long *pixelSize) |
HCMTRANSFORM WINAPI | CMGetTransform (HCMTRANSFORM hcmTransform) |
long | CMCreateMultiProfileTransformInternal (CMWorldRef *cw, LPHPROFILE lpahProfiles, DWORD nProfiles, DWORD *aIntentArr, DWORD nIntents, DWORD dwFlags, DWORD dwCreateLink) |
DWORD WINAPI | CMGetInfo (DWORD dwInfo) |
long | CMCreateTransformExtInternal (CMWorldRef *cwOut, UINT32 dwFlags, UINT32 lcsIntent, HPROFILE aProf, LPBYTE ptDeRef, LPBYTE pdDeRef) |
void | WriteProf (LPSTR name, icProfile *theProf, long currentSize) |
HCMTRANSFORM WINAPI | CMCreateTransformExt (LPLOGCOLORSPACEA lpColorSpace, LPDEVCHARACTER lpDevCharacter, LPDEVCHARACTER lpTargetDevCharacter, DWORD dwFlags) |
HCMTRANSFORM WINAPI | CMCreateTransform (LPLOGCOLORSPACEA lpColorSpace, LPDEVCHARACTER lpDevCharacter, LPDEVCHARACTER lpTargetDevCharacter) |
HCMTRANSFORM WINAPI | CMCreateTransformExtW (LPLOGCOLORSPACEW lpColorSpace, LPDEVCHARACTER lpDevCharacter, LPDEVCHARACTER lpTargetDevCharacter, DWORD dwFlags) |
HCMTRANSFORM WINAPI | CMCreateTransformW (LPLOGCOLORSPACEW lpColorSpace, LPDEVCHARACTER lpDevCharacter, LPDEVCHARACTER lpTargetDevCharacter) |
BOOL WINAPI | CMDeleteTransform (HCMTRANSFORM hcmTransform) |
BOOL WINAPI | CMCreateProfile (LPLOGCOLORSPACEA lpColorSpace, LPBYTE *lpProfileData) |
BOOL WINAPI | CMCreateProfileW (LPLOGCOLORSPACEW lpColorSpace, LPBYTE *lpProfileData) |
BOOL WINAPI | CMCreateDeviceLinkProfile (LPHPROFILE lpahProfiles, DWORD nProfiles, DWORD *aIntentArr, DWORD nIntents, DWORD dwFlags, LPBYTE *lpProfileData) |
BOOL WINAPI | CMIsProfileValid (HPROFILE hProfile, LPBOOL lpbValid) |
BOOL WINAPI | CMTranslateColors (HCMTRANSFORM hcmTransform, LPCOLOR lpaInputColors, DWORD nColors, COLORTYPE ctInput, LPCOLOR lpaOutputColors, COLORTYPE ctOutput) |
BOOL WINAPI | CMCheckColors (HCMTRANSFORM hcmTransform, LPCOLOR lpaInputColors, DWORD nColors, COLORTYPE ctInput, LPBYTE lpaResult) |
BOOL WINAPI | CMTranslateRGBs (HCMTRANSFORM hcmTransform, LPVOID lpSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwStride, LPVOID lpDestBits, BMFORMAT bmOutput, DWORD dwTranslateDirection) |
BOOL WINAPI | CMTranslateRGBsExt (HCMTRANSFORM hcmTransform, LPVOID lpSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwInputStride, LPVOID lpDestBits, BMFORMAT bmOutput, DWORD dwOutputStride, LPBMCALLBACKFN lpfnCallback, LPARAM ulCallbackData) |
BOOL WINAPI | CMCheckRGBs (HCMTRANSFORM hcmTransform, LPVOID lpSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwStride, LPBYTE lpDestBits, PBMCALLBACKFN pfnCallback, LPARAM ulCallbackData) |
BOOL WINAPI | CMTranslateRGB (HCMTRANSFORM hcmTransform, COLORREF colorRef, LPCOLORREF lpColorRef, DWORD dwFlags) |
BOOL WINAPI | CMCheckColorsInGamut (HCMTRANSFORM hcmTransform, RGBTRIPLE *lpaRGBTriplet, LPBYTE lpBuffer, UINT nCount) |
BOOL WINAPI | CMConvertColorNameToIndex (HPROFILE aProf, LPCOLOR_NAME aColorNameArr, LPDWORD aDWordArr, DWORD count) |
BOOL WINAPI | CMConvertIndexToColorName (HPROFILE aProf, LPDWORD aDWordArr, LPCOLOR_NAME aColorNameArr, DWORD count) |
BOOL WINAPI | CMGetNamedProfileInfo (HPROFILE aProf, LPNAMED_PROFILE_INFO Info) |
Variables | |
long | IndexTransform = 0 |
HCMTRANSFORM | TheTransform [1000] = {0} |
CRITICAL_SECTION | GlobalCriticalSection |
|
Definition at line 31 of file mscmm/icm32.c. Referenced by CMGetInfo(), and GetCMMInfo(). |
|
Definition at line 30 of file mscmm/icm32.c. Referenced by CMGetInfo(). |
|
Definition at line 29 of file mscmm/icm32.c. Referenced by CMGetInfo(), GetCMMInfo(), GetColorMatchingModule(), and ValidColorMatchingModule(). |
|
Definition at line 32 of file mscmm/icm32.c. Referenced by CMGetInfo(), GetColorMatchingModule(), and ValidColorMatchingModule(). |
|
Definition at line 28 of file mscmm/icm32.c. Referenced by CMGetInfo(), and GetCMMInfo(). |
|
Definition at line 33 of file mscmm/icm32.c. |
|
Definition at line 88 of file mscmm/icm32.c. |
|
Definition at line 35 of file mscmm/icm32.c. Referenced by CMCreateMultiProfileTransform(), CMCreateTransform(), CMCreateTransformExt(), CMCreateTransformExtW(), CMCreateTransformW(), CMDeleteTransform(), CMGetTransform(), CMTranslateRGB(), CMTranslateRGBs(), and StoreTransform(). |
|
Definition at line 38 of file mscmm/icm32.c. |
|
Definition at line 39 of file mscmm/icm32.c. |
|
Definition at line 36 of file mscmm/icm32.c. |
|
Definition at line 37 of file mscmm/icm32.c. |
|
Definition at line 1005 of file mscmm/icm32.c. References BOOL, CMGetTransform(), and CWCheckColorsMS().
|
|
Definition at line 1435 of file mscmm/icm32.c. References BOOL, cm8PerChannelPacking, CMBitmapCallBackUPP, CMGetTransform(), cmRGBSpace, CWCheckBitmap(), FALSE, CMBitmap::height, CMBitmap::image, NULL, CMBitmap::pixelSize, CMBitmap::rowBytes, CMBitmap::space, and CMBitmap::width.
|
|
Definition at line 1279 of file mscmm/icm32.c. References BOOL, cm8PerChannelPacking, CMBitmapCallBackUPP, CMBitmapColorSpace, cmGamutResultSpace, CMGetDataColorSpace(), CMGetTransform(), cmGraySpace, cmInvalidColorSpace, CWCheckBitmap(), DWORD, FALSE, CMBitmap::height, CMBitmap::image, CMBitmap::pixelSize, CMBitmap::rowBytes, CMBitmap::space, and CMBitmap::width.
|
|
Definition at line 1787 of file mscmm/icm32.c. References BOOL, CMConvNameToIndexProfile(), and CMError.
|
|
Definition at line 1799 of file mscmm/icm32.c. References BOOL, and CMConvIndexToNameProfile().
|
|
Definition at line 812 of file mscmm/icm32.c. References BOOL, CMConcatProfileSet, CMCreateMultiProfileTransformInternal(), CMMModelPtr, CMProfileRef, CMWorldRef, CMConcatProfileSet::count, CWDisposeColorWorld(), DeviceLinkFill(), DisposeIfPtr(), dwFlags, DWORD, CMConcatProfileSet::keyIndex, OSErr, CMConcatProfileSet::profileSet, Ptr, SmartNewPtrClear(), and UINT32.
|
|
Definition at line 626 of file mscmm/icm32.c. References CMCreateMultiProfileTransformInternal(), CMWorldRef, dwFlags, HCMTRANSFORM, and StoreTransform().
|
|
Definition at line 516 of file mscmm/icm32.c. References cmBestMode, CMConcatProfileSet, cmDraftMode, cmNormalMode, CMProfileRef, CMConcatProfileSet::count, CWConcatColorWorld4MS(), DisposeIfPtr(), dwFlags, DWORD, icAbsoluteColorimetric, icPerceptual, icRelativeColorimetric, kCreateGamutLutMask, CMConcatProfileSet::keyIndex, kLookupOnlyMask, kUseRelColorimetric, MyNewDeviceLink(), OSErr, CMConcatProfileSet::profileSet, Ptr, SmartNewPtrClear(), and UINT32.
|
|
Definition at line 712 of file mscmm/icm32.c. References BOOL, CMWorldRef, and MyNewAbstract(). Referenced by CMCreateTransformExt().
|
|
|
|
Definition at line 751 of file mscmm/icm32.c. References BOOL, CMWorldRef, and MyNewAbstractW().
|
|
Definition at line 410 of file mscmm/icm32.c. References CMCreateTransformExt(), and HCMTRANSFORM.
|
|
Definition at line 282 of file mscmm/icm32.c. References BOOL, CloseColorProfile(), CMCreateProfile(), CMCreateTransformExtInternal(), CMWorldRef, dwFlags, DWORD, FillProfileFromLog(), HCMTRANSFORM, OPEN_EXISTING, pd, and WriteProf().
|
|
Definition at line 167 of file mscmm/icm32.c. References CloseColorProfile(), CMCreateMultiProfileTransformInternal(), CMMModelPtr, CMWorldRef, CWDisposeColorWorld(), DATA_2_PTR, dwFlags, icAbsoluteColorimetric, icPerceptual, icRelativeColorimetric, icSaturation, LCS_GM_BUSINESS, LCS_GM_GRAPHICS, LOCK_DATA, StoreTransform(), UINT32, and UNLOCK_DATA.
|
|
Definition at line 446 of file mscmm/icm32.c. References CMCreateTransformExtInternal(), CMWorldRef, dwFlags, FillProfileFromLogW(), HCMTRANSFORM, OPEN_EXISTING, OpenColorProfileW(), and pd.
|
|
Definition at line 509 of file mscmm/icm32.c. References CMCreateTransformExtW(), and HCMTRANSFORM.
|
|
Definition at line 658 of file mscmm/icm32.c. References BOOL, CMMModelPtr, CMWorldRef, CWDisposeColorWorld(), DATA_2_PTR, GlobalCriticalSection, HCMTRANSFORM, IndexTransform, LOCK_DATA, NULL, TheTransform, and UNLOCK_DATA.
|
|
Definition at line 1557 of file mscmm/icm32.c. References cm16PerChannelPacking, cm8PerChannelPacking, cmBGR32Space, cmBGRSpace, CMBitmapColorSpace, cmCMYKSpace, cmGenericSpace, cmGraySpace, cmKYMCSpace, cmLABSpace, cmLong10ColorPacking, cmLong8ColorPacking, cmMCEight8Space, cmMCFive8Space, cmMCSeven8Space, cmMCSix8Space, cmNamedIndexed32Space, cmRGBA32Space, cmRGBSpace, cmWord565ColorPacking, cmWord5ColorPacking, cmXYZSpace, and cmYXYSpace.
|
|
Definition at line 134 of file mscmm/icm32.c. References CMM_DLL_VERSION, CMM_DRIVER_LEVEL, CMM_IDENT, CMM_VERSION, CMM_WIN_VERSION, CMS_LEVEL_1, and DWORD.
|
|
Definition at line 1811 of file mscmm/icm32.c. References BOOL, CMGetNamedProfileInfoProfile(), and pCMNamedProfileInfo.
|
|
Definition at line 1729 of file mscmm/icm32.c. References GlobalCriticalSection, HCMTRANSFORM, NULL, and TheTransform.
|
|
Definition at line 918 of file mscmm/icm32.c. References BOOL, Boolean, CMProfileRef, and CMValidateProfile().
|
|
Definition at line 955 of file mscmm/icm32.c. References BOOL, CMGetTransform(), CWMatchColors(), and DWORD.
|
|
Definition at line 1356 of file mscmm/icm32.c. References BOOL, CMBitmapCallBackUPP, CMBitmapColorSpace, CMGetTransform(), cmKYMC32Space, CMMModelPtr, cmparamErr, cmRGBA32Space, CMS_BACKWARD, CMWorldRef, CWGetColorSpaces(), CWMatchBitmap(), DATA_2_PTR, dwFlags, DWORD, FALSE, HCMTRANSFORM, CMBitmap::height, icSigCmykData, CMBitmap::image, LOCK_DATA, NULL, CMBitmap::pixelSize, CMBitmap::rowBytes, CMBitmap::space, UNLOCK_DATA, and CMBitmap::width.
|
|
Definition at line 1054 of file mscmm/icm32.c. References BOOL, CMBitmapCallBackUPP, CMBitmapColorSpace, CMGetDataColorSpace(), CMGetTransform(), cmInvalidColorSpace, CMMModelPtr, cmparamErr, CMS_BACKWARD, CMWorldRef, CWMatchBitmap(), DATA_2_PTR, DWORD, FALSE, HCMTRANSFORM, CMBitmap::height, CMBitmap::image, LOCK_DATA, NULL, CMBitmap::pixelSize, CMBitmap::rowBytes, CMBitmap::space, UNLOCK_DATA, and CMBitmap::width.
|
|
Definition at line 1169 of file mscmm/icm32.c. References BOOL, CMBitmapCallBackUPP, CMBitmapColorSpace, CMGetDataColorSpace(), CMGetTransform(), cmInvalidColorSpace, CWMatchBitmap(), DWORD, FALSE, CMBitmap::height, CMBitmap::image, CMBitmap::pixelSize, CMBitmap::rowBytes, CMBitmap::space, and CMBitmap::width.
|
|
Definition at line 71 of file mscmm/icm32.c. References BOOL, GlobalCriticalSection, and TRUE.
|
|
Definition at line 1478 of file mscmm/icm32.c. References CHAR, CMError, DWORD, LCS_CALIBRATED_RGB, and MyNewAbstract().
|
|
Definition at line 1518 of file mscmm/icm32.c. References CMError, DWORD, LCS_CALIBRATED_RGB, and MyNewAbstractW().
|
|
Definition at line 1759 of file mscmm/icm32.c. References CMWorldRef, GlobalCriticalSection, HCMTRANSFORM, IndexTransform, NULL, and TheTransform.
|
|
|
|
Definition at line 51 of file mscmm/icm32.c. Referenced by CMDeleteTransform(), CMGetTransform(), DllMain(), and StoreTransform(). |
|
Definition at line 48 of file mscmm/icm32.c. Referenced by CMDeleteTransform(), and StoreTransform(). |
|
Definition at line 49 of file mscmm/icm32.c. Referenced by CMDeleteTransform(), CMGetTransform(), and StoreTransform(). |