Fix integer rounding relicts, no issue

This commit is contained in:
heckflosse 2017-04-21 11:41:47 +02:00
parent 224359d4ff
commit 936e62fee9
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ void RawImageSource::CLASS cfa_linedn(float noise)
for (int col = 16 + left, indx = rr * TS + 16; indx < rr * TS + numcols - 16; indx++, col++) {
if (rawData[row][col] < clip_pt && cfadn[indx] < clip_pt) {
RawDataTmp[row * width + col] = CLIP((int)(cfadn[indx] + 0.5f));
RawDataTmp[row * width + col] = CLIP(cfadn[indx]);
}
}
}

View File

@ -1879,7 +1879,7 @@ SSEFUNCTION void RawImageSource::lmmse_interpolate_omp(int winw, int winh, array
gamtab = &(Color::igammatab_24_17);
} else {
for(int i = 0; i < 65536; i++) {
(*gamtab)[i] = (float)i + 0.5f;
(*gamtab)[i] = i;
}
}