Author: post
Date: 2010-12-05 14:11:40 +0100 (Sun, 05 Dec 2010)
New Revision: 3661
Modified:
trunk/plugins/lensfun/lensfun.c
Log:
Calculate new CA values correctly
Modified: trunk/plugins/lensfun/lensfun.c
===================================================================
--- trunk/plugins/lensfun/lensfun.c 2010-12-05 11:40:37 UTC (rev 3660)
+++ trunk/plugins/lensfun/lensfun.c 2010-12-05 13:11:40 UTC (rev 3661)
@@ -505,8 +505,8 @@
else
{
/* Lensfun >= 0.2.5.0 */
- tca.Terms[0] = ((lensfun->tca_kr/100)*-1)+1;
- tca.Terms[1] = ((lensfun->tca_kb/100)*-1)+1;
+ tca.Terms[0] = 1.0f/(((lensfun->tca_kr/100))+1);
+ tca.Terms[1] = 1.0f/(((lensfun->tca_kb/100))+1);
}
lf_lens_add_calib_tca((lfLens *)
lensfun->selected_lens, (lfLensCalibTCA *) &tca);
} else
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit