Tk Library Source Code

View Ticket
Login
Ticket UUID: 1272798
Title: exif - failed test with Tcl 8.5
Type: Bug Version: None
Submitter: dgp Created on: 2005-08-25 17:01:27
Subsystem: exif Assigned To: andreas_kupries
Priority: 2 Severity:
Status: Closed Last Modified: 2006-09-27 23:57:20
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2006-09-27 16:57:20
Description:
==== exif-makernote-19.0 makernote field 19 (afpoint)
is optional FAILED
==== Contents of test case:

    # AFPoint == AutoFocus Point

    set f [open [file join $::tcltest::testsDirectory
noafpoint.jpg] r]
    fconfigure $f -translation binary
    set res [dictsort [exif::analyze $f]]
    close $f
    set res

---- Result was:
AFPointsUsed {3 right} AperatureValue 7.1 AutoFocusMode
{AI servo} CameraMake Ca
non CameraModel {Canon PowerShot S100} ColorSpace 1
ComponentsConfigured 0x00030
201 Contrast Normal DateTime {2004:09:06 05:22:56}
DateTimeDigitized {2004:09:06
 05:22:56} DateTimeOriginal {2004:09:06 05:22:56}
ExifImageHeight 1200 ExifImage
Width 1600 ExifInteroperabilityOffset 1088 ExifVersion
0210 ExposureBiasValue 0 
ExposureTime {1/250.0 seconds} FNumber 7.1 FileSource
{3 - Digital camera} Firmw
areVersion {Firmware Version 1.0} Flash no FlashMode
auto FlashPixVersion 0100 F
ocalLength {5.40625 mm} FocalPlaneResolutionUnit inch
FocalPlaneXResolution 7766
.9902912621355 FocalPlaneYResolution 7741.935483870968
ISO unknown ImageFormat {
IMG:JPEG file} ImageNumber 140-4060 ImageQuality Fine
ImageSize large MacroMode 
normal MeteringMode unknown Orientation 1 Owner Irochka
ResolutionUnit inch Satu
ration Normal SensingMethod 2 Sharpness Normal
ShootingMode {Single frame} Shutt
erSpeedValue {250 Hz} SubjectDistance {3.358 m}
UnknownTag-0x10 100925440 UserCo
mment {554 - } WhiteBalance Auto XResolution 180.0
YCbCrPositioning {Center of p
ixel array} YResolution 180.0
---- Result should have been (exact matching):
AFPointsUsed {3 right} AperatureValue 7.1 AutoFocusMode
{AI servo} CameraMake Ca
non CameraModel {Canon PowerShot S100} ColorSpace 1
ComponentsConfigured 0x00030
201 Contrast Normal DateTime {2004:09:06 05:22:56}
DateTimeDigitized {2004:09:06
 05:22:56} DateTimeOriginal {2004:09:06 05:22:56}
ExifImageHeight 1200 ExifImage
Width 1600 ExifInteroperabilityOffset 1088 ExifVersion
0210 ExposureBiasValue 0 
ExposureTime {1/250.0 seconds} FNumber 7.1 FileSource
{3 - Digital camera} Firmw
areVersion {Firmware Version 1.0} Flash no FlashMode
auto FlashPixVersion 0100 F
ocalLength {5.40625 mm} FocalPlaneResolutionUnit inch
FocalPlaneXResolution 7766
.99029126 FocalPlaneYResolution 7741.93548387 ISO
unknown ImageFormat {IMG:JPEG 
file} ImageNumber 140-4060 ImageQuality Fine ImageSize
large MacroMode normal Me
teringMode unknown Orientation 1 Owner Irochka
ResolutionUnit inch Saturation No
rmal SensingMethod 2 Sharpness Normal ShootingMode
{Single frame} ShutterSpeedVa
lue {250 Hz} SubjectDistance {3.358 m} UnknownTag-0x10
100925440 UserComment {55
4 - } WhiteBalance Auto XResolution 180.0
YCbCrPositioning {Center of pixel arra
y} YResolution 180.0
==== exif-makernote-19.0 FAILED
User Comments: andreas_kupries added on 2006-09-27 23:57:20:
Logged In: YES 
user_id=75003

Went with my idea and used 'format' to get results of a
deterministic precision across versions. Committed.

andreas_kupries added on 2006-09-27 22:26:11:
Logged In: YES 
user_id=75003

Still an 8.5 specific problem, different (default)
precisions. Should we  use 'format' to round the value to a
specific precision ?

dgp added on 2006-09-27 22:16:33:
Logged In: YES 
user_id=80530

still failing in exif-1.1.2
(tcllib-1.9-rc1)

andreas_kupries added on 2005-09-27 05:14:32:
Logged In: YES 
user_id=75003

The difference is in the floating point values of
FocalPlane(X,Y)Resolution. In Tcl 8.5 the value has several
more digits.

We are not tracking this until the Tcl 8.5 numerics have
stabilized.

andreas_kupries added on 2005-08-26 00:06:11:
Logged In: YES 
user_id=75003

This has no real maintainer, so giving it to myself.