Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
File: DemoIccMAXCmm.cpp. More...
#include "stdafx.h"
#include "IccCmm.h"
#include "IccDefs.h"
#include "Icm.h"
#include "DemoIccMAXCmm.h"
#include "resource.h"
#include <string>
#include "Winerror.h"
Go to the source code of this file.
Macros | |
#define | AVAILABLE_TRANSFORMS 1024 |
Typedefs | |
typedef HPROFILE * | LPHPROFILE |
Functions | |
BOOL WINAPI | CMCheckColors (HCMTRANSFORM hcmTransform, LPCOLOR lpaInputColors, DWORD nColors, COLORTYPE ctInput, LPBYTE lpaResult) |
BOOL WINAPI | CMCheckColorsInGamut (HCMTRANSFORM hcmTransform, RGBTRIPLE *lpaRGBTriple, LPBYTE lpaResult, UINT nCount) |
BOOL WINAPI | CMCheckRGBs (HCMTRANSFORM hcmTransform, LPBYTE lpSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwStride, LPBYTE lpaResult, PBMCALLBACKFN pfnCallback, ULONG ulCallbackData) |
BOOL WINAPI | CMConvertColorNameToIndex (HPROFILE hProfile, PCOLOR_NAME paColorName, PDWORD paIndex, DWORD dwCount) |
BOOL WINAPI | CMConvertIndexToColorName (HPROFILE hProfile, PDWORD paIndex, PCOLOR_NAME paColorName, DWORD dwCount) |
HCMTRANSFORM WINAPI | CMCreateMultiProfileTransform (LPHPROFILE lpahProfiles, DWORD nProfiles, PDWORD padwIntents, DWORD nIntents, DWORD dwFlags) |
HCMTRANSFORM WINAPI | CMCreateTransform (LPLOGCOLORSPACEA lpColorSpace, LPBYTE lpDevCharacter, LPBYTE lpTargetDevCharacter) |
HCMTRANSFORM WINAPI | CMCreateTransformExt (LPLOGCOLORSPACEA lpColorSpace, LPBYTE lpDevCharacter, LPBYTE lpTargetDevCharacter, DWORD dwFlags) |
HCMTRANSFORM WINAPI | CMCreateTransformExtW (LPLOGCOLORSPACEW lpColorSpace, LPBYTE lpDevCharacter, LPBYTE lpTargetDevCharacter, DWORD dwFlags) |
HCMTRANSFORM WINAPI | CMCreateTransformW (LPLOGCOLORSPACEW lpColorSpace, LPBYTE lpDevCharacter, LPBYTE lpTargetDevCharacter) |
BOOL WINAPI | CMDeleteTransform (HCMTRANSFORM hcmTransform) |
DWORD WINAPI | CMGetInfo (DWORD dwInfo) |
BOOL WINAPI | CMGetNamedProfileInfo (HPROFILE hProfile, PNAMED_PROFILE_INFO pNamedProfileInfo) |
BOOL WINAPI | CMIsProfileValid (HPROFILE hProfile, LPBOOL lpbValid) |
BOOL WINAPI | CMTranslateColors (HCMTRANSFORM hcmTransform, LPCOLOR lpaInputColors, DWORD nColors, COLORTYPE ctInput, LPCOLOR lpaOutputColors, COLORTYPE ctOutput) |
BOOL WINAPI | CMTranslateRGB (HCMTRANSFORM hcmTransform, COLORREF ColorRef, LPCOLORREF lpColorRef, DWORD dwFlags) |
BOOL WINAPI | CMTranslateRGBs (HCMTRANSFORM hcmTransform, LPBYTE lpSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwInputStride, LPBYTE lpDestBits, BMFORMAT bmOutput, DWORD dwTranslateDirection) |
BOOL WINAPI | CMTranslateRGBsExt (HCMTRANSFORM hcmTransform, LPBYTE lpSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwInputStride, LPBYTE lpDestBits, BMFORMAT bmOutput, DWORD dwOutputStride, LPBMCALLBACKFN lpfnCallback, ULONG ulCallbackData) |
BOOL APIENTRY | DllMain (HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) |
static CIccProfile * | GetProfileFromBuf (LPBYTE lpBuf) |
static icRenderingIntent | GetRenderingIntent (DWORD nIntent) |
static BOOL | IsValidBitmapType (BMFORMAT bmType, icColorSpaceSignature sigSpace) |
static BOOL | IsValidColorType (COLORTYPE ctSpace, icColorSpaceSignature sigSpace) |
static CIccProfile * | OpenProfile (HPROFILE hProfile) |
__inline icFloatNumber | UnitClip (icFloatNumber v) |
Variables | |
CIccCmm * | g_Transforms [1024] |
File: DemoIccMAXCmm.cpp.
Contains: Defines the entry point for the DLL application.
Version: V1
Copyright: (c) see ICC Software License
Definition in file DemoIccMAXCmm.cpp.
#define AVAILABLE_TRANSFORMS 1024 |
Definition at line 119 of file DemoIccMAXCmm.cpp.
Referenced by CMCheckColors(), CMCheckColorsInGamut(), CMCheckRGBs(), CMCreateMultiProfileTransform(), CMCreateTransformExt(), CMCreateTransformExtW(), CMDeleteTransform(), CMTranslateColors(), CMTranslateRGB(), and CMTranslateRGBsExt().
typedef HPROFILE* LPHPROFILE |
Definition at line 141 of file DemoIccMAXCmm.cpp.
BOOL WINAPI CMCheckColors | ( | HCMTRANSFORM | hcmTransform, |
LPCOLOR | lpaInputColors, | ||
DWORD | nColors, | ||
COLORTYPE | ctInput, | ||
LPBYTE | lpaResult ) |
Definition at line 328 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, icCmmStatOk, icSigGamutData, IsValidColorType(), and UnitClip().
BOOL WINAPI CMCheckColorsInGamut | ( | HCMTRANSFORM | hcmTransform, |
RGBTRIPLE * | lpaRGBTriple, | ||
LPBYTE | lpaResult, | ||
UINT | nCount ) |
Definition at line 439 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, icCmmStatOk, icSigGamutData, icSigRgbData, and UnitClip().
BOOL WINAPI CMCheckRGBs | ( | HCMTRANSFORM | hcmTransform, |
LPBYTE | lpSrcBits, | ||
BMFORMAT | bmInput, | ||
DWORD | dwWidth, | ||
DWORD | dwHeight, | ||
DWORD | dwStride, | ||
LPBYTE | lpaResult, | ||
PBMCALLBACKFN | pfnCallback, | ||
ULONG | ulCallbackData ) |
Definition at line 483 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, icCmmStatOk, icSigGamutData, IsValidBitmapType(), and UnitClip().
BOOL WINAPI CMConvertColorNameToIndex | ( | HPROFILE | hProfile, |
PCOLOR_NAME | paColorName, | ||
PDWORD | paIndex, | ||
DWORD | dwCount ) |
Definition at line 2200 of file DemoIccMAXCmm.cpp.
References CIccTagNamedColor2::FindRootColor(), icSigNamedColor2Tag, and OpenProfile().
BOOL WINAPI CMConvertIndexToColorName | ( | HPROFILE | hProfile, |
PDWORD | paIndex, | ||
PCOLOR_NAME | paColorName, | ||
DWORD | dwCount ) |
Definition at line 2244 of file DemoIccMAXCmm.cpp.
References CIccTagNamedColor2::GetEntry(), CIccTagNamedColor2::GetSize(), icSigNamedColor2Tag, OpenProfile(), and SIccNamedColorEntry::rootName.
HCMTRANSFORM WINAPI CMCreateMultiProfileTransform | ( | LPHPROFILE | lpahProfiles, |
DWORD | nProfiles, | ||
PDWORD | padwIntents, | ||
DWORD | nIntents, | ||
DWORD | dwFlags ) |
Definition at line 838 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, GetRenderingIntent(), icCmmStatOk, icInterpLinear, icXformLutColor, icXformLutGamut, and OpenProfile().
HCMTRANSFORM WINAPI CMCreateTransform | ( | LPLOGCOLORSPACEA | lpColorSpace, |
LPBYTE | lpDevCharacter, | ||
LPBYTE | lpTargetDevCharacter ) |
Definition at line 1178 of file DemoIccMAXCmm.cpp.
References CMCreateTransformExt().
HCMTRANSFORM WINAPI CMCreateTransformExt | ( | LPLOGCOLORSPACEA | lpColorSpace, |
LPBYTE | lpDevCharacter, | ||
LPBYTE | lpTargetDevCharacter, | ||
DWORD | dwFlags ) |
Definition at line 953 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, GetProfileFromBuf(), and icCmmStatOk.
Referenced by CMCreateTransform().
HCMTRANSFORM WINAPI CMCreateTransformExtW | ( | LPLOGCOLORSPACEW | lpColorSpace, |
LPBYTE | lpDevCharacter, | ||
LPBYTE | lpTargetDevCharacter, | ||
DWORD | dwFlags ) |
Definition at line 1068 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, GetProfileFromBuf(), and icCmmStatOk.
Referenced by CMCreateTransformW().
HCMTRANSFORM WINAPI CMCreateTransformW | ( | LPLOGCOLORSPACEW | lpColorSpace, |
LPBYTE | lpDevCharacter, | ||
LPBYTE | lpTargetDevCharacter ) |
Definition at line 1188 of file DemoIccMAXCmm.cpp.
References CMCreateTransformExtW().
BOOL WINAPI CMDeleteTransform | ( | HCMTRANSFORM | hcmTransform | ) |
Definition at line 1200 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, and g_Transforms.
DWORD WINAPI CMGetInfo | ( | DWORD | dwInfo | ) |
Definition at line 1218 of file DemoIccMAXCmm.cpp.
References icSigDemoIccMAX, IDI_LOGO, and IDS_DESCRIPTION.
BOOL WINAPI CMGetNamedProfileInfo | ( | HPROFILE | hProfile, |
PNAMED_PROFILE_INFO | pNamedProfileInfo ) |
Definition at line 2289 of file DemoIccMAXCmm.cpp.
References CIccTagNamedColor2::GetDeviceCoords(), CIccTagNamedColor2::GetPrefix(), CIccTagNamedColor2::GetSize(), CIccTagNamedColor2::GetSufix(), CIccTagNamedColor2::GetVendorFlags(), icSigNamedColor2Tag, and OpenProfile().
BOOL WINAPI CMIsProfileValid | ( | HPROFILE | hProfile, |
LPBOOL | lpbValid ) |
Definition at line 1249 of file DemoIccMAXCmm.cpp.
References icValidateNonCompliant, and OpenProfile().
BOOL WINAPI CMTranslateColors | ( | HCMTRANSFORM | hcmTransform, |
LPCOLOR | lpaInputColors, | ||
DWORD | nColors, | ||
COLORTYPE | ctInput, | ||
LPCOLOR | lpaOutputColors, | ||
COLORTYPE | ctOutput ) |
Definition at line 1281 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, icCmmStatOk, icSigDevLabData, IsValidColorType(), and UnitClip().
BOOL WINAPI CMTranslateRGB | ( | HCMTRANSFORM | hcmTransform, |
COLORREF | ColorRef, | ||
LPCOLORREF | lpColorRef, | ||
DWORD | dwFlags ) |
Definition at line 1463 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, icCmmStatOk, icSigRgbData, and UnitClip().
BOOL WINAPI CMTranslateRGBs | ( | HCMTRANSFORM | hcmTransform, |
LPBYTE | lpSrcBits, | ||
BMFORMAT | bmInput, | ||
DWORD | dwWidth, | ||
DWORD | dwHeight, | ||
DWORD | dwInputStride, | ||
LPBYTE | lpDestBits, | ||
BMFORMAT | bmOutput, | ||
DWORD | dwTranslateDirection ) |
Definition at line 2168 of file DemoIccMAXCmm.cpp.
References CMTranslateRGBsExt().
BOOL WINAPI CMTranslateRGBsExt | ( | HCMTRANSFORM | hcmTransform, |
LPBYTE | lpSrcBits, | ||
BMFORMAT | bmInput, | ||
DWORD | dwWidth, | ||
DWORD | dwHeight, | ||
DWORD | dwInputStride, | ||
LPBYTE | lpDestBits, | ||
BMFORMAT | bmOutput, | ||
DWORD | dwOutputStride, | ||
LPBMCALLBACKFN | lpfnCallback, | ||
ULONG | ulCallbackData ) |
Definition at line 1513 of file DemoIccMAXCmm.cpp.
References AVAILABLE_TRANSFORMS, g_Transforms, icCmmStatOk, icSigDevLabData, IsValidBitmapType(), and UnitClip().
Referenced by CMTranslateRGBs().
BOOL APIENTRY DllMain | ( | HANDLE | hModule, |
DWORD | ul_reason_for_call, | ||
LPVOID | lpReserved ) |
Definition at line 123 of file DemoIccMAXCmm.cpp.
References g_Transforms.
|
static |
Definition at line 935 of file DemoIccMAXCmm.cpp.
References OpenIccProfile().
Referenced by CMCreateTransformExt(), and CMCreateTransformExtW().
|
static |
Definition at line 816 of file DemoIccMAXCmm.cpp.
References icAbsoluteColorimetric, icPerceptual, icRelativeColorimetric, icSaturation, and icUnknownIntent.
Referenced by CMCreateMultiProfileTransform().
|
static |
Definition at line 220 of file DemoIccMAXCmm.cpp.
References icGetSpaceSamples(), icSig5colorData, icSig6colorData, icSig7colorData, icSig8colorData, icSigCmykData, icSigGrayData, icSigLabData, icSigRgbData, icSigXYZData, and icSigYxyData.
Referenced by CMCheckRGBs(), and CMTranslateRGBsExt().
|
static |
Definition at line 143 of file DemoIccMAXCmm.cpp.
References icGetSpaceSamples(), icSig5colorData, icSig6colorData, icSig7colorData, icSig8colorData, icSigCmykData, icSigGrayData, icSigLabData, icSigRgbData, icSigXYZData, and icSigYxyData.
Referenced by CMCheckColors(), and CMTranslateColors().
|
static |
Definition at line 81 of file DemoIccMAXCmm.cpp.
References CIccMemIO::Alloc(), and CIccMemIO::GetData().
Referenced by CMConvertColorNameToIndex(), CMConvertIndexToColorName(), CMCreateMultiProfileTransform(), CMGetNamedProfileInfo(), and CMIsProfileValid().
__inline icFloatNumber UnitClip | ( | icFloatNumber | v | ) |
Definition at line 318 of file DemoIccMAXCmm.cpp.
Referenced by CMCheckColors(), CMCheckColorsInGamut(), CMCheckRGBs(), CMTranslateColors(), CMTranslateRGB(), and CMTranslateRGBsExt().
CIccCmm* g_Transforms[1024] |
Definition at line 121 of file DemoIccMAXCmm.cpp.
Referenced by CMCheckColors(), CMCheckColorsInGamut(), CMCheckRGBs(), CMCreateMultiProfileTransform(), CMCreateTransformExt(), CMCreateTransformExtW(), CMDeleteTransform(), CMTranslateColors(), CMTranslateRGB(), CMTranslateRGBsExt(), and DllMain().