libpgf  6.14.12
PGF - Progressive Graphics File
PGFplatform.h File Reference

PGF platform specific definitions. More...

#include <cassert>
#include <cmath>
#include <cstdlib>

Go to the source code of this file.

Macros

#define __PGFROISUPPORT__
 
#define __PGF32SUPPORT__
 
#define WordWidth   32
 WordBytes*8. More...
 
#define WordWidthLog   5
 ld of WordWidth More...
 
#define WordMask   0xFFFFFFE0
 least WordWidthLog bits are zero More...
 
#define WordBytes   4
 sizeof(UINT32) More...
 
#define WordBytesMask   0xFFFFFFFC
 least WordBytesLog bits are zero More...
 
#define WordBytesLog   2
 ld of WordBytes More...
 
#define DWWIDTHBITS(bits)   (((bits) + WordWidth - 1) & WordMask)
 aligns scanline width in bits to DWORD value More...
 
#define DWWIDTH(bytes)   (((bytes) + WordBytes - 1) & WordBytesMask)
 aligns scanline width in bytes to DWORD value More...
 
#define DWWIDTHREST(bytes)   ((WordBytes - (bytes)%WordBytes)%WordBytes)
 DWWIDTH(bytes) - bytes. More...
 
#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)
 

Detailed Description

PGF platform specific definitions.

Author
C. Stamm

Definition in file PGFplatform.h.

Macro Definition Documentation

◆ __max

#define __max (   x,
 
)    ((x) >= (y) ? (x) : (y))

Definition at line 93 of file PGFplatform.h.

◆ __min

#define __min (   x,
 
)    ((x) <= (y) ? (x) : (y))

Definition at line 92 of file PGFplatform.h.

◆ __PGF32SUPPORT__

#define __PGF32SUPPORT__

Definition at line 68 of file PGFplatform.h.

◆ __PGFROISUPPORT__

#define __PGFROISUPPORT__

Definition at line 61 of file PGFplatform.h.

◆ __VAL

#define __VAL (   x)    (x)

Definition at line 605 of file PGFplatform.h.

◆ DWWIDTH

#define DWWIDTH (   bytes)    (((bytes) + WordBytes - 1) & WordBytesMask)

aligns scanline width in bytes to DWORD value

Definition at line 85 of file PGFplatform.h.

◆ DWWIDTHBITS

#define DWWIDTHBITS (   bits)    (((bits) + WordWidth - 1) & WordMask)

aligns scanline width in bits to DWORD value

Definition at line 84 of file PGFplatform.h.

◆ DWWIDTHREST

#define DWWIDTHREST (   bytes)    ((WordBytes - (bytes)%WordBytes)%WordBytes)

DWWIDTH(bytes) - bytes.

Definition at line 86 of file PGFplatform.h.

◆ ImageModeBitmap

#define ImageModeBitmap   0

Definition at line 99 of file PGFplatform.h.

◆ ImageModeCMYK64

#define ImageModeCMYK64   13

Definition at line 112 of file PGFplatform.h.

◆ ImageModeCMYKColor

#define ImageModeCMYKColor   4

Definition at line 103 of file PGFplatform.h.

◆ ImageModeDeepMultichannel

#define ImageModeDeepMultichannel   14

Definition at line 113 of file PGFplatform.h.

◆ ImageModeDuotone

#define ImageModeDuotone   8

Definition at line 107 of file PGFplatform.h.

◆ ImageModeDuotone16

#define ImageModeDuotone16   15

Definition at line 114 of file PGFplatform.h.

◆ ImageModeGray16

#define ImageModeGray16   10

Definition at line 109 of file PGFplatform.h.

◆ ImageModeGray32

#define ImageModeGray32   18

Definition at line 117 of file PGFplatform.h.

◆ ImageModeGrayScale

#define ImageModeGrayScale   1

Definition at line 100 of file PGFplatform.h.

◆ ImageModeHSBColor

#define ImageModeHSBColor   6

Definition at line 105 of file PGFplatform.h.

◆ ImageModeHSLColor

#define ImageModeHSLColor   5

Definition at line 104 of file PGFplatform.h.

◆ ImageModeIndexedColor

#define ImageModeIndexedColor   2

Definition at line 101 of file PGFplatform.h.

◆ ImageModeLab48

#define ImageModeLab48   12

Definition at line 111 of file PGFplatform.h.

◆ ImageModeLabColor

#define ImageModeLabColor   9

Definition at line 108 of file PGFplatform.h.

◆ ImageModeMultichannel

#define ImageModeMultichannel   7

Definition at line 106 of file PGFplatform.h.

◆ ImageModeRGB12

#define ImageModeRGB12   19

Definition at line 118 of file PGFplatform.h.

◆ ImageModeRGB16

#define ImageModeRGB16   20

Definition at line 119 of file PGFplatform.h.

◆ ImageModeRGB48

#define ImageModeRGB48   11

Definition at line 110 of file PGFplatform.h.

◆ ImageModeRGBA

#define ImageModeRGBA   17

Definition at line 116 of file PGFplatform.h.

◆ ImageModeRGBColor

#define ImageModeRGBColor   3

Definition at line 102 of file PGFplatform.h.

◆ ImageModeUnknown

#define ImageModeUnknown   255

Definition at line 120 of file PGFplatform.h.

◆ WordBytes

#define WordBytes   4

sizeof(UINT32)

Definition at line 77 of file PGFplatform.h.

◆ WordBytesLog

#define WordBytesLog   2

ld of WordBytes

Definition at line 79 of file PGFplatform.h.

◆ WordBytesMask

#define WordBytesMask   0xFFFFFFFC

least WordBytesLog bits are zero

Definition at line 78 of file PGFplatform.h.

◆ WordMask

#define WordMask   0xFFFFFFE0

least WordWidthLog bits are zero

Definition at line 76 of file PGFplatform.h.

◆ WordWidth

#define WordWidth   32

WordBytes*8.

Definition at line 74 of file PGFplatform.h.

◆ WordWidthLog

#define WordWidthLog   5

ld of WordWidth

Definition at line 75 of file PGFplatform.h.