Commit 76f74bf
committed
Possibly demosaicers should not write negatives
Demosaicer input has negatives, also it's output can have negs due to internal
algorithms even if input didn't.
All OpenCL demosaicers read data safely (leaving -FLT_MAX) even if the image was not correctly initialized,
we had such issues on AMD systems with bad things following, nvidia/intel seemed to return zero in such cases.
If things in the pixelpipe work fine all should be good even with negs fed into the pipe, following code
in color maths must handle that. Remember there are colorsoaces with neg values so the interpolaters should
not try to keep data non-negative.
We can possibly add code prohibiting negative demosaicing data by uncommenting
DT_DEMOSAIC_POSITIVE1 parent bcba36f commit 76f74bf
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| |||
904 | 907 | | |
905 | 908 | | |
906 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
907 | 917 | | |
908 | 918 | | |
909 | 919 | | |
| |||
1201 | 1211 | | |
1202 | 1212 | | |
1203 | 1213 | | |
1204 | | - | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1205 | 1221 | | |
1206 | 1222 | | |
1207 | 1223 | | |
| |||
1284 | 1300 | | |
1285 | 1301 | | |
1286 | 1302 | | |
| 1303 | + | |
1287 | 1304 | | |
1288 | 1305 | | |
1289 | 1306 | | |
| |||
1357 | 1374 | | |
1358 | 1375 | | |
1359 | 1376 | | |
| 1377 | + | |
1360 | 1378 | | |
1361 | 1379 | | |
1362 | 1380 | | |
| |||
0 commit comments