105 if (nIndex < m_pVars->nVars) {
128 return (
CIccCmmHandle*)
new CIccCmm(srcSpace, dstSpace, bFirstIsInput != 0);
137 unsigned char bUseDtoBTags,
138 unsigned char bUseBPC,
144 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
146 CIccCreateXformHintManager hint;
147 bool bUseHint =
false;
159 return pCmmPtr->AddXform(szFname, nIntent, nInterp, (CIccProfile*)pPcc, nLutType, bUseDtoBTags != 0, bUseHint ? &hint : NULL);
168 unsigned char bUseDtoBTags,
169 unsigned char bUseBPC,
175 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
176 CIccProfile *pProfilePtr = (CIccProfile*)pProfile;
178 CIccCreateXformHintManager hint;
179 bool bUseHint =
false;
191 return pCmmPtr->AddXform(pProfilePtr, nIntent, nInterp, (CIccProfile*)pPcc, nLutType, bUseDtoBTags != 0, bUseHint ? &hint : NULL);
199 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
201 return pCmmPtr->Begin();
209 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
216 if (!pCmm || !pCmmInfo)
219 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
221 pCmmInfo->
srcSpace = pCmmPtr->GetSourceSpace();
222 pCmmInfo->
srcSamples = pCmmPtr->GetSourceSamples();
223 pCmmInfo->
dstSpace = pCmmPtr->GetDestSpace();
224 pCmmInfo->
dstSamples = pCmmPtr->GetDestSamples();
231 if (!pCmm || !pTo || !pFrom)
234 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
236 return pCmmPtr->Apply(pTo, pFrom);
241 if (!pCmm || !pTo || !pFrom)
244 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
246 return pCmmPtr->Apply(pTo, pFrom, nPixels);
252 CIccCmm *pCmmPtr = (CIccCmm*)pCmm;
259 if (!pApply || !pTo || !pFrom)
262 CIccApplyCmm *pApplyPtr = (CIccApplyCmm*)pApply;
264 return pApplyPtr->Apply(pTo, pFrom);
269 if (!pApply || !pTo || !pFrom)
272 CIccApplyCmm *pApplyPtr = (CIccApplyCmm*)pApply;
274 return pApplyPtr->Apply(pTo, pFrom, nPixels);
280 CIccApplyCmm *pApplyPtr = (CIccApplyCmm*)pApply;
296 if (!pProfile || !pHeader)
299 CIccProfile *pProfilePtr = (CIccProfile*)pProfile;
301 *pHeader = pProfilePtr->m_Header;
icXformLutType
CMM Xform LUT types.
icXformInterp
CMM Interpolation types.
icStatusCMM
CMM return status values.
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
CIccProfile * ReadIccProfile(const icChar *szFilename, bool bUseSubProfile)
Name: ReadIccProfile.
CIccProfile * OpenIccProfile(const icChar *szFilename, bool bUseSubProfile)
Name: OpenIccProfile.
CIccCmmHandle * IccCmmCreate(icColorSpaceSignature srcSpace, icColorSpaceSignature dstSpace, unsigned char bFirstIsInput)
CIccApplyHandle * IccCmmGetApply(CIccCmmHandle *pCmm)
icStatusCMM IccCmmGetInfo(CIccCmmHandle *pCmm, SIccCmmStruct *pCmmInfo)
icStatusCMM IccCmmAttachProfileFile(CIccCmmHandle *pCmm, const char *szFname, icRenderingIntent nIntent, icXformInterp nInterp, CIccProfileHandle *pPcc, icXformLutType nLutType, unsigned char bUseDtoBTags, unsigned char bUseBPC, SIccCmmEnvVars *pVars)
icBoolean IccProfileGetHeader(CIccProfileHandle *pProfile, icHeader *pHeader)
void IccApplyFree(CIccApplyHandle *pApply)
void IccCmmFree(CIccCmmHandle *pCmm)
CIccProfileHandle * IccProfileReadHandle(const char *szFname)
icStatusCMM IccCmmApplyFloatMulti(CIccCmmHandle *pCmm, icFloatNumber *pTo, icFloatNumber *pFrom, icUInt32Number nPixels)
CIccProfileHandle * IccProfileOpenHandle(const char *szFname)
void IccProfileFree(CIccProfileHandle *pProfile)
icStatusCMM IccCmmBegin(CIccCmmHandle *pCmm)
icStatusCMM IccCmmApplyFloat(CIccCmmHandle *pCmm, icFloatNumber *pTo, icFloatNumber *pFrom)
icStatusCMM IccApplyApplyFloat(CIccApplyHandle *pApply, icFloatNumber *pTo, icFloatNumber *pFrom)
icStatusCMM IccApplyApplyFloatMulti(CIccApplyHandle *pApply, icFloatNumber *pTo, icFloatNumber *pFrom, icUInt32Number nPixels)
icStatusCMM IccCmmAttachProfileHandle(CIccCmmHandle *pCmm, CIccProfileHandle *pProfile, icRenderingIntent nIntent, icXformInterp nInterp, CIccProfileHandle *pPcc, icXformLutType nLutType, unsigned char bUseDtoBTags, unsigned char bUseBPC, SIccCmmEnvVars *pVars)
unsigned int icUInt32Number
virtual IIccCmmEnvVarLookup * GetNewCmmEnvVarLookup() const
CIccCmmEnvVarWrapperHint(SIccCmmEnvVars *pVars)
CIccCmmEnvVarsWrapper(SIccCmmEnvVars *pVars)
virtual bool GetEnvVar(icSigCmmEnvVar sig, icFloatNumber &val)
virtual bool IndexedEnvVar(icUInt32Number nIndex, icSigCmmEnvVar &sig, icFloatNumber &val)
icColorSpaceSignature dstSpace
icUInt16Number srcSamples
icUInt16Number dstSamples
icColorSpaceSignature srcSpace