Newsgroups: fj.comp.image,fj.lang.c
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!wnoc-tyo-news!astecgw!dnpgw!pix!a_kuroe
From: a_kuroe@sparc691.gaken.dnp.co.jp (Akihiko Kuroe)
Subject: [WANTED] libtiff patch for DEC alpha (64bit)
Message-ID: <CMsso1.JoI@pix.gaken.dnp.co.jp>
Sender: news@pix.gaken.dnp.co.jp (Usenet System)
Organization: IIRI , Dai Nippon Printing Co.,Ltd. , Tokyo , Japan
X-Newsreader: gn [Version 1.20 Mar.1,1994]
Date: Thu, 17 Mar 1994 07:26:22 GMT
Lines: 90
Xref: galaxy.trc.rwcp.or.jp fj.comp.image:1375 fj.lang.c:1239
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=1239&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B9u9>!wBgF|K\0u:~$G$9!#(B

64bit$B%^%7%s>e$G(BTIFF$B$N%i%$%V%i%j$H(Btools$B$r(Bmake$B$7$F$$$k$N$G$9$,!"(B
$B0l1~(Bmake$B$,DL$C$?$b$N$r<B9T$9$k$H!"<!$N$h$&$J%(%i!<$,=P$^$7$?!#(B

=====BEGIN: LOG1
% tiffinfo testdata.tif
testdata.tif: Can not read TIFF directory count.
% tiffdump testdata.tif
testdata.tif:
Magic: 0x4d4d <big-endian> Version: 0x2a
Directory 0: offset 4398047428862 (0x400000e00fe)
Flowers.tif: Error while reading Segmentation fault
=====END

tiffinfo$B$O(Blibtiff$B$r%j%s%/$7!"(Btiffdump$B$O%j%s%/$7$F$$$^$;$s$,!"(B
$B@5>o$KF0:n$7$J$$860x$OF1$8$@$H;W$o$l$^$9!#(B($B$"$H$G9M;!$7$^$9(B)

$B0lJ}!"F1$82hA|%G!<%?$r(B32bit$B%^%7%s$G07$&$H<!$N$h$&$K$J$j$^$9!#(B

=====BEGIN: LOG2
% tiffdump testdata.tif
testdata.tif:
Magic: 0x4d4d <big-endian> Version: 0x2a
Directory 0: offset 8 (0x8)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<0>
ImageLength (257) SHORT (3) 1<0>
BitsPerSample (258) SHORT (3) 3<8 8 8>
Compression (259) SHORT (3) 1<0>
Photometric (262) SHORT (3) 1<0>
StripOffsets (273) LONG (4) 1<196>
SamplesPerPixel (277) SHORT (3) 1<0>
RowsPerStrip (278) SHORT (3) 1<0>
StripByteCounts (279) LONG (4) 1<543000>
XResolution (282) RATIONAL (5) 1<72>
YResolution (283) RATIONAL (5) 1<72>
PlanarConfig (284) SHORT (3) 1<0>
ResolutionUnit (296) SHORT (3) 1<0>
=====END

$B2hA|%G!<%?$r(Bdump$B$7$F$_$k$H!"@hF,ItJ,$O<!$N$h$&$K$J$C$F$$$^$9!#(B

0000000  4d4d 2a00 0000 0800 0e00 fe00 0400 0000
         ^^^^ ^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^
          (1)  (2)       (3)  (4)            (5)

0000020  0100 0000 0000 0001 0300 0000 0100 f401
         ^^^^^^^^^^^^^^
              (5$B$NB3$-(B)

(1) short  $B$3$N2hA|%G!<%?$,(Bbig endian$B$G$"$k$3$H$r<($9(B
(2) short  TIFF$B$N%P!<%8%g%s$r<($9(B
(3) long   Directory 0$B$X$N%*%U%;%C%H(B
(4) short  Directory 0$B$K4^$^$l$k%?%0$N?t(B
(5) TAG    SubFileType TAG (0xfe$BHV(B)

sizeof()$B$NCM$O(Bchar: 1, short: 2, int: 4, long: 8, double: 8
$B$G$7$?$N$G!"%W%m%0%i%`$K$O!"<!$N$h$&$K8+$($F$$$k$N$G$7$g$&$+!#(B

0000000  4d4d 2a00 0000 0800 0e00 fe00 0400 0000
         ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^
          (1)  (2)                (3') (4') (5')

0000020  0100 0000 0000 0001 0300 0000 0100 f401
         ^^^^^^^^^^^^^^^^^^^^^^^^
                       (5'$B$NB3$-(B)

(3') long   Directory 0$B$X$N%*%U%;%C%H(B
(4') short  Directory 0$B$K4^$^$l$k%?%0$N?t(B
(5') TAG    0$BHV$N(BTAG$B"*$=$s$J$N$J$$$>(B

$B:G=i$K<($7$?%(%i!<%a%C%;!<%8$r8+$k8B$j$G$O!"(BDirectory 0$B$X$N(B
$B%*%U%;%C%H$O!"<!$N(B(3'')$B$N0LCV$rFI$s$G$$$k$h$&$K$b8+$($^$9$,!"(B
$B$$$:$l$K$;$h!"$=$N$^$^(Bmake$B$7$?$N$G$O@5$7$/;H$($J$5$=$&$G$9!#(B

0000000  4d4d 2a00 0000 0800 0e00 fe00 0400 0000
                             ^^^^^^^^^^^^^^^^^^^
                                           (3'')

$B$H$$$&$3$H$G!"$I$J$?$+(B64bit$B%^%7%s>e$G(Bmake$B$K@.8y$7$?$H$$$&J}$O(B
$B$$$i$C$7$c$$$^$;$s$+!)(B DEC alpha$BMQ$N%Q%C%A$,$"$l$P$J$*4r$7$$!#(B
$B$A$J$_$K!"$3$3$K$"$k%^%7%s$O(Blittle endian$B$G$9$,!"$=$l$OK\<AE*(B
$B$JLdBj$G$O$J$$$H;W$$$^$9!#(B(tif_swab.c$B$G%P%$%H%9%o%C%W$9$k$+$i(B)

$B%U%)%m!<%"%C%W@h$OFbMF$K$h$C$FA*$s$G2<$5$$!#%Q%C%A$N:_=h$J$i(B
fj.comp.image$B!"(B64bit$B%^%7%s$N?4F@$J$i(Bfj.lang.c$B$r?d>)$7$^$9!#(B8-)
--
$B9u9>L@I'!wBgF|K\0u:~(B $B2hA|8&5f=j(B3$BIt(B
<a_kuroe@sparc691.gaken.dnp.co.jp>
