ReactOS 0.4.16-dev-2574-g474348f
tif_fax3.h File Reference
#include "tiff.h"
Include dependency graph for tif_fax3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TIFFFaxTabEnt
 

Macros

#define S_Null   0
 
#define S_Pass   1
 
#define S_Horiz   2
 
#define S_V0   3
 
#define S_VR   4
 
#define S_VL   5
 
#define S_Ext   6
 
#define S_TermW   7
 
#define S_TermB   8
 
#define S_MakeUpW   9
 
#define S_MakeUpB   10
 
#define S_MakeUp   11
 
#define S_EOL   12
 
#define EndOfData()   (cp >= ep)
 
#define NeedBits8(n, eoflab)
 
#define NeedBits16(n, eoflab)
 
#define GetBits(n)   (BitAcc & ((1 << (n)) - 1))
 
#define ClrBits(n)
 
#define LOOKUP8(wid, tab, eoflab)
 
#define LOOKUP16(wid, tab, eoflab)
 
#define SETVALUE(x)
 
#define SYNC_EOL(eoflab, retrywithouteol)
 
#define CLEANUP_RUNS()
 
#define EXPAND1D(eoflab)
 
#define CHECK_b1
 
#define EXPAND2D(eoflab)
 

Typedefs

typedef void(* TIFFFaxFillFunc) (unsigned char *, uint32_t *, uint32_t *, uint32_t)
 

Functions

void _TIFFFax3fillruns (unsigned char *, uint32_t *, uint32_t *, uint32_t)
 

Variables

const TIFFFaxTabEnt TIFFFaxMainTable []
 
const TIFFFaxTabEnt TIFFFaxWhiteTable []
 
const TIFFFaxTabEnt TIFFFaxBlackTable []
 

Macro Definition Documentation

◆ CHECK_b1

#define CHECK_b1
Value:
do \
{ \
if (pa != thisrun) \
while (b1 <= a0 && b1 < lastx) \
{ \
if (pb + 1 >= sp->refruns + sp->nruns) \
{ \
TIFFErrorExtR( \
tif, module, "Buffer overflow at line %u of %s %u", \
sp->line, isTiled(tif) ? "tile" : "strip", \
isTiled(tif) ? tif->tif_curtile : tif->tif_curstrip); \
return (-1); \
} \
b1 += pb[0] + pb[1]; \
pb += 2; \
} \
} while (0)
static CRYPT_DATA_BLOB b1[]
Definition: msg.c:529
static const WCHAR sp[]
Definition: suminfo.c:287
static int ** pa
Definition: server.c:145
#define isTiled(tif)
Definition: tiffiop.h:274

Definition at line 438 of file tif_fax3.h.

◆ CLEANUP_RUNS

#define CLEANUP_RUNS ( )
Value:
do \
{ \
if (RunLength) \
SETVALUE(0); \
if (a0 != lastx) \
{ \
badlength(a0, lastx); \
while (a0 > lastx && pa > thisrun) \
a0 -= *--pa; \
if (a0 < lastx) \
{ \
if (a0 < 0) \
a0 = 0; \
if ((pa - thisrun) & 1) \
SETVALUE(0); \
SETVALUE(lastx - a0); \
} \
else if (a0 > lastx) \
{ \
SETVALUE(lastx); \
SETVALUE(0); \
} \
} \
} while (0)

Definition at line 332 of file tif_fax3.h.

◆ ClrBits

#define ClrBits (   n)
Value:
do \
{ \
BitsAvail -= (n); \
BitAcc >>= (n); \
} while (0)
GLdouble n
Definition: glext.h:7729

Definition at line 195 of file tif_fax3.h.

◆ EndOfData

#define EndOfData ( )    (cp >= ep)

Definition at line 117 of file tif_fax3.h.

◆ EXPAND1D

#define EXPAND1D (   eoflab)

Definition at line 370 of file tif_fax3.h.

◆ EXPAND2D

#define EXPAND2D (   eoflab)

Definition at line 460 of file tif_fax3.h.

◆ GetBits

#define GetBits (   n)    (BitAcc & ((1 << (n)) - 1))

Definition at line 194 of file tif_fax3.h.

◆ LOOKUP16

#define LOOKUP16 (   wid,
  tab,
  eoflab 
)
Value:
do \
{ \
NeedBits16(wid, eoflab); \
TabEnt = tab + GetBits(wid); \
ClrBits(TabEnt->Width); \
} while (0)
#define GetBits(n)
Definition: tif_fax3.h:194
static struct wctab tab[]

Definition at line 253 of file tif_fax3.h.

◆ LOOKUP8

#define LOOKUP8 (   wid,
  tab,
  eoflab 
)
Value:
do \
{ \
NeedBits8(wid, eoflab); \
TabEnt = tab + GetBits(wid); \
ClrBits(TabEnt->Width); \
} while (0)

Definition at line 246 of file tif_fax3.h.

◆ NeedBits16

#define NeedBits16 (   n,
  eoflab 
)
Value:
do \
{ \
if (BitsAvail < (n)) \
{ \
if (EndOfData()) \
{ \
if (BitsAvail == 0) /* no valid bits */ \
goto eoflab; \
BitsAvail = (n); /* pad with zeros */ \
} \
else \
{ \
BitAcc |= ((uint32_t)bitmap[*cp++]) << BitsAvail; \
if ((BitsAvail += 8) < (n)) \
{ \
if (EndOfData()) \
{ \
/* NB: we know BitsAvail is non-zero here */ \
BitsAvail = (n); /* pad with zeros */ \
} \
else \
{ \
BitAcc |= ((uint32_t)bitmap[*cp++]) << BitsAvail; \
BitsAvail += 8; \
} \
} \
} \
} \
} while (0)
POINT cp
Definition: magnifier.c:59
#define uint32_t
Definition: nsiface.idl:61
Definition: uimain.c:89
#define EndOfData()
Definition: tif_fax3.h:117

Definition at line 163 of file tif_fax3.h.

◆ NeedBits8

#define NeedBits8 (   n,
  eoflab 
)
Value:
do \
{ \
if (BitsAvail < (n)) \
{ \
if (EndOfData()) \
{ \
if (BitsAvail == 0) /* no valid bits */ \
goto eoflab; \
BitsAvail = (n); /* pad with zeros */ \
} \
else \
{ \
BitAcc |= ((uint32_t)bitmap[*cp++]) << BitsAvail; \
BitsAvail += 8; \
} \
} \
} while (0)

Definition at line 143 of file tif_fax3.h.

◆ S_EOL

#define S_EOL   12

Definition at line 82 of file tif_fax3.h.

◆ S_Ext

#define S_Ext   6

Definition at line 76 of file tif_fax3.h.

◆ S_Horiz

#define S_Horiz   2

Definition at line 72 of file tif_fax3.h.

◆ S_MakeUp

#define S_MakeUp   11

Definition at line 81 of file tif_fax3.h.

◆ S_MakeUpB

#define S_MakeUpB   10

Definition at line 80 of file tif_fax3.h.

◆ S_MakeUpW

#define S_MakeUpW   9

Definition at line 79 of file tif_fax3.h.

◆ S_Null

#define S_Null   0

Definition at line 70 of file tif_fax3.h.

◆ S_Pass

#define S_Pass   1

Definition at line 71 of file tif_fax3.h.

◆ S_TermB

#define S_TermB   8

Definition at line 78 of file tif_fax3.h.

◆ S_TermW

#define S_TermW   7

Definition at line 77 of file tif_fax3.h.

◆ S_V0

#define S_V0   3

Definition at line 73 of file tif_fax3.h.

◆ S_VL

#define S_VL   5

Definition at line 75 of file tif_fax3.h.

◆ S_VR

#define S_VR   4

Definition at line 74 of file tif_fax3.h.

◆ SETVALUE

#define SETVALUE (   x)
Value:
do \
{ \
if (pa >= thisrun + sp->nruns) \
{ \
TIFFErrorExtR(tif, module, "Buffer overflow at line %u of %s %u", \
sp->line, isTiled(tif) ? "tile" : "strip", \
isTiled(tif) ? tif->tif_curtile \
: tif->tif_curstrip); \
return (-1); \
} \
*pa++ = RunLength + (x); \
a0 += (x); \
RunLength = 0; \
} while (0)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

Definition at line 265 of file tif_fax3.h.

◆ SYNC_EOL

#define SYNC_EOL (   eoflab,
  retrywithouteol 
)

Definition at line 292 of file tif_fax3.h.

Typedef Documentation

◆ TIFFFaxFillFunc

typedef void(* TIFFFaxFillFunc) (unsigned char *, uint32_t *, uint32_t *, uint32_t)

Definition at line 53 of file tif_fax3.h.

Function Documentation

◆ _TIFFFax3fillruns()

void _TIFFFax3fillruns ( unsigned char ,
uint32_t ,
uint32_t ,
uint32_t   
)

Variable Documentation

◆ TIFFFaxBlackTable

const TIFFFaxTabEnt TIFFFaxBlackTable[]
extern

Definition at line 433 of file tif_fax3sm.c.

◆ TIFFFaxMainTable

const TIFFFaxTabEnt TIFFFaxMainTable[]
extern

Definition at line 6 of file tif_fax3sm.c.

◆ TIFFFaxWhiteTable

const TIFFFaxTabEnt TIFFFaxWhiteTable[]
extern

Definition at line 21 of file tif_fax3sm.c.