static cmsHTRANSFORM _buildProofTransform(cmsHPROFILE hInputProfile, cmsHPROFILE hOutputProfile, cmsHPROFILE hProofProfile, char *sInMode, char *sOutMode, int iRenderingIntent, int iProofIntent, DWORD cmsFLAGS) { cmsHTRANSFORM hTransform; cmsErrorAction(LCMS_ERROR_IGNORE); Py_BEGIN_ALLOW_THREADS /* create the transform */ hTransform = cmsCreateProofingTransform(hInputProfile, findLCMStype(sInMode), hOutputProfile, findLCMStype(sOutMode), hProofProfile, iRenderingIntent, iProofIntent, cmsFLAGS); Py_END_ALLOW_THREADS if (!hTransform) PyErr_SetString(PyExc_ValueError, "cannot build proof transform"); return hTransform; /* if NULL, an exception is set */ }
static cmsHTRANSFORM _buildTransform(cmsHPROFILE hInputProfile, cmsHPROFILE hOutputProfile, char *sInMode, char *sOutMode, int iRenderingIntent, cmsUInt32Number cmsFLAGS) { cmsHTRANSFORM hTransform; Py_BEGIN_ALLOW_THREADS /* create the transform */ hTransform = cmsCreateTransform(hInputProfile, findLCMStype(sInMode), hOutputProfile, findLCMStype(sOutMode), iRenderingIntent, cmsFLAGS); Py_END_ALLOW_THREADS if (!hTransform) PyErr_SetString(PyExc_ValueError, "cannot build transform"); return hTransform; /* if NULL, an exception is set */ }