[Rawstudio-commit] r3044 - branches/rawstudio-ng-color/plugins/meta-tiff

Anders Kvist anders at kvistmail.dk
Wed Jan 20 21:51:41 CET 2010


Author: akv
Date: 2010-01-20 21:51:41 +0100 (Wed, 20 Jan 2010)
New Revision: 3044

Modified:
   branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c
Log:
Calculating correct aperture values for Olympus cameras.

Modified: branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c
===================================================================
--- branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c	2010-01-20 20:38:29 UTC (rev 3043)
+++ branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c	2010-01-20 20:51:41 UTC (rev 3044)
@@ -839,11 +839,11 @@
 				break;
 			case 0x0205: /* MinApertureAtMinFocal */
 				raw_get_ushort(rawfile, offset-4, &ushort_temp1);
-				meta->lens_min_aperture = (gfloat) ushort_temp1/256;
+				meta->lens_min_aperture = (gfloat) sqrt(2)*(ushort_temp1/256);
 				break;
 			case 0x0206: /* MaxApertureAtMaxFocal */
 				raw_get_ushort(rawfile, offset-4, &ushort_temp1);
-				meta->lens_max_aperture = (gfloat) ushort_temp1/256;
+				meta->lens_max_aperture = (gfloat) sqrt(2)*(ushort_temp1/256);
 				break;
 			case 0x0207: /* MinFocalLength */
 				raw_get_ushort(rawfile, offset-4, &ushort_temp1);




More information about the Rawstudio-commit mailing list