Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/libtiff_2007@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
dllshell.c ---------------------------------------------------------------
|
||||
#define STRICT
|
||||
#include <windows.h>
|
||||
#pragma hdrstop
|
||||
|
||||
#pragma argsused
|
||||
|
||||
/* DLL has an entry point LibMain || DllEntryPoint and an exit point WEP. */
|
||||
|
||||
#if defined(__FLAT__)
|
||||
|
||||
BOOL WINAPI DllEntryPoint(HINSTANCE hinstDll, DWORD fdwRreason,
|
||||
LPVOID plvReserved)
|
||||
{
|
||||
return 1; /* Indicate that the DLL was initialized successfully. */
|
||||
}
|
||||
|
||||
#else /* not flat model */
|
||||
|
||||
int FAR PASCAL LibMain(HINSTANCE hInstance, WORD wDataSegment, WORD wHeapSize,
|
||||
LPSTR lpszCmdLine)
|
||||
{
|
||||
/* The startup code for the DLL initializes the local heap(if there is one)
|
||||
with a call to LocalInit which locks the data segment. */
|
||||
|
||||
if ( wHeapSize != 0 )
|
||||
UnlockData( 0 );
|
||||
return 1; /* Indicate that the DLL was initialized successfully. */
|
||||
}
|
||||
|
||||
#endif /* __FLAT */
|
||||
|
||||
#pragma argsused
|
||||
|
||||
int FAR PASCAL WEP ( int bSystemExit )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
Executable
+72
@@ -0,0 +1,72 @@
|
||||
LIBRARY LIBTIFF
|
||||
EXETYPE WINDOWS
|
||||
CODE PRELOAD MOVEABLE DISCARDABLE
|
||||
DATA PRELOAD MOVEABLE MULTIPLE
|
||||
HEAPSIZE 4096
|
||||
STACKSIZE 8192
|
||||
EXPORTS
|
||||
_TIFFGetVersion @1
|
||||
_TIFFClose @2
|
||||
_TIFFFlush @3
|
||||
_TIFFFlushData @4
|
||||
_TIFFGetField @5
|
||||
_TIFFVGetField @6
|
||||
_TIFFGetFieldDefaulted @7
|
||||
_TIFFVGetFieldDefaulted @8
|
||||
_TIFFReadDirectory @9
|
||||
_TIFFScanlineSize @10
|
||||
_TIFFStripSize @11
|
||||
_TIFFVStripSize @12
|
||||
_TIFFTileRowSize @13
|
||||
_TIFFTileSize @14
|
||||
_TIFFVTileSize @15
|
||||
_TIFFFileno @16
|
||||
_TIFFGetMode @17
|
||||
_TIFFIsTiled @18
|
||||
_TIFFIsByteSwapped @19
|
||||
_TIFFCurrentRow @20
|
||||
_TIFFCurrentDirectory @21
|
||||
_TIFFCurrentStrip @22
|
||||
_TIFFCurrentTile @23
|
||||
_TIFFReadBufferSetup @24
|
||||
_TIFFLastDirectory @25
|
||||
_TIFFSetDirectory @26
|
||||
_TIFFSetSubDirectory @27
|
||||
_TIFFUnlinkDirectory @28
|
||||
_TIFFSetField @29
|
||||
_TIFFVSetField @30
|
||||
_TIFFWriteDirectory @31
|
||||
_TIFFReadScanline @32
|
||||
_TIFFWriteScanline @33
|
||||
_TIFFReadRGBAImage @34
|
||||
_TIFFOpen @35
|
||||
_TIFFFdOpen @36
|
||||
_TIFFClientOpen @37
|
||||
_TIFFFileName @38
|
||||
_TIFFError @39
|
||||
_TIFFWarning @40
|
||||
_TIFFSetErrorHandler @41
|
||||
_TIFFSetWarningHandler @42
|
||||
_TIFFComputeTile @43
|
||||
_TIFFCheckTile @44
|
||||
_TIFFNumberOfTiles @45
|
||||
_TIFFReadTile @46
|
||||
_TIFFWriteTile @47
|
||||
_TIFFComputeStrip @48
|
||||
_TIFFNumberOfStrips @49
|
||||
_TIFFReadEncodedStrip @50
|
||||
_TIFFReadRawStrip @51
|
||||
_TIFFReadEncodedTile @52
|
||||
_TIFFReadRawTile @53
|
||||
_TIFFWriteEncodedStrip @54
|
||||
_TIFFWriteRawStrip @55
|
||||
_TIFFWriteEncodedTile @56
|
||||
_TIFFWriteRawTile @57
|
||||
_TIFFSetWriteOffset @58
|
||||
_TIFFSwabShort @59
|
||||
_TIFFSwabLong @60
|
||||
_TIFFSwabArrayOfShort @61
|
||||
_TIFFSwabArrayOfLong @62
|
||||
_TIFFReverseBits @63
|
||||
_TIFFGetBitRevTable @64
|
||||
_TIFFModeCCITTFax3 @65
|
||||
Executable
+111
@@ -0,0 +1,111 @@
|
||||
This mail from Scott describes changes to the library that I have
|
||||
not made because I couldn't figure out exactly where they went.
|
||||
Anything not in this file has either been placed in the appropriate
|
||||
directory (e.g. libtiff/tif_win32.c) or applied to the current
|
||||
source code (e.g. libtiff/tiffiop.h).
|
||||
|
||||
Note that the Window NT/Window 95 support is untested; Scott's work
|
||||
was done with an earlier version of the library. Hopefully this'll
|
||||
get cleaned up soon.
|
||||
|
||||
Sam
|
||||
|
||||
Date: Fri, 14 Apr 95 17:01:42 EDT
|
||||
From: wagner@itek.com (scott wagner)
|
||||
Message-Id: <9504142101.AA00764@cyan.>
|
||||
To: sam@cthulhu.engr.sgi.com
|
||||
Subject: 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 */
|
||||
> #endif
|
||||
66a71,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 EDT
|
||||
To: sam@cthulhu.engr.sgi.com
|
||||
|
||||
From: wagner@itek.com (scott wagner)
|
||||
Subject: Libtiff for Win32
|
||||
|
||||
Return-Path: sam@flake.asd.sgi.com
|
||||
Delivery-Date: Mon, 17 Apr 1995 05:36:50 PDT
|
||||
Return-Path: sam@flake.asd.sgi.com
|
||||
|
||||
Hello, 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 to
|
||||
dinner on Friday and the material for you was the last loose end I had to
|
||||
deal with. Excuses aside ...
|
||||
|
||||
The goal of the adaptation of libtiff to Win32 was to replace only one
|
||||
environment-specific code module and to make minimal changes to header
|
||||
files. tif_win32.c required one addition to tiffio.h (the
|
||||
DECLARE_HANDLE line, which is probably a better way to typedef thandle-t
|
||||
under Windows 3.1 as well); it also required the addition of pv_map_handle
|
||||
to the tiff structure and the conditional definition of the
|
||||
TIFFUnmapFileContents macro in tiffiop.h (this because Win32 uses a handle
|
||||
and a pointer in mapping memory, and I needed to save both).
|
||||
|
||||
Additionally, I made a general style change to tiffio.h. If tiffio.h is
|
||||
included by a client, which does not include tiffiop.h, then ANSI compilers
|
||||
warn 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_fd
|
||||
in the library treat it as int, yet the tif_fd member itself is short. I
|
||||
changed this member to int and added the reserved member to maintain
|
||||
32-bit structure member alignment in a 32 bit environment. [ At cost of
|
||||
4 more bytes in an already bloated structure! :-) ] As long as fd's are
|
||||
less than 64k, the old member works; this is not the case in Win32, and is
|
||||
not 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 link
|
||||
library, and would be best packaged with a Win32 makefile, which I have
|
||||
not yet perfected. I will, however, commit to a Borland and Microsoft C
|
||||
makefile for libtiff; perhaps these two could be combined with the
|
||||
makefile for the _next_ (!) release of libtiff when it is ready.
|
||||
|
||||
Once again, sorry for the confused message on Friday. I hope that at
|
||||
least tif_w32 and the tiffio.h and tiffiop.h diffs will be useful for
|
||||
this release.
|
||||
|
||||
Regards,
|
||||
Scott Wagner (wagner@itek.com)
|
||||
Itek Graphix
|
||||
Rochester, NY
|
||||
Reference in New Issue
Block a user