<font size=2 face="sans-serif">Hi list,</font>
<br>
<br><font size=2 face="sans-serif">Out of curiosity: Why isn't OpenSlide
already using this new version already?</font>
<br>
<br><font size=2 face="sans-serif">Yves</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Adam Goode &lt;adam@spicenitz.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Agelos Pappas &lt;agelos@smartcode.gr&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">openslide-users@lists.andrew.cmu.edu</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">18-06-12 00:49</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: BigTIFF
&amp; libtiff library version</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">openslide-users-bounces+sucaet=histogenex.com@lists.andrew.cmu.edu</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>If you want bigtiff functionality, please use libtiff
4.0 (or greater). Don't bother with the old/experimental version from </font><a href=http://bigtiff.org/><font size=3 color=blue><u>bigtiff.org</u></font></a><font size=3>.</font>
<p><font size=3>Adam</font>
<p><font size=3>On Jun 17, 2012 3:23 PM, &quot;Agelos Pappas&quot; &lt;</font><a href=mailto:agelos@smartcode.gr><font size=3 color=blue><u>agelos@smartcode.gr</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=3>Hello,<br>
<br>
I was trying to compile OpenSlide using the unofficial BigTIFF modified<br>
version of libtiff available here:</font><font size=3 color=blue><u><br>
</u></font><a href=http://bigtiff.org/ target=_blank><font size=3 color=blue><u>http://bigtiff.org/</u></font></a><font size=3><br>
<br>
in order to add support for BigTIFF in OpenSlide. Although I was able to<br>
compile BigTIFF and then OpenSlide successfully, I was getting runtime<br>
errors signifying that there was a problem in the libtiff library.<br>
I tried to test the library with an Aperio SVS file that previously<br>
worked fine, but was now giving errors.<br>
<br>
Specifically the problem was in this call:<br>
openslide-hash.c, Line 117:<br>
<br>
if (TIFFGetField(tiff, TIFFTAG_TILEBYTECOUNTS, &amp;sizes) == 0)<br>
<br>
Even though TIFFGetField returned a correct value, the sizes pointer did<br>
not receive a value. The TIFFGetField function is implemented in<br>
tifflib, in the file tif_dir.c:<br>
<br>
This is an extract from libtiff<br>
&nbsp; &nbsp; &nbsp; &nbsp; case TIFFTAG_TILEBYTECOUNTS:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _TIFFFillStriles( tif );<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *va_arg(ap, uint64**) = td-&gt;td_stripbytecount;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br>
<br>
in the modified BigTIFF libtiff version, the equivalent implementation<br>
looks like this (tif_dir.c):<br>
&nbsp; &nbsp; case TIFFTAG_TILEBYTECOUNTS:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *va_arg(ap, uint32**) = td-&gt;td_stripbcsbuf;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br>
<br>
As you can see, the call to _TIFFFillStriles( tif ) is missing from the<br>
BigTIFF version and the function is nowhere defined. Thus OpenSlide does<br>
not work when built against the BigTIFF version.<br>
Does OpenSlide use a modified libtiff version? Has anyone else managed<br>
to add support for BigTIFF? Is there an official version of libtiff<br>
supporting BigTIFF?<br>
<br>
Regards<br>
Agelos<br>
<br>
<br>
_______________________________________________<br>
openslide-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:openslide-users@lists.andrew.cmu.edu"><font size=3 color=blue><u>openslide-users@lists.andrew.cmu.edu</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users" target=_blank><font size=3 color=blue><u>https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users</u></font></a><tt><font size=2>_______________________________________________<br>
openslide-users mailing list<br>
openslide-users@lists.andrew.cmu.edu<br>
</font></tt><a href="https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users"><tt><font size=2>https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>
<HR><BR>WARNING: This e-mail, including any attachments, may contain CONFIDENTIAL INFORMATION, including privileged and/or health information.  It is for the sole use of the intended recipients. Any unauthorized copying, disclosure, distribution, reproduction, use or retention of this email or the information in it, is strictly FORBIDDEN. If you are not an intended recipient, please notify the sender immediately (REPLY this e-mail) and permanently DELETE the related e-mail.  Please be aware that this email and replies to it may be monitored by the sender's company for quality assurance, policy compliance and/or security purposes.
<br>