Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

pltiffdec.cpp File Reference

#include "plstdpch.h"
#include "pltiffdec.h"
#include "plexcept.h"
#include "tif_msrc.h"

Include dependency graph for pltiffdec.cpp:

Include dependency graph

Go to the source code of this file.

Classes

class  _tiff_helper

Defines

#define REPEAT8(op)   REPEAT4(op); REPEAT4(op)
#define REPEAT4(op)   REPEAT2(op); REPEAT2(op)
#define REPEAT2(op)   op; op
#define CASE8(x, op)
#define NOP
#define UNROLL8(w, op1, op2)
#define PACK4(r, g, b, a)   ((uint32)(r)|((uint32)(g)<<8)|((uint32)(b)<<16)|((uint32)(a)<<24))
#define CVT(x)   (((x) * 255L) / ((1L<<16)-1))

Typedefs

typedef unsigned char u_char

Functions

void putRGBAAcontig8bittile (TIFFRGBAImage *img, uint32 *cp, uint32 x, uint32 y, uint32 w, uint32 h, int32 fromskew, int32 toskew, u_char *pp)
int checkcmap (int n, uint16 *r, uint16 *g, uint16 *b)

Variables

_tiff_helper _the_tiff_helper_singleton


Define Documentation

#define CASE8 x,
op   ) 
 

Value:

switch (x) {      \
    case 7: op; case 6: op; case 5: op; \
    case 4: op; case 3: op; case 2: op; \
    case 1: op;       \
    }

Definition at line 56 of file pltiffdec.cpp.

#define CVT  )     (((x) * 255L) / ((1L<<16)-1))
 

Definition at line 268 of file pltiffdec.cpp.

Referenced by PLTIFFDecoder::doLoColor().

#define NOP
 

Definition at line 62 of file pltiffdec.cpp.

Referenced by putRGBAAcontig8bittile().

#define PACK4 r,
g,
b,
 )     ((uint32)(r)|((uint32)(g)<<8)|((uint32)(b)<<16)|((uint32)(a)<<24))
 

Definition at line 76 of file pltiffdec.cpp.

Referenced by putRGBAAcontig8bittile().

#define REPEAT2 op   )     op; op
 

Definition at line 55 of file pltiffdec.cpp.

#define REPEAT4 op   )     REPEAT2(op); REPEAT2(op)
 

Definition at line 54 of file pltiffdec.cpp.

#define REPEAT8 op   )     REPEAT4(op); REPEAT4(op)
 

Definition at line 53 of file pltiffdec.cpp.

#define UNROLL8 w,
op1,
op2   ) 
 

Value:

{    \
    uint32 _x;        \
    for (_x = w; _x >= 8; _x -= 8) {  \
  op1;        \
  REPEAT8(op2);     \
    }         \
    if (_x > 0) {     \
  op1;        \
  CASE8(_x,op2);      \
    }         \
}

Definition at line 64 of file pltiffdec.cpp.

Referenced by putRGBAAcontig8bittile().


Typedef Documentation

typedef unsigned char u_char
 

Definition at line 51 of file pltiffdec.cpp.


Function Documentation

int checkcmap int  n,
uint16 *  r,
uint16 *  g,
uint16 *  b
[static]
 

Definition at line 259 of file pltiffdec.cpp.

Referenced by PLTIFFDecoder::doLoColor().

void putRGBAAcontig8bittile TIFFRGBAImage *  img,
uint32 *  cp,
uint32  x,
uint32  y,
uint32  w,
uint32  h,
int32  fromskew,
int32  toskew,
u_char pp
[static]
 

Definition at line 83 of file pltiffdec.cpp.

References NOP, PACK4, and UNROLL8.


Variable Documentation

_tiff_helper _the_tiff_helper_singleton [static]
 

Definition at line 45 of file pltiffdec.cpp.


Generated on Wed Dec 15 21:20:45 2004 for vuVolume by  doxygen 1.3.9.1