Fix integer rounding relicts, no issue
This commit is contained in:
parent
224359d4ff
commit
936e62fee9
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user