⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 tiff文件开发库
💻
字号:
This mail from Scott describes changes to the library that I havenot made because I couldn't figure out exactly where they went.Anything not in this file has either been placed in the appropriatedirectory (e.g. libtiff/tif_win32.c) or applied to the currentsource code (e.g. libtiff/tiffiop.h).Note that the Window NT/Window 95 support is untested; Scott's workwas done with an earlier version of the library.  Hopefully this'llget cleaned up soon.	SamDate: Fri, 14 Apr 95 17:01:42 EDTFrom: wagner@itek.com (scott wagner)Message-Id: <9504142101.AA00764@cyan.>To: sam@cthulhu.engr.sgi.comSubject: Re: Libtiff for Win32 (Windows NT / Windows 95)Hi, Sam!Enclosed are my libtiff for win32 pieces.  They are in the form of 3 files(tif_w32.c, dllshell.c, and libtiff.def), and 2 diffs (for tiffiop.h and tiffio.h).Hope this is not too difficult to separate!Regards,Scott Wagner (wagner@itek.com)tif_w32.c  ---------------------------------------------------------------tiffiop.h  ---------------------------------------------------------------tiffio.h  ---------------------------------------------------------------38a39> #ifdef _TIFFIOP_39a41,43> #else> typedef void TIFF;	/* Avoid ANSI undefined structure warning */> #endif66a71,75> #ifdef WIN32			/* WIN32 identifies Win32 compiles */> #pragma warn -sig		/* Turn off Borland warn of long to short int convert */> #pragma warn -par		/* Turn off Borland warn "Parameter x is never used" */> DECLARE_HANDLE(thandle_t);		/* Win32 file handle */> #else						/* if not WIN32_ */67a77> #endif					/* defined WIN32 */(Message tiff:1396) -- using template mhl.format --Date:    Mon, 17 Apr 1995 07:51:03 EDTTo:      sam@cthulhu.engr.sgi.comFrom:    wagner@itek.com (scott wagner)Subject: Libtiff for Win32Return-Path: sam@flake.asd.sgi.com Delivery-Date: Mon, 17 Apr 1995 05:36:50 PDTReturn-Path: sam@flake.asd.sgi.comHello, Sam!>   ... libtiff for win32 pieces.  They are in the form of 3 files>   (tif_w32.c, dllshell.c, and libtiff.def), and 2 diffs (for tiffiop.h and >   tiffio.h).>   > I don't understand how these pieces fit together.  Can you please explain> what dllshell.c and libtiff.def are for? Sorry I was short on documentation here ... I was rushing to get home todinner on Friday and the material for you was the last loose end I had todeal with.  Excuses aside ...The goal of the adaptation of libtiff to Win32 was to replace only oneenvironment-specific code module and to make minimal changes to headerfiles.  tif_win32.c required one addition to tiffio.h (theDECLARE_HANDLE line, which is probably a better way to typedef thandle-tunder Windows 3.1 as well); it also required the addition of pv_map_handleto the tiff structure and the conditional definition of theTIFFUnmapFileContents macro in tiffiop.h (this because Win32 uses a handleand a pointer in mapping memory, and I needed to save both).Additionally, I made a general style change to tiffio.h.  If tiffio.h isincluded by a client, which does not include tiffiop.h, then ANSI compilerswarn about the typedef of TIFF to a non-existent structure.  To avoid this,I changed the typedef of TIFF in this case to void.I also made a style change in the tiff structure.  All references to tif_fdin the library treat it as int, yet the tif_fd member itself is short.  Ichanged this member to int and added the reserved member to maintain32-bit structure member alignment in a 32 bit environment.  [ At cost of4 more bytes in an already bloated structure! :-) ]  As long as fd's areless than 64k, the old member works; this is not the case in Win32, and isnot generally a safe assumption.The module dllshell.c and the file libtiff.def are not specific to the functionality of libtiff; they are used to make a Win32 dynamic linklibrary, and would be best packaged with a Win32 makefile, which I havenot yet perfected.  I will, however, commit to a Borland and Microsoft Cmakefile for libtiff; perhaps these two could be combined with themakefile for the _next_ (!) release of libtiff when it is ready.Once again, sorry for the confused message on Friday.  I hope that atleast tif_w32 and the tiffio.h and tiffiop.h diffs will be useful forthis release.Regards,Scott Wagner   (wagner@itek.com)Itek GraphixRochester, NY

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -