Scribus
Open source desktop publishing at your fingertips
PGFplatform.h File Reference

PGF platform specific definitions. More...

#include <cassert>
#include <cmath>
#include <cstdlib>
Include dependency graph for PGFplatform.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __PGFROISUPPORT__
 
#define __PGF32SUPPORT__
 
#define WordWidth   32
 WordBytes*8.
 
#define WordWidthLog   5
 ld of WordWidth
 
#define WordMask   0xFFFFFFE0
 least WordWidthLog bits are zero
 
#define WordBytes   4
 sizeof(UINT32)
 
#define WordBytesMask   0xFFFFFFFC
 least WordBytesLog bits are zero
 
#define WordBytesLog   2
 ld of WordBytes
 
#define DWWIDTHBITS(bits)   (((bits) + WordWidth - 1) & WordMask)
 aligns scanline width in bits to DWORD value
 
#define DWWIDTH(bytes)   (((bytes) + WordBytes - 1) & WordBytesMask)
 aligns scanline width in bytes to DWORD value
 
#define DWWIDTHREST(bytes)   ((WordBytes - (bytes)%WordBytes)%WordBytes)
 DWWIDTH(bytes) - bytes.
 
#define __min(x, y)   ((x) <= (y) ? (x) : (y))
 
#define __max(x, y)   ((x) >= (y) ? (x) : (y))
 
#define ImageModeBitmap   0
 
#define ImageModeGrayScale   1
 
#define ImageModeIndexedColor   2
 
#define ImageModeRGBColor   3
 
#define ImageModeCMYKColor   4
 
#define ImageModeHSLColor   5
 
#define ImageModeHSBColor   6
 
#define ImageModeMultichannel   7
 
#define ImageModeDuotone   8
 
#define ImageModeLabColor   9
 
#define ImageModeGray16   10
 
#define ImageModeRGB48   11
 
#define ImageModeLab48   12
 
#define ImageModeCMYK64   13
 
#define ImageModeDeepMultichannel   14
 
#define ImageModeDuotone16   15
 
#define ImageModeRGBA   17
 
#define ImageModeGray32   18
 
#define ImageModeRGB12   19
 
#define ImageModeRGB16   20
 
#define ImageModeUnknown   255
 
#define __VAL(x)   (x)
 
#define LIBPGF_DISABLE_OPENMP
 

Detailed Description

PGF platform specific definitions.

Author
C. Stamm