[Rawstudio-commit] r3047 - branches/rawstudio-ng-color/plugins/meta-tiff
Anders Kvist
anders at kvistmail.dk
Fri Jan 22 01:03:57 CET 2010
Author: akv
Date: 2010-01-22 01:03:57 +0100 (Fri, 22 Jan 2010)
New Revision: 3047
Modified:
branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c
Log:
Corrected reading of aperture values again - this time it should be correct.
Modified: branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c
===================================================================
--- branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c 2010-01-21 23:39:12 UTC (rev 3046)
+++ branches/rawstudio-ng-color/plugins/meta-tiff/tiff-meta.c 2010-01-22 00:03:57 UTC (rev 3047)
@@ -835,11 +835,11 @@
break;
case 0x0205: /* MinApertureAtMinFocal */
raw_get_ushort(rawfile, offset-4, &ushort_temp1);
- meta->lens_min_aperture = (gfloat) sqrt(2)*(ushort_temp1/256);
+ meta->lens_min_aperture = (gfloat) pow(sqrt(2),(ushort_temp1/256));
break;
case 0x0206: /* MaxApertureAtMaxFocal */
raw_get_ushort(rawfile, offset-4, &ushort_temp1);
- meta->lens_max_aperture = (gfloat) sqrt(2)*(ushort_temp1/256);
+ meta->lens_max_aperture = (gfloat) pow(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