replace type_rgb_16 by type_rgb_flt and change some settings

This commit is contained in:
Desmis
2018-04-30 17:41:04 +02:00
parent 3ebbbdf139
commit 2bfc41fd03
7 changed files with 35 additions and 37 deletions

View File

@@ -524,9 +524,9 @@ void Imagefloat::ExecCMSTransform(cmsHTRANSFORM hTransform)
float *p = pBuf.data, *pR = r(y), *pG = g(y), *pB = b(y);
for (int x = 0; x < width; x++) {
*(p++) = *(pR++);
*(p++) = *(pG++);
*(p++) = *(pB++);
*(p++) = *(pR++)/ 65535.f;
*(p++) = *(pG++)/ 65535.f;
*(p++) = *(pB++)/ 65535.f;
}
cmsDoTransform (hTransform, pBuf.data, pBuf.data, width);