Author: akv
Date: 2010-06-20 00:22:39 +0200 (Sun, 20 Jun 2010)
New Revision: 3435
Modified:
trunk/plugins/lensfun/lensfun.c
Log:
FIXME added for lensfun 0.2.5 - need a (runtime?) check of lensfun version.
Modified: trunk/plugins/lensfun/lensfun.c
===================================================================
--- trunk/plugins/lensfun/lensfun.c 2010-06-19 20:59:12 UTC (rev 3434)
+++ trunk/plugins/lensfun/lensfun.c 2010-06-19 22:22:39 UTC (rev 3435)
@@ -492,8 +492,12 @@
{
lfLensCalibTCA tca;
tca.Model = LF_TCA_MODEL_LINEAR;
+ /* Lensfun < 0.2.5 */
tca.Terms[0] = (lensfun->tca_kr/100)+1;
tca.Terms[1] = (lensfun->tca_kb/100)+1;
+ /* Lensfun >= 0.2.5 - FIXME: Check version of lensfun
library */
+ //tca.Terms[0] = ((lensfun->tca_kr/100)*-1)+1;
+ //tca.Terms[1] = ((lensfun->tca_kb/100)*-1)+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