Menu

#35 RATIONAL's not handled properly

open
Misc (4)
5
2002-07-30
2002-07-30
Daniel Rupe
No

From an email from Ricky...

ExposureBias - The toolkit was crashing when this value was written. After many hours of looking and
tracing through and not finding anything, I just realized that this is the only key of the float keys that we
test with a negative number. I changed it to positive and it worked find. Changed other float keys to
negative, and they caused a crash. So, I reviewed the Tiff spec and realized that these float keys (float in
Pmt) are defined as RATIONAL in Tiff. And RATIONAL is defined as two LONGs (numerator and
denominator of fraction). And a LONG in Tiff is actually a 32-bit unsigned integer. So, negative values are
not accepted.

The above deals with the TIFF toolkit, but the same needs to be looked at for Exif too. Diagnose what's
happening when a negative # is provided for a RATIONAL, and figure out how to properly handle it.

July 30, 2002 Dan Rupe

Discussion


Log in to post a comment.

MongoDB Logo MongoDB