home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / vmsnet / sources / 429 next >
Encoding:
Internet Message Format  |  1992-11-04  |  32.2 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!sdd.hp.com!usc!news.service.uci.edu!unogate!mvb.saic.com!vmsnet-sources
  2. Newsgroups: vmsnet.sources
  3. From: dyson@iowasp.physics.uiowa.edu (Rick Dyson)
  4. Subject: xv-2-21a changes to run on VMS, part 08/08
  5. Date: Wed, 04 Nov 1992 21:12:55 GMT
  6. Message-ID: <8981994@MVB.SAIC.COM>
  7. Lines: 925
  8. Organization: Department of Physics and Astronomy, University of Iowa
  9. Approved: Mark.Berryman@Mvb.Saic.Com
  10.  
  11. Submitted-by: dyson@iowasp.physics.uiowa.edu (Rick Dyson)
  12. Posting-number: Volume 3, Issue 240
  13. Archive-name: xv-2-21_vms_changes/part08
  14. Supersedes: xv-2-21_vms_changes: Volume 2, Issue 83-86
  15.  
  16. -+-+-+-+-+-+-+-+ START OF PART 8 -+-+-+-+-+-+-+-+
  17. Xprovided`20on`20any`20given`20X`20display.`20`20Run`20`7B\it`20xdpyinfo`7D`20o
  18. Vn`20your`20display`20to
  19. Xfind`20out`20what`20visual`20types`20are`20supported.
  20. X
  21. X\IPitem`7B`7B--cursor\`20%
  22. X\it`20curs\rm%
  23. X\`20\`20(Resource\`20name:\`20cursor\`20%
  24. X\it`20integer\rm%
  25. X)`7D`7D
  26. XSpecifies`20an`20alternate`20cursor`20to`20use`20in`20the`20image`20window`20(
  27. Vinstead`20of
  28. Xthe`20normal`20'cross'`20cursor).`20`20curs`20values`20are`20obtained`20by`20f
  29. Vinding`20the
  30. Xcharacter`20number`20of`20a`20cursor`20you`20like`20in`20the`20'cursor'`20font
  31. V.`20`20(Run`20'xfd
  32. X--fn`20cursor'`20to`20display`20the`20cursor`20font.)`20`20For`20example,`20a
  33. V`20curs`20value`20of
  34. X'56'`20corresponds`20to`20the`20(singularly`20useless)`20'Gumby'`20cursor.
  35. X
  36. X\IPitem`7B`7B--keeparound`20(Resource`20name:`20keepAround`20`7B\it`20boolean
  37. V`7D)`7D`7D
  38. XThe`20`20'--keeparound'`20option`20is`20now`20poorly`20named,`20as`20I've`20ch
  39. Vanged`20the
  40. Xdefault`20behavior.`20`20Now,`20if`20you`20`7B\bf`20Delete`7D`20the`20last`20f
  41. Vile`20in`20the`20`7B\it`20xv\
  42. Xcontrols`7D`20list,`20nothing`20specify`20the`20'--keeparound'`20option,`20whi
  43. Vch`20toggles
  44. Xthe`20'--keeparound'`20flag`20off,`20the`20program`20will`20automatically`20ex
  45. Vit`20as`20a
  46. Xconvenience.`20`20It`20should`20probably`20be`20renamed`20'--goaway'`20or`20so
  47. Vmething
  48. X$\ldots$
  49. X
  50. X\IPitem`7B`7B--2xlimit\`20\`20(Resource\`20name:\`202xlimit\`20%
  51. X\it`20boolean\rm%
  52. X)`7D`7D
  53. XBy`20default,`20`7B\it`20xv`7D`20prevents`20the`20image`20window`20from`20ever
  54. V`20getting`20larger
  55. Xthan`20the`20screen.`20`20Unfortunately,`20because`20of`20this,`20if`20you`20l
  56. Voad`20an`20image
  57. Xthat`20is`20larger`20than`20your`20screen,`20the`20image`20will`20be`20shrunk
  58. V`20until`20it`20fits
  59. Xon`20your`20screen.`20`20Some`20folks`20find`20this`20undesirable`20behavior.
  60. V`20`20Specifying
  61. Xthe`20--2xlimit`20option`20doubles`20the`20size`20limitations.`20`20The`20imag
  62. Ve`20window`20will
  63. Xbe`20kept`20from`20getting`20larger`20than`202x`20the`20width`20and`20height
  64. V`20of`20your`20screen.
  65. X
  66. XJust`20in`20case`20you're`20wondering`20why`20there's`20any`20size`20limitatio
  67. Vns:`20it's
  68. Xfairly`20easy`20to`20accidentally`20ask`20for`20a`20huge`20image`20to`20be`20g
  69. Venerated.`20`20Simply
  70. Xcrop`20a`20section`20of`20the`20image,`20zoom`20so`20you`20can`20see`20the`20i
  71. Vndividual`20pixels,
  72. Xand`20uncrop.`20`20If`20there`20were`20no`20size`20limitations,`20the`20(expan
  73. Vded`20many`20times)
  74. Ximage`20could`20be`20huge,`20and`20might`20crash`20your`20X`20server.`20`20At
  75. V`20the`20very`20least,
  76. Xit`20would`20take`20a`20long`20period`20of`20time,`20and`20freeze`20your`20X
  77. V`20server`20during`20part
  78. Xof`20it.`20`20Generally`20undesirable`20behavior.
  79. X
  80. X\IPitem`7B`7B--nolimits\`20\`20(Resource\`20name:\`20nolimites\`20\`20%
  81. X\it`20boolean\rm%
  82. X)`7D`7D
  83. XFor`20the`20truly`20daring,`20this`20turns`20off`20all`20limitations`20on`20th
  84. Ve`20maximum`20size
  85. Xof`20an`20image`20window.`20`20(Well,`20there's`20still`20an`20X-imposed`20max
  86. Vimum`20size`20of
  87. X64k`20by`2064k,`20but`20that`20really`20shouldn't`20be`20a`20problem.)`20Warni
  88. Vng:`20`20as
  89. Xmentioned`20above,`20it`20is`20fairly`20easy`20to`20accidentally`20generate
  90. V`20a`20huge`20image
  91. Xwhen`20you`20do`20an`20`7B\bf`20UnCrop`7D`20command,`20and`20you`20may`20well
  92. V`20crash`20`7B\it`20xv`7D,
  93. Xyour`20X`20server,`20the`20host`20machine,`20or`20all`20three.`20`20Use`20At
  94. V`20Your`20Own`20Risk!!!
  95. X
  96. X\IPitem`7B`7B--rv\`20\`20(Resource\`20name:\`20reverse)`7D`7D
  97. XMakes`20`7B\it`20xv`7D`20display`20a`20'negative'`20of`20the`20loaded`20image.
  98. V`20`20White`20becomes
  99. Xblack,`20and`20black`20becomes`20white.`20`20Color`20images`20will`20have`20'i
  100. Vnteresting'
  101. Xeffects,`20as`20the`20RGB`20components`20are`20individually`20reversed.`20`20F
  102. Vor`20example,
  103. X`7B\it`20red`7D`20(255,0,0)`20will`20become`20`7B\it`20cyan`7D`20(0,255,255),
  104. V`20`7B\it`20yellow`7D`20will
  105. Xbecome`20`7B\it`20blue`7D,`20and`20so`20on.
  106. X
  107. X\IPitem`7B`7B--DEBUG\`20%
  108. X\it`20level\rm%
  109. X\`20\`20(Resource\`20name:\`20$<$none$>$)`7D`7D
  110. XTurns`20on`20some`20debugging`20information.`20`20You`20shouldn't`20need`20thi
  111. Vs.`20`20If
  112. Xeverything`20worked`20perfectly,`20I`20wouldn't`20need`20this`20either.
  113. X
  114. X\IPitem`7B`7B--browse\`20\`20(Resource\`20name:\`20browseMode\`20%
  115. X\it`20boolean\rm%
  116. X)`7D`7D
  117. XPrevents`20the`20`7B\it`20xv`20load`7D`20window`20from`20being`20closed`20when
  118. Vever`20you
  119. Xsuccessfully`20load`20a`20file.`20`20This`20makes`20'browsing'`20a`20directory
  120. V`20somewhat
  121. Xmore`20pleasant.
  122. X
  123. X\IPitem`7B`7B--nostat\`20\`20(Resource\`20name:\`20nostat\`20%
  124. X\it`20boolean\rm%
  125. X)`7D`7D
  126. XTurns`20off`20the`20stat()`20call`20is`20is`20performed`20for`20each`20file
  127. V`20whenever`20you`20change
  128. Xdirectories`20in`20the`20
  129. X`7B\it`20xv`20load`7D
  130. Xand`20
  131. X`7B\it`20xv`20save`7D
  132. Xwindows.`20`20This`20is`20useful
  133. Xif`20you're`20on`20a`20machine`20with`20lots`20of`20remote`20files`20mounted
  134. V`20on`20it,`20and`20you`20find
  135. Xthe`20directory`20switching`20to`20be`20too`20slow.
  136. X
  137. X\IPitem`7B`7B--loadclear\`20\`20(Resource\`20name:\`20clearOnLoad\`20%
  138. X\it`20boolean\rm%
  139. X)`7D`7D
  140. XIf`20you`20were`20on`20a`20PseudoColor`20display,`20`7B\it`20xv`7D`20used`20to
  141. V`20automatically
  142. Xclear`20the`20image`20window`20(or`20the`20root`20window,`20if`20you`20were
  143. V`20in`20a`20root`20mode),
  144. Xwhenever`20you`20loaded`20a`20new`20image.`20`20This`20was`20to`20prevent`20th
  145. Ve`20potentially
  146. Xannoying/confusing`20'rainbow'`20effect`20that`20happens`20when`20colormap`20e
  147. Vntries
  148. Xare`20freed`20and`20reallocated`20with`20different`20colors.`20`20Ths`20has
  149. V`20changed.`20`20By
  150. Xdefault,`20`7B\it`20xv`7D`20no`20longer`20clears`20the`20image/root`20window.
  151. V`20`20This`20is`20for
  152. Xtwo`20reasons:`20`20I've`20decided`20that`20the`20rainbow`20effect`20is`20semi
  153. V-entertaining,
  154. Xin`20that`20it`20gives`20you`20something`20to`20look`20at`20while`20the`20next
  155. V`20image`20is`20being
  156. Xloaded.`20`20Secondly,`20if`20you`20are`20viewing`20a`20series`20of`20images
  157. V`20that`20have`20the
  158. Xsame`20colors`20in`20them,`20it's`20possible`20for`20`7B\it`20xv`7D`20to`20ani
  159. Vmate`20them`20(by`20using
  160. Xthe`20'--wait'`20command`20line`20option),`20albeit`20no`20faster`20than`20one
  161. V`20frame`20every
  162. X1--2`20seconds.`20`20For`20example,`20you`20can`20go`20get`20the`20satellite
  163. V`20radar`20images
  164. Xfrom`20vmd.cso.uiuc.edu`20(in`20the`20directory`20'wx'),`20run`20'xv`20--wait
  165. V`200`20--wloop
  166. XSA*',`20and`20voila!`20`20Just`20like`20the`20evening`20news!
  167. X
  168. X\IPitem`7B`7B--`7D`7D
  169. XSpecifying`20'--'`20all`20by`20itself`20tells`20%
  170. X`7B\it`20xv`7D
  171. Xto`20take`20its`20input`20from
  172. Xstdin,`20rather`20than`20from`20a`20file.`20`20This`20lets`20you`20put`20%
  173. X`7B\it`20xv`7D
  174. Xon`20the`20end`20of`20a
  175. XUn*x`20pipe.
  176. X
  177. X\end`7BIPlist`7D
  178. X
  179. X\shead`7BSection`209.9:`20`20Color`20Editor`20Resources`7D
  180. X
  181. XYou`20can`20set`20default`20values`20for`20all`20of`20the`20HSV`20and`20RGB
  182. V`20modification
  183. Xcontrols`20in`20the`20%
  184. X`7B\it`20xv`20color`20editor`7D
  185. Xwindow`20via`20X`20resources.`20`20The`20easiest
  186. Xway`20to`20explain`20this`20is`20with`20an`20example.
  187. X
  188. X\begin`7BTPlist`7D`7B$\bullet$`7D
  189. X\item`5B`7B$\bullet$`7D`5D
  190. XStart`20
  191. X`7B\it`20xv`7D
  192. Xand`20put`20it`20in`20the`20background`20by`20typing`20'xv`20\`26'.`20`20
  193. X\item`5B`7B$\bullet$`7D`5D
  194. XType`20the`20command`20'cat`20$>$foo'`20in`20an`20active`20
  195. X`7B\it`20xterm`7D`20window
  196. X\item`5B`7B$\bullet$`7D`5D
  197. XBring`20the`20`7B\it`20xv`20color`20editor`7D`20window`20up.`20`20
  198. X\item`5B`7B$\bullet$`7D`5D
  199. XIssue`20the`20`7B\bf`20Cut`20Resources`7D`20command.
  200. X\item`5B`7B$\bullet$`7D`5D
  201. XClick`20your`20`7B\it`20Middle`7D`20mouse`20button`20in`20the`20`7B\it`20xterm
  202. V`7D`20window.`20`20A`20set
  203. Xof`20resource`20lines`20describing`20the`20current`20state`20of`20the`20`7B\it
  204. V`20xv`20color
  205. Xeditor`7D`20controls`20will`20be`20'pasted'`20into`20the`20window.
  206. X\item`5B`7B$\bullet$`7D`5D
  207. XYou`20could`20type`20'$<$ctrl-D$>$'`20in`20the`20`7B\it`20xterm`7D`20to`20comp
  208. Vlete`20the`20cat`20command,
  209. Xedit`20this`20file,`20and`20put`20it`20in`20your`20.Xdefaults/.Xresources`20fi
  210. Vle.
  211. X\end`7BTPlist`7D
  212. X
  213. X\noindent
  214. XThe`20lines`20generated`20by`20
  215. X`7B\bf`20Cut`20Resources`7D
  216. Xwill`20look`20like`20the`20following:
  217. X\nwl
  218. Xxv.default.huemap1:`20330`20`2030`20`20CW`20330`20`2030`20`20CW
  219. X\nwl
  220. Xxv.default.huemap2:`20`2030`20`2090`20`20CW`20`2030`20`2090`20`20CW
  221. X\nwl
  222. Xxv.default.huemap3:`20`2090`20150`20`20CW`20`2090`20150`20`20CW
  223. X\nwl
  224. Xxv.default.huemap4:`20150`20210`20`20CW`20150`20210`20`20CW
  225. X\nwl
  226. Xxv.default.huemap5:`20210`20270`20`20CW`20210`20270`20`20CW
  227. X\nwl
  228. Xxv.default.huemap6:`20270`20330`20`20CW`20270`20330`20`20CW
  229. X\nwl
  230. Xxv.default.whtmap:`20`200`200`201
  231. X\nwl
  232. Xxv.default.satval:`20`200
  233. X\nwl
  234. Xxv.default.igraf:`20S`204`20:`200,0`20:`2064,64`20:`20192,192`20:`20254,254
  235. X\nwl
  236. Xxv.default.rgraf:`20S`204`20:`200,0`20:`2064,64`20:`20192,192`20:`20254,254
  237. X\nwl
  238. Xxv.default.ggraf:`20S`204`20:`200,0`20:`2064,64`20:`20192,192`20:`20254,254
  239. X\nwl
  240. Xxv.default.bgraf:`20S`204`20:`200,0`20:`2064,64`20:`20192,192`20:`20254,254
  241. X
  242. X\noindent
  243. XThese`20lines`20completely`20describe`20one`20state`20of`20the`20`7B\it`20xv
  244. V`20color`20editor`7D
  245. Xcontrols.`20`20There`20are`20five`20different`20states`20that`20you`20can`20sp
  246. Vecify`20via`20X
  247. Xresources.`20`20The`20'default'`20state`20(as`20shown)`20holds`20the`20setting
  248. Vs`20used
  249. Xwhenever`20the`20program`20is`20first`20started,`20and`20whenever`20the`20Rese
  250. Vt`20command`20is
  251. Xused.`20`20You`20can`20also`20store`20settings`20in`20one`20of`20the`20four
  252. V`20`7B\it`20xv`7D`20presets
  253. X(accessed`20via`20the`20'1'--'4'`20buttons`20in`20the`20`7B\it`20xv`20color
  254. V`20editor`7D)`20by
  255. Xchanging`20the`20string`20'default'`20in`20the`20above`20lines`20to`20'preset1
  256. V',`20'preset2',
  257. X'preset3',`20or`20'preset4'`20respectively.
  258. X
  259. XThere`20are`20four`20types`20of`20resource`20described`20in`20these`20lines:
  260. V`20huemap,
  261. Xwhtmap,`20satval,`20and`20graf.
  262. X
  263. X\shead`7BSection`209.9.1:`20`20Huemap`20Resources`7D
  264. X
  265. XThe`20huemap`20resources`20describe`20the`20state`20of`20the`20hue`20remapping
  266. V`20dials.
  267. XThere`20are`20six`20huemap`20resources`20per`20state`20of`20the`20`7B\it`20xv
  268. V`20color`20editor`7D.
  269. X
  270. XThese`20huemap`20resources`20are`20numbered`20'huemap1',`20'huemap2',`20$\ldot
  271. Vs$
  272. X'huemap6',`20and`20correspond`20to`20the`20'1'--'6'`20radio`20buttons`20under
  273. V`20the`20hue
  274. Xremapping`20dials.
  275. X
  276. XEach`20huemap`20resources`20takes`20six`20parameters:
  277. X\begin`7BIPlist`7D
  278. X\IPitem`7B`7B1.`7D`7D
  279. XThe`20'starting'`20angle`20of`20the`20From`20range,`20in`20degrees`20(integer)
  280. V.
  281. X\IPitem`7B`7B2.`7D`7D
  282. XThe`20'ending'`20angle`20of`20the`20From`20range,`20in`20degrees`20(integer).
  283. X\IPitem`7B`7B3.`7D`7D
  284. XThe`20direction`20of`20the`20From`20range.`20`20Either`20'cw'`20(clockwise)
  285. V`20
  286. Xor`20'ccw'`20(counter-clockwise).
  287. X\IPitem`7B`7B4.`7D`7D
  288. XThe`20'starting'`20angle`20of`20the`20To`20range,`20in`20degrees`20(integer).
  289. X\IPitem`7B`7B5.`7D`7D
  290. XThe`20'ending'`20angle`20of`20the`20To`20range,`20in`20degrees`20(integer).
  291. X\IPitem`7B`7B6.`7D`7D
  292. XThe`20direction`20of`20the`20To`20range.`20`20Either`20'cw'`20or`20'ccw'.
  293. X\end`7BIPlist`7D
  294. X
  295. X\shead`7BSection`209.9.2:`20`20Whtmap`20Resources`7D
  296. X
  297. XThe`20whtmap`20resource`20describes`20the`20state`20of`20the`20white`20remappi
  298. Vng
  299. Xcontrol.`20`20There`20is`20one`20whtmap`20resource`20per`20state`20of`20the
  300. V`20
  301. X`7B\it`20xv`20color`20editor`7D
  302. Xcontrols.`20`20The`20whtmap`20resource`20takes`20three`20parameters:
  303. X\begin`7BIPlist`7D
  304. X\IPitem`7B`7B1.`7D`7D
  305. XThe`20hue`20to`20remap`20'white'`20to,`20in`20degrees`20(integer).
  306. X\IPitem`7B`7B2.`7D`7D
  307. XThe`20saturation`20to`20give`20to`20the`20remapped`20'white',`20in`20percent
  308. V`20(integer).
  309. X\IPitem`7B`7B3.`7D`7D
  310. XA`20boolean`20specifying`20whether`20the`20white`20remapping`20control`20is
  311. V`20enabled.
  312. XIf`20'1',`20the`20control`20is`20enabled.`20`20If`20'0',`20the`20control`20is
  313. V`20disabled.
  314. X\end`7BIPlist`7D
  315. X
  316. X\shead`7BSection`209.9.3:`20`20Satval`20Resource`7D
  317. X
  318. XThe`20satval`20resource`20describes`20the`20value`20of`20the`20Saturation`20di
  319. Val.`20`20There
  320. Xis`20one`20satval`20resource`20per`20state.`20`20The`20satval`20resource`20tak
  321. Ves`20a`20single
  322. Xinteger`20value,`20in`20the`20range`20+/--100,`20which`20specifies`20how`20muc
  323. Vh`20to`20add
  324. Xor`20subtract`20to`20overall`20image`20color`20saturation.
  325. X
  326. X\shead`7BSection`209.9.4:`20`20Graf`20Resources`7D
  327. X
  328. XThe`20graf`20resources`20describe`20the`20state`20of`20the`20four`20'graph'
  329. V`20windows`20in
  330. Xthe`20`7B\it`20xv`20color`20editor`7D
  331. Xwindow`20(Intensity,`20Red,`20Green,`20and`20Blue).`20`20The
  332. Xgraf`20resources`20can`20be`20in`20one`20of`20two`20formats,`20'gamma'`20and
  333. X'spline/line'.
  334. X
  335. X\noindent
  336. XIn`20'gamma'`20format,`20the`20graf`20resource`20takes`20two`20parameters:
  337. X\begin`7BIPlist`7D
  338. X\IPitem`7B`7B1.`7D`7D
  339. XThe`20letter`20'G',`20specifying`20'gamma'`20mode
  340. X\IPitem`7B`7B2.`7D`7D
  341. XA`20single`20floating`20point`20number`20specifying`20the`20gamma`20value.
  342. X
  343. X\end`7BIPlist`7D
  344. X
  345. X\noindent
  346. XIn`20'spline/line'`20mode,`20the`20graf`20resource`20takes`20a`20variable`20nu
  347. Vmber`20of`20parameters:
  348. X\begin`7BIPlist`7D
  349. X\IPitem`7B`7B1.`7D`7D
  350. XThe`20letter`20'S'`20specifying`20'spline'`20mode,`20or`20the`20letter`20'L'
  351. V`20specifying
  352. X'line'`20mode.
  353. X\IPitem`7B`7B2.`7D`7D
  354. XAn`20integer`20number`20indicating`20the`20number`20of`20handles`20(control
  355. V`20points)
  356. Xthat`20this`20graph`20window`20will`20have.`20`20(Must`20be`20in`20the`20range
  357. V`202--16,
  358. Xinclusive.)
  359. X\IPitem`7B`7B3.`7D`7D
  360. XFor`20each`20handle,`20there`20will`20be`20a`20':',`20and`20the`20x`20and`20y
  361. V`20positions`20of`20the
  362. Xhandle,`20separated`20by`20a`20comma.`20`20The`20x`20and`20y`20positions`20can
  363. V`20be`20in`20the
  364. Xrange`200--255`20inclusive.
  365. X\end`7BIPlist`7D
  366. X
  367. X\shead`7BSection`209.9.5:`20`20Other`20Resources`7D
  368. X
  369. XAlso,`20there`20are`20the`20boolean`20resources`20'autoApply',`20'displayMods'
  370. V,`20
  371. Xand`20'autoReset',`20which`20control`20the`20initial`20settings`20of`20the`20t
  372. Vhree
  373. Xcheckboxes`20in`20the`20`7B\it`20xv`20color`20editor`7D`20window.
  374. X
  375. XThere`20are`20also`20boolean`20resources`20'saveNormal',`20'pspreview',`20
  376. Xand`20'pscompress'`20which`20control`20the`20initial`20settings`20of`20the`20c
  377. Vheckboxes
  378. Xin`20the`20`7B\it`20xv`20save`7D`20and`20`7B\it`20xv`20postscript`7D`20windows
  379. V.
  380. X
  381. X\shead`7BLIMITATIONS`7D
  382. X
  383. X`7B\it`20xv`7D
  384. Xwill`20NOT`20work`20on`20displays`20that`20aren't`201--,`202--,`204--,`206--,
  385. V`208--,`2016--`2024--,`20
  386. Xor`2032--bits
  387. Xdeep.`20`20Luckily,`20that`20should`20still`20cover`20nearly`20every`20display
  388. V`20out`20there.`20`20It
  389. Xmay`20not`20work`20on`20certain`206--`20or`2024--bit`20displays.
  390. X
  391. XIt`20also`20only`20displays`20the`20first`20image`20in`20GIF`20files`20that
  392. V`20have`20multiple`20
  393. Ximages`20in`20them.
  394. X
  395. XAs`20for`20PM`20pictures,`20this`20program`20only`20displays`201--plane`20PM\_
  396. VI`20pictures,`20or
  397. X1--,`203--,`20or`204--plane`20PM\_C`20pictures.
  398. X
  399. X\shead`7BPM`20FORMAT`7D
  400. XThe`20PM`20format`20is`20a`20file`20format`20that`20we`20use`20at`20the`20GRAS
  401. VP`20Lab`20for`20our
  402. Ximage`20processing`20work.`20`20If`20you`20aren't`20at`20Penn,`20you`20are`20u
  403. Vnlikely`20to
  404. Xever`20run`20into`20a`20PM-format`20file,`20so`20don't`20worry`20about`20it.
  405. V`20`20Please
  406. Xignore`20all`20references`20to`20PM.
  407. X
  408. XThe`204--,`206--,`2016--,`2024--,`20and`2032--bit`20code`20has`20not`20been
  409. V`20extensively`20
  410. Xtested.`20`20(A`204--bit`20MicroVax`20GPX`20system,`20a`206--bit`20HP`209000/3
  411. V20,`20a`2016--bit`20Sony
  412. X3710,`20and`20a`20
  413. X24--bit`20HP`209000/350,`20respectively.`20`20The`2032--bit`20code`20hasn't
  414. V`20actually`20been`20
  415. Xtested`20at`20all.)`20`20
  416. XYou`20won't`20be`20able`20to`20do`20'`7B\bf`20--ncols`7D`200'`20on`20a`206--,
  417. V`2016--,`2024--,`20or`2032--bit`20
  418. Xdisplay,`20not`20that`20you`20should`20want`20to.
  419. X
  420. X\shead`7BAUTHORS`7D
  421. XJohn`20Bradley`20`20--`20`20bradley@cis.upenn.edu
  422. X
  423. XGIF`20reading`20code`20based`20on`20gif2ras.c,`20by`20Patrick`20J.`20Naughton
  424. V`20
  425. X(naughton@wind.sun.com)
  426. X
  427. XGIF`20writing`20code`20essentially`20unchanged`20from`20code`20written`20
  428. Xby`20Michael`20Maudlin`20(mlm@cs.cmu.edu).
  429. X
  430. XSUN`20Rasterfile`20i/o`20code`20written`20by`20Dave`20Heath`20`20(heath@cs.jhu
  431. V.edu)
  432. X
  433. XJPEG`20interface`20code`20written`20by`20Markus`20Baur`20`20(s\_baur@iravcl.ir
  434. Va.uka.de)
  435. X
  436. XJPEG`20i/o`20code`20provided`20by`20the`20Independent`20JPEG`20Group.
  437. X
  438. XTIFF`20i/o`20code`20and`20interface`20code`20written`20by`20Sam`20Leffler`20
  439. V`20(sam@sgi.com)
  440. X
  441. XPortions`20of`20'ppmquant'`20snarfed`20for`20the`20'--best24'`20algorithm.`20
  442. V`20
  443. X`7B\it`20ppmquant`7D`20(and`20the`20rest`20of`20the`20`7B\it`20pbmplus`7D`20pa
  444. Vckage)`20was`20written`20by
  445. XJef`20Poskanzer.`20`20(jef@well.sf.ca.us)
  446. X
  447. XfsQuick`20code`20written`20and`20supplied`20by`20David`20B.`20Rosen`20`20(rose
  448. Vn@cns.bu.edu).`20`20
  449. XThis`20code`20is`20a`20very`20fast`20implementation`20of`20Floyd-Steinberg`20d
  450. Vithering`20for
  451. X1--bit`20b/w`20displays.
  452. X
  453. X%
  454. X%`20end`20of`20input`20file:`20xv.man
  455. X%--------------------------------------------------
  456. X\end`7Bdocument`7D
  457. $ call unpack [.DOCS]XV.TEX;1 856525392 ""
  458. $!
  459. $ create 'f'
  460. X#`20MMS`20Description`20file`20for`20the`20Tag`20Image`20File`20Format`20Libra
  461. Vry
  462. X#
  463. X#`20Copyright`20(c)`201988,`201989,`201990,`201991`20Sam`20Leffler
  464. X#`20Copyright`20(c)`201991`20Silicon`20Graphics,`20Inc.
  465. X#
  466. X#`20Permission`20to`20use,`20copy,`20modify,`20distribute,`20and`20sell`20this
  467. V`20software`20and
  468. X#`20its`20documentation`20for`20any`20purpose`20is`20hereby`20granted`20withou
  469. Vt`20fee,`20provided
  470. X#`20that`20(i)`20the`20above`20copyright`20notices`20and`20this`20permission
  471. V`20notice`20appear`20in
  472. X#`20all`20copies`20of`20the`20software`20and`20related`20documentation,`20and
  473. V`20(ii)`20the`20names`20of
  474. X#`20Sam`20Leffler`20and`20Silicon`20Graphics`20may`20not`20be`20used`20in`20an
  475. Vy`20advertising`20or
  476. X#`20publicity`20relating`20to`20the`20software`20without`20the`20specific,`20p
  477. Vrior`20written
  478. X#`20permission`20of`20Stanford`20and`20Silicon`20Graphics.
  479. X#
  480. X#`20THE`20SOFTWARE`20IS`20PROVIDED`20"AS-IS"`20AND`20WITHOUT`20WARRANTY`20OF
  481. V`20ANY`20KIND,
  482. X#`20EXPRESS,`20IMPLIED`20OR`20OTHERWISE,`20INCLUDING`20WITHOUT`20LIMITATION,
  483. V`20ANY
  484. X#`20WARRANTY`20OF`20MERCHANTABILITY`20OR`20FITNESS`20FOR`20A`20PARTICULAR`20PU
  485. VRPOSE.
  486. X#
  487. X#`20IN`20NO`20EVENT`20SHALL`20SAM`20LEFFLER`20OR`20SILICON`20GRAPHICS`20BE`20L
  488. VIABLE`20FOR
  489. X#`20ANY`20SPECIAL,`20INCIDENTAL,`20INDIRECT`20OR`20CONSEQUENTIAL`20DAMAGES`20O
  490. VF`20ANY`20KIND,
  491. X#`20OR`20ANY`20DAMAGES`20WHATSOEVER`20RESULTING`20FROM`20LOSS`20OF`20USE,`20DA
  492. VTA`20OR`20PROFITS,
  493. X#`20WHETHER`20OR`20NOT`20ADVISED`20OF`20THE`20POSSIBILITY`20OF`20DAMAGE,`20AND
  494. V`20ON`20ANY`20THEORY`20OF
  495. X#`20LIABILITY,`20ARISING`20OUT`20OF`20OR`20IN`20CONNECTION`20WITH`20THE`20USE
  496. V`20OR`20PERFORMANCE
  497. X#`20OF`20THIS`20SOFTWARE.
  498. X#
  499. X#`20This`20MMS`20description`20file`20was`20written`20by`20Rick`20Dyson`20on
  500. V`20or`20before`2011-NOV-1991
  501. X#`09(dyson@iowasp.physics.uiowa.edu)
  502. X#`09and`20was`20updated`2028-APR-1992`20for`20LIBTIFF`20v3.0`20dated`2019-FEB-
  503. V1992
  504. X#
  505. X#`20It`20is`20based`20on`20the`20Unix`20Makefile`20by`20Leffler
  506. X#
  507. X
  508. XNULL`20=
  509. X
  510. XIPATH`20=`09`5B`5D
  511. X#
  512. X#`20Library-wide`20configuration`20defines:
  513. X#`20`20`20`20MMAP_SUPPORT`09add`20support`20for`20memory`20mapping`20read-only
  514. V`20files
  515. X#`20`20`20`20COLORIMETRY_SUPPORT`20add`20support`20for`206.0`20colorimetry`20t
  516. Vags
  517. X#`20`20`20`20JPEG_SUPPORT`09add`20support`20for`206.0`20JPEG`20tags`20`26`20JP
  518. VEG`20algorithms
  519. X#`20`20`20`20YCBCR_SUPPORT`09add`20support`20for`206.0`20YCbCr`20tags
  520. X#`20`20`20`20CMYK_SUPPORT`09add`20support`20for`206.0`20CMYK`20tags
  521. X#
  522. X#`20Compression`20configuration`20defines:
  523. X#`20`20`20`20CCITT_SUPPORT`09add`20support`20for`20CCITT`20Group`203`20`26`204
  524. V`20algorithms
  525. X#`20`20`20`20PACKBITS_SUPPORT`09add`20support`20for`20Macintosh`20PackBits`20a
  526. Vlgorithm
  527. X#`20`20`20`20LZW_SUPPORT`09add`20support`20for`20LZW`20algorithm
  528. X#`20`20`20`20THUNDER_SUPPORT`09add`20support`20for`20ThunderScan`204-bit`20RLE
  529. V`20algorithm
  530. X#`20`20`20`20NEXT_SUPPORT`09add`20support`20for`20NeXT`202-bit`20RLE`20algorit
  531. Vhm
  532. X#`20`20`20`20JPEG_SUPPORT`09add`20support`20for`20JPEG`20DCT`20algorithm
  533. X#
  534. X#`20Note`20that`20if`20you`20change`20the`20library-wide`20configuration,`20yo
  535. Vu'll
  536. X#`20need`20to`20manual`20force`20a`20full`20rebuild.`20`20Changing`20the`20con
  537. Vfiguration
  538. X#`20of`20which`20compression`20algorithms`20are`20included`20in`20the`20librar
  539. Vy`20is
  540. X#`20automatically`20handled`20(i.e.`20tif_compress.o`20has`20a`20dependency
  541. V`20on
  542. X#`20the`20Makefile).
  543. X#
  544. X
  545. XCOMPDEFS`20=`20$(CFLAGS)`20/Include_Directory`20=`20($(IPATH))`20/Define`20=
  546. V`20("BSDTYPES=1",__STDC__,LZW_SUPPORT,COLORIMETRY_SUPPORT,JPEG_SUPPORT,YCBCR_S
  547. VUPPORT,CMYK_SUPPORT)
  548. XDEFS`20=`20/Define`20=`20("BSDTYPES=1",__STDC__,COLORIMETRY_SUPPORT,JPEG_SUPPO
  549. VRT,YCBCR_SUPPORT,CMYK_SUPPORT)
  550. XOPTIMIZE`20=`20/Optimize
  551. XDEBUG`20=`20/NoDebug
  552. XCFLAGS`20=`20$(CFLAGS)`20/Include_Directory`20=`20($(IPATH))`20$(DEFS)`20$(DEB
  553. VUG)`20$(OPTIMIZE)
  554. XOPT`20=`20Sys$Disk:`5B-`5DOPTIONS.OPT/Option
  555. X
  556. XINCS`20=`09tiff.h`20tiffio.h
  557. X
  558. XSRCS`20=`09tif_fax3.c`20\
  559. X`09tif_fax4.c`20\
  560. X`09tif_aux.c`20\
  561. X`09tif_ccittrle.c`20\
  562. X`09tif_close.c`20\
  563. X`09tif_compat.c`20\
  564. X`09tif_compress.c`20\
  565. X`09tif_dir.c`20\
  566. X`09tif_dirinfo.c`20\
  567. X`09tif_dirread.c`20\
  568. X`09tif_dirwrite.c`20\
  569. X`09tif_dumpmode.c`20\
  570. X`09tif_error.c`20\
  571. X`09tif_getimage.c`20\
  572. X`09tif_jpeg.c`20\
  573. X`09tif_flush.c`20\
  574. X`09tif_lzw.c`20\
  575. X`09tif_machdep.c`20\
  576. X`09tif_open.c`20\
  577. X`09tif_packbits.c`20\
  578. X`09tif_print.c`20\
  579. X`09tif_read.c`20\
  580. X`09tif_swab.c`20\
  581. X`09tif_strip.c`20\
  582. X`09tif_thunder.c`20\
  583. X`09tif_tile.c`20\
  584. X`09tif_version.c`20\
  585. X`09tif_warning.c`20\
  586. X`09tif_write.c
  587. X
  588. XOBJS`20=`09tif_fax3.obj`20\
  589. X`09tif_fax4.obj`20\
  590. X`09tif_aux.obj`20\
  591. X`09tif_ccittrle.obj`20\
  592. X`09tif_close.obj`20\
  593. X`09tif_compat.obj`20\
  594. X`09tif_compress.obj`20\
  595. X`09tif_dir.obj`20\
  596. X`09tif_dirinfo.obj`20\
  597. X`09tif_dirread.obj`20\
  598. X`09tif_dirwrite.obj`20\
  599. X`09tif_dumpmode.obj`20\
  600. X`09tif_error.obj`20\
  601. X`09tif_getimage.obj`20\
  602. X`09tif_jpeg.obj`20\
  603. X`09tif_flush.obj`20\
  604. X`09tif_lzw.obj`20\
  605. X`09tif_machdep.obj`20\
  606. X`09tif_open.obj`20\
  607. X`09tif_packbits.obj`20\
  608. X`09tif_print.obj`20\
  609. X`09tif_read.obj`20\
  610. X`09tif_strip.obj`20\
  611. X`09tif_swab.obj`20\
  612. X`09tif_thunder.obj`20\
  613. X`09tif_tile.obj`20\
  614. X`09tif_version.obj`20\
  615. X`09tif_warning.obj`20\
  616. X`09tif_write.obj
  617. X
  618. XOBJLIST`20=`20tif_fax3.obj,tif_fax4.obj,tif_aux.obj,tif_ccittrle.obj,tif_close
  619. V.obj,tif_compat.obj,tif_compress.obj,tif_dir.obj,tif_dirinfo.obj,tif_dirread.o
  620. Vbj,tif_dirwrite.obj,tif_dumpmode.obj,tif_error.obj,tif_getimage.obj,tif_jpeg.o
  621. Vbj,tif_flush.obj,tif_lzw.obj,tif_machdep.obj,tif_open.obj,tif_packbits.obj,tif
  622. V_print.obj,tif_read.obj,tif_strip.obj,tif_swab.obj,tif_thunder.obj,tif_tile.ob
  623. Vj,tif_version.obj,tif_warning.obj,tif_write.obj
  624. X
  625. XLIBTIFF`20=`09libtiff.olb
  626. X
  627. X.first
  628. X`09@`20Define`20/NoLog`20Sys`20Sys$Library
  629. X
  630. X$(LIBTIFF)`20:`09$(OBJS)
  631. X`20`20`20`20`20`20`20`20If`20"''F$Search`20("$(LIBTIFF)")'"`20.eqs.`20""`20The
  632. Vn`20Library`20/Create`20$(LIBTIFF)
  633. X`09Library`20/Replace`20$(LIBTIFF)`20$(OBJLIST)
  634. X
  635. X$(OBJS)`20:`20`09tiffio.h`20tiff.h`20tiffcompat.h`20tiffioP.h
  636. X
  637. Xtif_compress.obj`20:`09tif_compress.c
  638. X`09$(CC)`20$(COMPDEFS)`20tif_compress.c
  639. X
  640. Xtif_dir.obj`20:`09tif_dir.c
  641. X
  642. Xtif_fax3.obj`20:`09tif_fax3.c`20g3states.h`20t4.h`20tif_fax3.h
  643. X
  644. Xmkg3states.exe`20:`09mkg3states.c`20t4.h`20`5B-`5Dargproc.obj
  645. X`09$(CC)`20$(CFLAGS)`20/Define`20=`20("USE_PROTOTYPES=1",`20"USE_VARARGS=0")
  646. V`20mkg3states.c
  647. X`09$(LINK)`20$(LINKFLAGS)`20mkg3states,`5B-`5Dargproc,$(OPT)
  648. X
  649. Xg3states.h`20:`09`09mkg3states.exe
  650. X`09Mcr`20Sys$Disk:`5B`5Dmkg3states.exe`20>g3states.h
  651. X
  652. X`5B-`5Dargproc.obj`20:`09`5B-`5Dargproc.c`20`5B-`5Dincludes.h
  653. X`09$(CC)`20$(CFLAGS)`20`5B-`5Dargproc.c
  654. X
  655. Xclean`20:
  656. X`09@-`20Set`20Protection`20=`20Owner:RWED`20*.*;-1,*.obj
  657. X`09-`20Purge`20/NoLog`20/NoConfirm`20*.*
  658. X`09-`20Delete`20/NoLog`20/NoConfirm`20*.obj;*,*.exe;*
  659. $ call unpack [.TIFF]MAKEFILE.VMS;222 460065838 ""
  660. $!
  661. $ create 'f'
  662. X-`20`20264,`20`20266
  663. X#ifndef`20VMS
  664. Xvoid
  665. X#endif
  666. XDECLARE2(main,`20int,`20argc,`20char**,`20argv)
  667. X`7B
  668. X#ifdef`20VMS
  669. X`20`20`20`20getredirection(`26argc,`20`26argv);
  670. X#endif
  671. X/
  672. $ call unpack [.TIFF]MKG3STATES.DIF;222 1969715145 ""
  673. $!
  674. $ create 'f'
  675. X-`20`20117,`20`20119
  676. X#ifdef`20VMS
  677. X#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot,`20"c
  678. Vtx=stm")
  679. X#else
  680. X#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot)
  681. X#endif`20/*`20VMS`20*/
  682. X#endif`20/*`20MSDOS`20*/
  683. X#endif`20/*`20applec`20or`20THINK_C`20*/
  684. X/
  685. $ call unpack [.TIFF]TIFFCOMPAT.DIF;222 1467622352 ""
  686. $!
  687. $ create 'f'
  688. X-`20`20`2059,`20`20`2063
  689. X#ifdef`20VMS
  690. X-`20`20`2067,`20`20`2067
  691. X#else
  692. X#if`20defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_CONST
  693. Xextern`20const`20char`20TIFFVersion`5B`5D;
  694. Xextern`20const`20unsigned`20char`20TIFFBitRevTable`5B256`5D;
  695. Xextern`20const`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D;
  696. X#else
  697. Xextern`20char`20TIFFVersion`5B`5D;
  698. Xextern`20unsigned`20char`20TIFFBitRevTable`5B256`5D;
  699. Xextern`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D;
  700. X#endif
  701. X#endif`20/*`20VMS`20*/
  702. X/
  703. $ call unpack [.TIFF]TIFFIO.DIF;222 906759781 ""
  704. $!
  705. $ create 'f'
  706. X***`20mkg3states.c
  707. X---`20oldtiff:mkg3states.c
  708. X**************
  709. X***`20261,266
  710. X`20`20int`09verbose`20=`20FALSE;
  711. X`20`20char`09*storage_class`20=`20"";
  712. X`20`20
  713. X`20`20void
  714. X`20`20DECLARE2(main,`20int,`20argc,`20char**,`20argv)
  715. X`20`20`7B
  716. X---`20261,267`20-----
  717. X`20`20int`09verbose`20=`20FALSE;
  718. X`20`20char`09*storage_class`20=`20"";
  719. X`20`20
  720. X+`20#ifndef`20VMS
  721. X`20`20void
  722. X`20`20#endif
  723. X`20`20DECLARE2(main,`20int,`20argc,`20char**,`20argv)
  724. X**************
  725. X***`20262,267
  726. X`20`20char`09*storage_class`20=`20"";
  727. X`20`20
  728. X`20`20void
  729. X`20`20DECLARE2(main,`20int,`20argc,`20char**,`20argv)
  730. X`20`20`7B
  731. X`20`20`20`20`20`20while`20(argc`20>`201`20`26`26`20argv`5B1`5D`5B0`5D`20==`20'
  732. V-')`20`7B
  733. X---`20263,269`20-----
  734. X`20`20
  735. X`20`20#ifndef`20VMS
  736. X`20`20void
  737. X+`20#endif
  738. X`20`20DECLARE2(main,`20int,`20argc,`20char**,`20argv)
  739. X`20`20`7B
  740. X`20`20#ifdef`20VMS
  741. X**************
  742. X***`20264,269
  743. X`20`20void
  744. X`20`20DECLARE2(main,`20int,`20argc,`20char**,`20argv)
  745. X`20`20`7B
  746. X`20`20`20`20`20`20while`20(argc`20>`201`20`26`26`20argv`5B1`5D`5B0`5D`20==`20'
  747. V-')`20`7B
  748. X`20`20`09if`20(strcmp(argv`5B1`5D,`20"-v")`20==`200)`20`7B
  749. X`20`20`09`20`20`20`20verbose`20=`20TRUE;
  750. X---`20266,274`20-----
  751. X`20`20#endif
  752. X`20`20DECLARE2(main,`20int,`20argc,`20char**,`20argv)
  753. X`20`20`7B
  754. X+`20#ifdef`20VMS
  755. X+`20`20`20`20`20getredirection(`26argc,`20`26argv);
  756. X+`20#endif
  757. X`20`20`20`20`20`20while`20(argc`20>`201`20`26`26`20argv`5B1`5D`5B0`5D`20==`20'
  758. V-')`20`7B
  759. X`20`20`09if`20(strcmp(argv`5B1`5D,`20"-v")`20==`200)`20`7B
  760. X`20`20`09`20`20`20`20verbose`20=`20TRUE;
  761. X***`20tiffcompat.h
  762. X---`20oldtiff:tiffcompat.h
  763. X**************
  764. X***`20114,119
  765. X`20`20#if`20defined(MSDOS)
  766. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode`7CO_BIN
  767. VARY,`20prot)
  768. X`20`20#else
  769. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot
  770. V)
  771. X`20`20#endif
  772. X`20`20#endif
  773. X---`20114,122`20-----
  774. X`20`20#if`20defined(MSDOS)
  775. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode`7CO_BIN
  776. VARY,`20prot)
  777. X`20`20#else
  778. X+`20#ifdef`20VMS
  779. X+`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot,
  780. V`20"ctx=stm")
  781. X+`20#else
  782. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot
  783. V)
  784. X`20`20#endif`20/*`20VMS`20*/
  785. X`20`20#endif`20/*`20MSDOS`20*/
  786. X**************
  787. X***`20115,122
  788. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode`7CO_BIN
  789. VARY,`20prot)
  790. X`20`20#else
  791. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot
  792. V)
  793. X!`20#endif
  794. X!`20#endif
  795. X`20`20
  796. X`20`20/*
  797. X`20`20`20*`20Return`20the`20size`20in`20bytes`20of`20the`20file
  798. X---`20118,126`20-----
  799. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot
  800. V,`20"ctx=stm")
  801. X`20`20#else
  802. X`20`20#define`09TIFFOpenFile(name,`20mode,`20prot)`09open(name,`20mode,`20prot
  803. V)
  804. X!`20#endif`20/*`20VMS`20*/
  805. X!`20#endif`20/*`20MSDOS`20*/
  806. X!`20#endif`20/*`20applec`20or`20THINK_C`20*/
  807. X`20`20
  808. X`20`20/*
  809. X`20`20`20*`20Return`20the`20size`20in`20bytes`20of`20the`20file
  810. X***`20tiffio.h
  811. X---`20oldtiff:tiffio.h
  812. X**************
  813. X***`2056,61
  814. X`20`20#define`09TIFFPRINT_JPEGACTABLES`090x200`09`09/*`20JPEG`20AC`20tables
  815. V`20*/
  816. X`20`20#define`09TIFFPRINT_JPEGDCTABLES`090x200`09`09/*`20JPEG`20DC`20tables
  817. V`20*/
  818. X`20`20
  819. X`20`20#if`20defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_
  820. VCONST
  821. X`20`20extern`20const`20char`20TIFFVersion`5B`5D;
  822. X`20`20extern`20const`20unsigned`20char`20TIFFBitRevTable`5B256`5D;
  823. X---`2056,66`20-----
  824. X`20`20#define`09TIFFPRINT_JPEGACTABLES`090x200`09`09/*`20JPEG`20AC`20tables
  825. V`20*/
  826. X`20`20#define`09TIFFPRINT_JPEGDCTABLES`090x200`09`09/*`20JPEG`20DC`20tables
  827. V`20*/
  828. X`20`20
  829. X+`20#ifdef`20VMS
  830. X+`20extern`20char`20TIFFVersion`5B`5D;
  831. X+`20extern`20unsigned`20char`20TIFFBitRevTable`5B256`5D;
  832. X+`20extern`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D;
  833. X+`20#else
  834. X`20`20#if`20defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_
  835. VCONST
  836. X`20`20extern`20const`20char`20TIFFVersion`5B`5D;
  837. X`20`20extern`20const`20unsigned`20char`20TIFFBitRevTable`5B256`5D;
  838. X**************
  839. X***`2065,70
  840. X`20`20extern`20unsigned`20char`20TIFFBitRevTable`5B256`5D;
  841. X`20`20extern`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D;
  842. X`20`20#endif
  843. X`20`20
  844. X`20`20/*
  845. X`20`20`20*`20Macros`20for`20extracting`20components`20from`20the
  846. X---`2070,76`20-----
  847. X`20`20extern`20unsigned`20char`20TIFFBitRevTable`5B256`5D;
  848. X`20`20extern`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D;
  849. X`20`20#endif
  850. X+`20#endif`20/*`20VMS`20*/
  851. X`20`20
  852. X`20`20/*
  853. X`20`20`20*`20Macros`20for`20extracting`20components`20from`20the
  854. X***`20tif_machdep.c
  855. X---`20oldtiff:tif_machdep.c
  856. X**************
  857. X***`2076,82
  858. X`20`20`7D
  859. X`20`20#endif`20/*`20tahoe`20*/
  860. X`20`20
  861. X!`20#ifdef`20vax
  862. X`20`20typedef`09struct`20ieeedouble`20`7B
  863. X`20`20`09u_long`09mant`09:`2020,
  864. X`20`20`09`09exp`09:`2011,
  865. X---`2076,82`20-----
  866. X`20`20`7D
  867. X`20`20#endif`20/*`20tahoe`20*/
  868. X`20`20
  869. X!`20#if`20defined(vax)`20`7C`7C`20defined(VMS)
  870. X`20`20typedef`09struct`20ieeedouble`20`7B
  871. X`20`20`09u_long`09mant`09:`2020,
  872. X`20`20`09`09exp`09:`2011,
  873. X***`20tif_swab.c
  874. X---`20oldtiff:tif_swab.c
  875. X**************
  876. X***`20101,107
  877. X`20`20`20*`20for`20algorithms`20that`20want`20an`20equivalent`20table`20that
  878. X`20`20`20*`20do`20not`20reverse`20bit`20values.
  879. X`20`20`20*/
  880. X!`20#if`20defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_CO
  881. VNST
  882. X`20`20const`20unsigned`20char`20TIFFBitRevTable`5B256`5D`20=`20`7B
  883. X`20`20#else
  884. X`20`20unsigned`20char`20TIFFBitRevTable`5B256`5D`20=`20`7B
  885. X---`20101,107`20-----
  886. X`20`20`20*`20for`20algorithms`20that`20want`20an`20equivalent`20table`20that
  887. X`20`20`20*`20do`20not`20reverse`20bit`20values.
  888. X`20`20`20*/
  889. X!`20#if`20(defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_C
  890. VONST)`20`26`26`20!defined(VMS)
  891. X`20`20const`20unsigned`20char`20TIFFBitRevTable`5B256`5D`20=`20`7B
  892. X`20`20#else
  893. X`20`20unsigned`20char`20TIFFBitRevTable`5B256`5D`20=`20`7B
  894. X**************
  895. X***`20139,145
  896. X`20`20`20`20`20`200x0f,`200x8f,`200x4f,`200xcf,`200x2f,`200xaf,`200x6f,`200xef
  897. V,
  898. X`20`20`20`20`20`200x1f,`200x9f,`200x5f,`200xdf,`200x3f,`200xbf,`200x7f,`200xff
  899. V
  900. X`20`20`7D;
  901. X!`20#if`20defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_CO
  902. VNST
  903. X`20`20const`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D`20=`20`7B
  904. X`20`20#else
  905. X`20`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D`20=`20`7B
  906. X---`20139,145`20-----
  907. X`20`20`20`20`20`200x0f,`200x8f,`200x4f,`200xcf,`200x2f,`200xaf,`200x6f,`200xef
  908. V,
  909. X`20`20`20`20`20`200x1f,`200x9f,`200x5f,`200xdf,`200x3f,`200xbf,`200x7f,`200xff
  910. V
  911. X`20`20`7D;
  912. X!`20#if`20(defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_C
  913. VONST)`20`26`26`20!defined(VMS)
  914. X`20`20const`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D`20=`20`7B
  915. X`20`20#else
  916. X`20`20unsigned`20char`20TIFFNoBitRevTable`5B256`5D`20=`20`7B
  917. $ call unpack [.TIFF]TIFF_VMS.DIFF;222 911268938 ""
  918. $!
  919. $ create 'f'
  920. X-`20`20`2079,`20`20`2079
  921. X#if`20defined(vax)`20`7C`7C`20defined(VMS)
  922. X/
  923. $ call unpack [.TIFF]TIF_MACHDEP.DIF;222 956956744 ""
  924. $!
  925. $ create 'f'
  926. X-`20`20104,`20`20104
  927. X#if`20(defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_CONST
  928. V)`20`26`26`20!defined(VMS)
  929. X-`20`20142,`20`20142
  930. X#if`20(defined(__STDC__)`20`7C`7C`20defined(__EXTENDED__)`20`7C`7C`20USE_CONST
  931. V)`20`26`26`20!defined(VMS)
  932. X/
  933. $ call unpack [.TIFF]TIF_SWAB.DIF;222 100927275 ""
  934. $ v=f$verify(v)
  935. $ exit
  936.