OS/2 updates, basically linkage mode settings on static procs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
193
src/tiff/MAKEFILE.VA
Normal file
193
src/tiff/MAKEFILE.VA
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.vc
|
||||||
|
# Author: David Webster
|
||||||
|
# Created: 2000
|
||||||
|
# Updated:
|
||||||
|
# Copyright: c) 1993, AIAI, University of Edinburgh
|
||||||
|
#
|
||||||
|
# "%W% %G%"
|
||||||
|
#
|
||||||
|
# Makefile : Builds os2tiff.lib library for OS/2 3.0/4.0
|
||||||
|
|
||||||
|
# Suffixes
|
||||||
|
OBJSUFF=obj
|
||||||
|
SRCSUFF=cpp
|
||||||
|
|
||||||
|
OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /DOS2_32 /Q /N100
|
||||||
|
OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
|
||||||
|
OS2LIBFLAGS=/NOL /NOE
|
||||||
|
OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
|
||||||
|
|
||||||
|
# Change WXDIR or WXWIN to wherever wxWindows is found
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
|
OS2TIFFDIR=$(WXDIR)\src\tiff
|
||||||
|
OS2TIFFINC=$(WINTIFFDIR)
|
||||||
|
OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
|
||||||
|
|
||||||
|
INC=-I$(WXDIR)\src\TIFF -I$(OS2TIFFINC)
|
||||||
|
|
||||||
|
!ifndef FINAL
|
||||||
|
FINAL=0
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!if "$(NOPCH)" == "1"
|
||||||
|
PCH=
|
||||||
|
PRECOMP=
|
||||||
|
MAKEPRECOMP=
|
||||||
|
!else
|
||||||
|
PCH=$(WXLIBNAME).pch
|
||||||
|
PRECOMP=/Si$(PCH)
|
||||||
|
MAKEPRECOMP=/Fi$(PCH)
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!if "$(FINAL)" == "0"
|
||||||
|
D=DebugOS2
|
||||||
|
OPT =
|
||||||
|
DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
|
||||||
|
LINK_DEBUG_FLAGS=/DEBUG
|
||||||
|
CRTFLAG=/Gm /Gd
|
||||||
|
!else
|
||||||
|
# /O1 - smallest code
|
||||||
|
# /O2 - fastest code
|
||||||
|
D=RelseOS2
|
||||||
|
OPT = /O+ /Oc /G5
|
||||||
|
DEBUG_FLAGS=
|
||||||
|
LINK_DEBUG_FLAGS=/RELEASE
|
||||||
|
CRTFLAG=/Gm /Gd
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!if [md $(OS2TIFFDIR)\$D]
|
||||||
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
|
||||||
|
|
||||||
|
{..\tiff}.c{..\tiff\$D}.obj:
|
||||||
|
@echo $<
|
||||||
|
icc @<<
|
||||||
|
$(CPPFLAGS) /Fo$@ /Tp $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
OBJECTS = \
|
||||||
|
..\tiff\$D\tif_aux.obj \
|
||||||
|
..\tiff\$D\tif_close.obj \
|
||||||
|
..\tiff\$D\tif_codec.obj \
|
||||||
|
..\tiff\$D\tif_compress.obj \
|
||||||
|
..\tiff\$D\tif_dir.obj \
|
||||||
|
..\tiff\$D\tif_dirinfo.obj \
|
||||||
|
..\tiff\$D\tif_dirread.obj \
|
||||||
|
..\tiff\$D\tif_dirwrite.obj \
|
||||||
|
..\tiff\$D\tif_dumpmode.obj \
|
||||||
|
..\tiff\$D\tif_error.obj \
|
||||||
|
..\tiff\$D\tif_fax3.obj \
|
||||||
|
..\tiff\$D\tif_fax3sm.obj \
|
||||||
|
..\tiff\$D\tif_flush.obj \
|
||||||
|
..\tiff\$D\tif_getimage.obj \
|
||||||
|
..\tiff\$D\tif_jpeg.obj \
|
||||||
|
..\tiff\$D\tif_luv.obj \
|
||||||
|
..\tiff\$D\tif_lzw.obj \
|
||||||
|
..\tiff\$D\tif_next.obj \
|
||||||
|
..\tiff\$D\tif_open.obj \
|
||||||
|
..\tiff\$D\tif_packbits.obj \
|
||||||
|
..\tiff\$D\tif_pixarlog.obj \
|
||||||
|
..\tiff\$D\tif_predict.obj \
|
||||||
|
..\tiff\$D\tif_print.obj \
|
||||||
|
..\tiff\$D\tif_read.obj \
|
||||||
|
..\tiff\$D\tif_strip.obj \
|
||||||
|
..\tiff\$D\tif_swab.obj \
|
||||||
|
..\tiff\$D\tif_thunder.obj \
|
||||||
|
..\tiff\$D\tif_tile.obj \
|
||||||
|
..\tiff\$D\tif_version.obj \
|
||||||
|
..\tiff\$D\tif_warning.obj \
|
||||||
|
..\tiff\$D\tif_win32.obj \
|
||||||
|
..\tiff\$D\tif_write.obj \
|
||||||
|
..\tiff\$D\tif_zip.obj
|
||||||
|
|
||||||
|
LIBOBJECTS = \
|
||||||
|
tif_aux.obj \
|
||||||
|
tif_close.obj \
|
||||||
|
tif_codec.obj \
|
||||||
|
tif_compress.obj \
|
||||||
|
tif_dir.obj \
|
||||||
|
tif_dirinfo.obj \
|
||||||
|
tif_dirread.obj \
|
||||||
|
tif_dirwrite.obj \
|
||||||
|
tif_dumpmode.obj \
|
||||||
|
tif_error.obj \
|
||||||
|
tif_fax3.obj \
|
||||||
|
tif_fax3sm.obj \
|
||||||
|
tif_flush.obj \
|
||||||
|
tif_getimage.obj \
|
||||||
|
tif_jpeg.obj \
|
||||||
|
tif_luv.obj \
|
||||||
|
tif_lzw.obj \
|
||||||
|
tif_next.obj \
|
||||||
|
tif_open.obj \
|
||||||
|
tif_packbits.obj \
|
||||||
|
tif_pixarlog.obj \
|
||||||
|
tif_predict.obj \
|
||||||
|
tif_print.obj \
|
||||||
|
tif_read.obj \
|
||||||
|
tif_strip.obj \
|
||||||
|
tif_swab.obj \
|
||||||
|
tif_thunder.obj \
|
||||||
|
tif_tile.obj \
|
||||||
|
tif_version.obj \
|
||||||
|
tif_warning.obj \
|
||||||
|
tif_win32.obj \
|
||||||
|
tif_write.obj \
|
||||||
|
tif_zip.obj
|
||||||
|
|
||||||
|
all: $(OBJECTS) $(OS2TIFFLIB)
|
||||||
|
|
||||||
|
$(WXDIR)\lib\os2tiff.lib: $(LIBOBJECTS)
|
||||||
|
touch $(WXDIR)\lib\os2tiff.lib
|
||||||
|
del $(WXDIR)\lib\os2tiff.lib
|
||||||
|
ilib $(OS2LIBFLAGS) $@ @<<
|
||||||
|
$**;
|
||||||
|
<<
|
||||||
|
del *.obj
|
||||||
|
|
||||||
|
clean:
|
||||||
|
del $(OS2TIFFLIB)
|
||||||
|
erase /N $(OS2TIFFDIR)\$D
|
||||||
|
rd $(OS2TIFFDIR)\$D
|
||||||
|
|
||||||
|
cleanall: clean
|
||||||
|
|
||||||
|
$(LIBOBJECTS):
|
||||||
|
copy ..\tiff\$D\tif_aux.obj \
|
||||||
|
copy ..\tiff\$D\tif_close.obj \
|
||||||
|
copy ..\tiff\$D\tif_codec.obj \
|
||||||
|
copy ..\tiff\$D\tif_compress.obj \
|
||||||
|
copy ..\tiff\$D\tif_dir.obj \
|
||||||
|
copy ..\tiff\$D\tif_dirinfo.obj \
|
||||||
|
copy ..\tiff\$D\tif_dirread.obj \
|
||||||
|
copy ..\tiff\$D\tif_dirwrite.obj \
|
||||||
|
copy ..\tiff\$D\tif_dumpmode.obj \
|
||||||
|
copy ..\tiff\$D\tif_error.obj \
|
||||||
|
copy ..\tiff\$D\tif_fax3.obj \
|
||||||
|
copy ..\tiff\$D\tif_fax3sm.obj \
|
||||||
|
copy ..\tiff\$D\tif_flush.obj \
|
||||||
|
copy ..\tiff\$D\tif_getimage.obj \
|
||||||
|
copy ..\tiff\$D\tif_jpeg.obj \
|
||||||
|
copy ..\tiff\$D\tif_luv.obj \
|
||||||
|
copy ..\tiff\$D\tif_lzw.obj \
|
||||||
|
copy ..\tiff\$D\tif_next.obj \
|
||||||
|
copy ..\tiff\$D\tif_open.obj \
|
||||||
|
copy ..\tiff\$D\tif_packbits.obj \
|
||||||
|
copy ..\tiff\$D\tif_pixarlog.obj \
|
||||||
|
copy ..\tiff\$D\tif_predict.obj \
|
||||||
|
copy ..\tiff\$D\tif_print.obj \
|
||||||
|
copy ..\tiff\$D\tif_read.obj \
|
||||||
|
copy ..\tiff\$D\tif_strip.obj \
|
||||||
|
copy ..\tiff\$D\tif_swab.obj \
|
||||||
|
copy ..\tiff\$D\tif_thunder.obj \
|
||||||
|
copy ..\tiff\$D\tif_tile.obj \
|
||||||
|
copy ..\tiff\$D\tif_version.obj \
|
||||||
|
copy ..\tiff\$D\tif_warning.obj \
|
||||||
|
copy ..\tiff\$D\tif_win32.obj \
|
||||||
|
copy ..\tiff\$D\tif_write.obj \
|
||||||
|
copy ..\tiff\$D\tif_zip.obj
|
||||||
|
|
@@ -31,7 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "tiffiop.h"
|
#include "tiffiop.h"
|
||||||
|
|
||||||
static int NotConfigured(TIFF*, int);
|
static int _Optlink NotConfigured(TIFF*, int);
|
||||||
|
|
||||||
#ifndef LZW_SUPPORT
|
#ifndef LZW_SUPPORT
|
||||||
#define TIFFInitLZW NotConfigured
|
#define TIFFInitLZW NotConfigured
|
||||||
@@ -107,7 +107,7 @@ _notConfigured(TIFF* tif)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int _Optlink
|
||||||
NotConfigured(TIFF* tif, int scheme)
|
NotConfigured(TIFF* tif, int scheme)
|
||||||
{
|
{
|
||||||
tif->tif_setupdecode = _notConfigured;
|
tif->tif_setupdecode = _notConfigured;
|
||||||
|
@@ -122,7 +122,7 @@ _TIFFNoPreCode(TIFF* tif, tsample_t s)
|
|||||||
static int _TIFFtrue(TIFF* tif) { (void) tif; return (1); }
|
static int _TIFFtrue(TIFF* tif) { (void) tif; return (1); }
|
||||||
static void _TIFFvoid(TIFF* tif) { (void) tif; }
|
static void _TIFFvoid(TIFF* tif) { (void) tif; }
|
||||||
|
|
||||||
void
|
void LINKAGEMODE
|
||||||
_TIFFSetDefaultCompressionState(TIFF* tif)
|
_TIFFSetDefaultCompressionState(TIFF* tif)
|
||||||
{
|
{
|
||||||
tif->tif_setupdecode = _TIFFtrue;
|
tif->tif_setupdecode = _TIFFtrue;
|
||||||
|
@@ -250,7 +250,7 @@ _TIFFSetupFieldInfo(TIFF* tif)
|
|||||||
_TIFFMergeFieldInfo(tif, tiffFieldInfo, N(tiffFieldInfo));
|
_TIFFMergeFieldInfo(tif, tiffFieldInfo, N(tiffFieldInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
tagCompare(const void* a, const void* b)
|
tagCompare(const void* a, const void* b)
|
||||||
{
|
{
|
||||||
const TIFFFieldInfo* ta = *(const TIFFFieldInfo**) a;
|
const TIFFFieldInfo* ta = *(const TIFFFieldInfo**) a;
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
/*
|
/*
|
||||||
* Encode a hunk of pixels.
|
* Encode a hunk of pixels.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
DumpModeEncode(TIFF* tif, tidata_t pp, tsize_t cc, tsample_t s)
|
DumpModeEncode(TIFF* tif, tidata_t pp, tsize_t cc, tsample_t s)
|
||||||
{
|
{
|
||||||
(void) s;
|
(void) s;
|
||||||
@@ -64,7 +64,7 @@ DumpModeEncode(TIFF* tif, tidata_t pp, tsize_t cc, tsample_t s)
|
|||||||
/*
|
/*
|
||||||
* Decode a hunk of pixels.
|
* Decode a hunk of pixels.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
DumpModeDecode(TIFF* tif, tidata_t buf, tsize_t cc, tsample_t s)
|
DumpModeDecode(TIFF* tif, tidata_t buf, tsize_t cc, tsample_t s)
|
||||||
{
|
{
|
||||||
(void) s;
|
(void) s;
|
||||||
@@ -88,7 +88,7 @@ DumpModeDecode(TIFF* tif, tidata_t buf, tsize_t cc, tsample_t s)
|
|||||||
/*
|
/*
|
||||||
* Seek forwards nrows in the current strip.
|
* Seek forwards nrows in the current strip.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
DumpModeSeek(TIFF* tif, uint32 nrows)
|
DumpModeSeek(TIFF* tif, uint32 nrows)
|
||||||
{
|
{
|
||||||
tif->tif_rawcp += nrows * tif->tif_scanlinesize;
|
tif->tif_rawcp += nrows * tif->tif_scanlinesize;
|
||||||
|
@@ -182,7 +182,7 @@ Fax3PreDecode(TIFF* tif, tsample_t s)
|
|||||||
* overriding the definitions used by the decoder.
|
* overriding the definitions used by the decoder.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
Fax3Unexpected(const char* module, TIFF* tif, uint32 a0)
|
Fax3Unexpected(const char* module, TIFF* tif, uint32 a0)
|
||||||
{
|
{
|
||||||
TIFFError(module, "%s: Bad code word at scanline %d (x %lu)",
|
TIFFError(module, "%s: Bad code word at scanline %d (x %lu)",
|
||||||
@@ -190,7 +190,7 @@ Fax3Unexpected(const char* module, TIFF* tif, uint32 a0)
|
|||||||
}
|
}
|
||||||
#define unexpected(table, a0) Fax3Unexpected(module, tif, a0)
|
#define unexpected(table, a0) Fax3Unexpected(module, tif, a0)
|
||||||
|
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
Fax3Extension(const char* module, TIFF* tif, uint32 a0)
|
Fax3Extension(const char* module, TIFF* tif, uint32 a0)
|
||||||
{
|
{
|
||||||
TIFFError(module,
|
TIFFError(module,
|
||||||
@@ -199,7 +199,7 @@ Fax3Extension(const char* module, TIFF* tif, uint32 a0)
|
|||||||
}
|
}
|
||||||
#define extension(a0) Fax3Extension(module, tif, a0)
|
#define extension(a0) Fax3Extension(module, tif, a0)
|
||||||
|
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
Fax3BadLength(const char* module, TIFF* tif, uint32 a0, uint32 lastx)
|
Fax3BadLength(const char* module, TIFF* tif, uint32 a0, uint32 lastx)
|
||||||
{
|
{
|
||||||
TIFFWarning(module, "%s: %s at scanline %d (got %lu, expected %lu)",
|
TIFFWarning(module, "%s: %s at scanline %d (got %lu, expected %lu)",
|
||||||
@@ -209,7 +209,7 @@ Fax3BadLength(const char* module, TIFF* tif, uint32 a0, uint32 lastx)
|
|||||||
}
|
}
|
||||||
#define badlength(a0,lastx) Fax3BadLength(module, tif, a0, lastx)
|
#define badlength(a0,lastx) Fax3BadLength(module, tif, a0, lastx)
|
||||||
|
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
Fax3PrematureEOF(const char* module, TIFF* tif, uint32 a0)
|
Fax3PrematureEOF(const char* module, TIFF* tif, uint32 a0)
|
||||||
{
|
{
|
||||||
TIFFWarning(module, "%s: Premature EOF at scanline %d (x %lu)",
|
TIFFWarning(module, "%s: Premature EOF at scanline %d (x %lu)",
|
||||||
@@ -222,7 +222,7 @@ Fax3PrematureEOF(const char* module, TIFF* tif, uint32 a0)
|
|||||||
/*
|
/*
|
||||||
* Decode the requested amount of G3 1D-encoded data.
|
* Decode the requested amount of G3 1D-encoded data.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax3Decode1D(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
Fax3Decode1D(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
||||||
{
|
{
|
||||||
DECLARE_STATE(tif, sp, "Fax3Decode1D");
|
DECLARE_STATE(tif, sp, "Fax3Decode1D");
|
||||||
@@ -262,7 +262,7 @@ Fax3Decode1D(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
|||||||
/*
|
/*
|
||||||
* Decode the requested amount of G3 2D-encoded data.
|
* Decode the requested amount of G3 2D-encoded data.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax3Decode2D(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
Fax3Decode2D(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
||||||
{
|
{
|
||||||
DECLARE_STATE_2D(tif, sp, "Fax3Decode2D");
|
DECLARE_STATE_2D(tif, sp, "Fax3Decode2D");
|
||||||
@@ -574,7 +574,7 @@ static const int _msbmask[9] =
|
|||||||
* the output stream. Values are
|
* the output stream. Values are
|
||||||
* assumed to be at most 16 bits.
|
* assumed to be at most 16 bits.
|
||||||
*/
|
*/
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
Fax3PutBits(TIFF* tif, u_int bits, u_int length)
|
Fax3PutBits(TIFF* tif, u_int bits, u_int length)
|
||||||
{
|
{
|
||||||
Fax3EncodeState* sp = EncoderState(tif);
|
Fax3EncodeState* sp = EncoderState(tif);
|
||||||
@@ -609,7 +609,7 @@ Fax3PutBits(TIFF* tif, u_int bits, u_int length)
|
|||||||
* appropriate table that holds the make-up and
|
* appropriate table that holds the make-up and
|
||||||
* terminating codes is supplied.
|
* terminating codes is supplied.
|
||||||
*/
|
*/
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
putspan(TIFF* tif, int32 span, const tableentry* tab)
|
putspan(TIFF* tif, int32 span, const tableentry* tab)
|
||||||
{
|
{
|
||||||
Fax3EncodeState* sp = EncoderState(tif);
|
Fax3EncodeState* sp = EncoderState(tif);
|
||||||
@@ -652,7 +652,7 @@ putspan(TIFF* tif, int32 span, const tableentry* tab)
|
|||||||
* here. We also handle writing the tag bit for the next
|
* here. We also handle writing the tag bit for the next
|
||||||
* scanline when doing 2d encoding.
|
* scanline when doing 2d encoding.
|
||||||
*/
|
*/
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
Fax3PutEOL(TIFF* tif)
|
Fax3PutEOL(TIFF* tif)
|
||||||
{
|
{
|
||||||
Fax3EncodeState* sp = EncoderState(tif);
|
Fax3EncodeState* sp = EncoderState(tif);
|
||||||
@@ -778,7 +778,7 @@ static int32 find1span(u_char*, int32, int32);
|
|||||||
* table. The ``base'' of the bit string is supplied
|
* table. The ``base'' of the bit string is supplied
|
||||||
* along with the start+end bit indices.
|
* along with the start+end bit indices.
|
||||||
*/
|
*/
|
||||||
INLINE static int32
|
INLINE static int32 LINKAGEMODE
|
||||||
find0span(u_char* bp, int32 bs, int32 be)
|
find0span(u_char* bp, int32 bs, int32 be)
|
||||||
{
|
{
|
||||||
int32 bits = be - bs;
|
int32 bits = be - bs;
|
||||||
@@ -837,7 +837,7 @@ find0span(u_char* bp, int32 bs, int32 be)
|
|||||||
return (span);
|
return (span);
|
||||||
}
|
}
|
||||||
|
|
||||||
INLINE static int32
|
INLINE static int32 LINKAGEMODE
|
||||||
find1span(u_char* bp, int32 bs, int32 be)
|
find1span(u_char* bp, int32 bs, int32 be)
|
||||||
{
|
{
|
||||||
int32 bits = be - bs;
|
int32 bits = be - bs;
|
||||||
@@ -916,7 +916,7 @@ find1span(u_char* bp, int32 bs, int32 be)
|
|||||||
* a sequence of all-white or all-black spans
|
* a sequence of all-white or all-black spans
|
||||||
* of pixels encoded with Huffman codes.
|
* of pixels encoded with Huffman codes.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax3Encode1DRow(TIFF* tif, u_char* bp, uint32 bits)
|
Fax3Encode1DRow(TIFF* tif, u_char* bp, uint32 bits)
|
||||||
{
|
{
|
||||||
Fax3EncodeState* sp = EncoderState(tif);
|
Fax3EncodeState* sp = EncoderState(tif);
|
||||||
@@ -962,7 +962,7 @@ static const tableentry vcodes[7] = {
|
|||||||
* 2d-encode a row of pixels. Consult the CCITT
|
* 2d-encode a row of pixels. Consult the CCITT
|
||||||
* documentation for the algorithm.
|
* documentation for the algorithm.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax3Encode2DRow(TIFF* tif, u_char* bp, u_char* rp, uint32 bits)
|
Fax3Encode2DRow(TIFF* tif, u_char* bp, u_char* rp, uint32 bits)
|
||||||
{
|
{
|
||||||
#define PIXEL(buf,ix) ((((buf)[(ix)>>3]) >> (7-((ix)&7))) & 1)
|
#define PIXEL(buf,ix) ((((buf)[(ix)>>3]) >> (7-((ix)&7))) & 1)
|
||||||
@@ -1007,7 +1007,7 @@ Fax3Encode2DRow(TIFF* tif, u_char* bp, u_char* rp, uint32 bits)
|
|||||||
/*
|
/*
|
||||||
* Encode a buffer of pixels.
|
* Encode a buffer of pixels.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax3Encode(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s)
|
Fax3Encode(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s)
|
||||||
{
|
{
|
||||||
Fax3EncodeState* sp = EncoderState(tif);
|
Fax3EncodeState* sp = EncoderState(tif);
|
||||||
@@ -1215,7 +1215,7 @@ Fax3VGetField(TIFF* tif, ttag_t tag, va_list ap)
|
|||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void LINKAGEMODE
|
||||||
Fax3PrintDir(TIFF* tif, FILE* fd, long flags)
|
Fax3PrintDir(TIFF* tif, FILE* fd, long flags)
|
||||||
{
|
{
|
||||||
Fax3BaseState* sp = Fax3State(tif);
|
Fax3BaseState* sp = Fax3State(tif);
|
||||||
@@ -1271,7 +1271,7 @@ Fax3PrintDir(TIFF* tif, FILE* fd, long flags)
|
|||||||
(u_long) sp->recvtime);
|
(u_long) sp->recvtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
InitCCITTFax3(TIFF* tif)
|
InitCCITTFax3(TIFF* tif)
|
||||||
{
|
{
|
||||||
Fax3BaseState* sp;
|
Fax3BaseState* sp;
|
||||||
@@ -1354,7 +1354,7 @@ TIFFInitCCITTFax3(TIFF* tif, int scheme)
|
|||||||
/*
|
/*
|
||||||
* Decode the requested amount of G4-encoded data.
|
* Decode the requested amount of G4-encoded data.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax4Decode(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
Fax4Decode(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
||||||
{
|
{
|
||||||
DECLARE_STATE_2D(tif, sp, "Fax4Decode");
|
DECLARE_STATE_2D(tif, sp, "Fax4Decode");
|
||||||
@@ -1394,7 +1394,7 @@ Fax4Decode(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
|||||||
/*
|
/*
|
||||||
* Encode the requested amount of data.
|
* Encode the requested amount of data.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax4Encode(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s)
|
Fax4Encode(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s)
|
||||||
{
|
{
|
||||||
Fax3EncodeState *sp = EncoderState(tif);
|
Fax3EncodeState *sp = EncoderState(tif);
|
||||||
@@ -1454,7 +1454,7 @@ TIFFInitCCITTFax4(TIFF* tif, int scheme)
|
|||||||
/*
|
/*
|
||||||
* Decode the requested amount of RLE-encoded data.
|
* Decode the requested amount of RLE-encoded data.
|
||||||
*/
|
*/
|
||||||
static int
|
static int LINKAGEMODE
|
||||||
Fax3DecodeRLE(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
Fax3DecodeRLE(TIFF* tif, tidata_t buf, tsize_t occ, tsample_t s)
|
||||||
{
|
{
|
||||||
DECLARE_STATE(tif, sp, "Fax3DecodeRLE");
|
DECLARE_STATE(tif, sp, "Fax3DecodeRLE");
|
||||||
|
@@ -88,6 +88,12 @@ typedef HFILE thandle_t; /* client data handle */
|
|||||||
typedef void* thandle_t; /* client data handle */
|
typedef void* thandle_t; /* client data handle */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(OS2_32)
|
||||||
|
#define LINKAGEMODE _Optlink
|
||||||
|
#else
|
||||||
|
#define LINKAGEMODE
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
#endif
|
#endif
|
||||||
@@ -121,10 +127,10 @@ typedef struct _TIFFRGBAImage TIFFRGBAImage;
|
|||||||
* different format or, for example, unpack the data
|
* different format or, for example, unpack the data
|
||||||
* and draw the unpacked raster on the display.
|
* and draw the unpacked raster on the display.
|
||||||
*/
|
*/
|
||||||
typedef void (*tileContigRoutine)
|
typedef void (LINKAGEMODE *tileContigRoutine)
|
||||||
(TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
|
(TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
|
||||||
unsigned char*);
|
unsigned char*);
|
||||||
typedef void (*tileSeparateRoutine)
|
typedef void (LINKAGEMODE *tileSeparateRoutine)
|
||||||
(TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
|
(TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
|
||||||
unsigned char*, unsigned char*, unsigned char*, unsigned char*);
|
unsigned char*, unsigned char*, unsigned char*, unsigned char*);
|
||||||
/*
|
/*
|
||||||
@@ -154,7 +160,7 @@ struct _TIFFRGBAImage {
|
|||||||
uint16* greencmap;
|
uint16* greencmap;
|
||||||
uint16* bluecmap;
|
uint16* bluecmap;
|
||||||
/* get image data routine */
|
/* get image data routine */
|
||||||
int (*get)(TIFFRGBAImage*, uint32*, uint32, uint32);
|
int (LINKAGEMODE *get)(TIFFRGBAImage*, uint32*, uint32, uint32);
|
||||||
union {
|
union {
|
||||||
void (*any)(TIFFRGBAImage*);
|
void (*any)(TIFFRGBAImage*);
|
||||||
tileContigRoutine contig;
|
tileContigRoutine contig;
|
||||||
@@ -185,7 +191,7 @@ struct _TIFFRGBAImage {
|
|||||||
* More codecs may be registered through calls to the library
|
* More codecs may be registered through calls to the library
|
||||||
* and/or the builtin implementations may be overridden.
|
* and/or the builtin implementations may be overridden.
|
||||||
*/
|
*/
|
||||||
typedef int (*TIFFInitMethod)(TIFF*, int);
|
typedef int (LINKAGEMODE *TIFFInitMethod)(TIFF*, int);
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char* name;
|
char* name;
|
||||||
uint16 scheme;
|
uint16 scheme;
|
||||||
@@ -198,14 +204,14 @@ typedef struct {
|
|||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
typedef void (*TIFFErrorHandler)(const char*, const char*, va_list);
|
typedef void (LINKAGEMODE *TIFFErrorHandler)(const char*, const char*, va_list);
|
||||||
typedef tsize_t (*TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t);
|
typedef tsize_t (LINKAGEMODE *TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t);
|
||||||
typedef toff_t (*TIFFSeekProc)(thandle_t, toff_t, int);
|
typedef toff_t (LINKAGEMODE *TIFFSeekProc)(thandle_t, toff_t, int);
|
||||||
typedef int (*TIFFCloseProc)(thandle_t);
|
typedef int (LINKAGEMODE *TIFFCloseProc)(thandle_t);
|
||||||
typedef toff_t (*TIFFSizeProc)(thandle_t);
|
typedef toff_t (LINKAGEMODE *TIFFSizeProc)(thandle_t);
|
||||||
typedef int (*TIFFMapFileProc)(thandle_t, tdata_t*, toff_t*);
|
typedef int (LINKAGEMODE *TIFFMapFileProc)(thandle_t, tdata_t*, toff_t*);
|
||||||
typedef void (*TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t);
|
typedef void (LINKAGEMODE *TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t);
|
||||||
typedef void (*TIFFExtendProc)(TIFF*);
|
typedef void (LINKAGEMODE *TIFFExtendProc)(TIFF*);
|
||||||
|
|
||||||
extern const char* TIFFGetVersion(void);
|
extern const char* TIFFGetVersion(void);
|
||||||
|
|
||||||
|
@@ -58,14 +58,14 @@ typedef tidataval_t* tidata_t; /* reference to internal image data */
|
|||||||
typedef void (*TIFFVoidMethod)(TIFF*);
|
typedef void (*TIFFVoidMethod)(TIFF*);
|
||||||
typedef int (*TIFFBoolMethod)(TIFF*);
|
typedef int (*TIFFBoolMethod)(TIFF*);
|
||||||
typedef int (*TIFFPreMethod)(TIFF*, tsample_t);
|
typedef int (*TIFFPreMethod)(TIFF*, tsample_t);
|
||||||
typedef int (*TIFFCodeMethod)(TIFF*, tidata_t, tsize_t, tsample_t);
|
typedef int (LINKAGEMODE *TIFFCodeMethod)(TIFF*, tidata_t, tsize_t, tsample_t);
|
||||||
typedef int (*TIFFSeekMethod)(TIFF*, uint32);
|
typedef int (LINKAGEMODE *TIFFSeekMethod)(TIFF*, uint32);
|
||||||
typedef void (*TIFFPostMethod)(TIFF*, tidata_t, tsize_t);
|
typedef void (LINKAGEMODE *TIFFPostMethod)(TIFF*, tidata_t, tsize_t);
|
||||||
typedef int (*TIFFVSetMethod)(TIFF*, ttag_t, va_list);
|
typedef int (*TIFFVSetMethod)(TIFF*, ttag_t, va_list);
|
||||||
typedef int (*TIFFVGetMethod)(TIFF*, ttag_t, va_list);
|
typedef int (*TIFFVGetMethod)(TIFF*, ttag_t, va_list);
|
||||||
typedef void (*TIFFPrintMethod)(TIFF*, FILE*, long);
|
typedef void (LINKAGEMODE *TIFFPrintMethod)(TIFF*, FILE*, long);
|
||||||
typedef uint32 (*TIFFStripMethod)(TIFF*, uint32);
|
typedef uint32 (LINKAGEMODE *TIFFStripMethod)(TIFF*, uint32);
|
||||||
typedef void (*TIFFTileMethod)(TIFF*, uint32*, uint32*);
|
typedef void (LINKAGEMODE *TIFFTileMethod)(TIFF*, uint32*, uint32*);
|
||||||
|
|
||||||
struct tiff {
|
struct tiff {
|
||||||
char* tif_name; /* name of open file */
|
char* tif_name; /* name of open file */
|
||||||
|
Reference in New Issue
Block a user