PGFplatform.h(3)

πŸ“¦
version 7.21.7 Β· 4 versions
, in fedora 43

πŸ’– PGFplatform.h(3) πŸ’–

okay bestie, so this is a page from libpgf's manual β€” it's PGFplatform.h, the header where all the platform-specific stuff lives. no cap, it's giving very "under the hood" energy but we're gonna get through it together 🫢


✨ NAME ✨

PGFplatform.h β€” PGF platform specific definitions. literally what it says on the tin, bestie πŸ’…


🌸 SYNOPSIS 🌸

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

πŸŽ€ Macros πŸŽ€

  • __PGFROISUPPORT__ β€” yes queen, ROI support is on πŸ’–
  • __PGF32SUPPORT__ β€” and 32-bit support too ✨
  • WordWidth 32 β€” that's WordBytes*8.
  • WordWidthLog 5 β€” the ld of WordWidth.
  • WordMask 0xFFFFFFE0 β€” the least WordWidthLog bits are zero.
  • WordBytes 4 β€” that's sizeof(UINT32).
  • WordBytesMask 0xFFFFFFFC β€” the least WordBytesLog bits are zero.
  • WordBytesLog 2 β€” the ld of WordBytes.
  • DWWIDTHBITS(bits) β€” aligns scanline width in bits to a DWORD value.
  • DWWIDTH(bytes) β€” aligns scanline width in bytes to a DWORD value.
  • DWWIDTHREST(bytes) β€” that's DWWIDTH(bytes) - bytes.
  • __min(x, y) β€” the little guy πŸ₯Ί
  • __max(x, y) β€” the big guy πŸ‘‘
  • ImageModeBitmap 0 β€” bestie, this is image mode 0 πŸ’…
  • ImageModeGrayScale 1
  • ImageModeIndexedColor 2
  • ImageModeRGBColor 3
  • ImageModeCMYKColor 4
  • ImageModeHSLColor 5
  • ImageModeHSBColor 6
  • ImageModeMultichannel 7
  • ImageModeDuotone 8
  • ImageModeLabColor 9
  • ImageModeGray16 10
  • ImageModeRGB48 11
  • ImageModeLab48 12
  • ImageModeCMYK64 13
  • ImageModeDeepMultichannel 14
  • ImageModeDuotone16 15
  • ImageModeRGBA 17 β€” no, there is no 16, don't ask, it's just the vibe 😭
  • ImageModeGray32 18
  • ImageModeRGB12 19
  • ImageModeRGB16 20
  • ImageModeUnknown 255 β€” the mystery era 🌈
  • __VAL(x) β€” the wrapper ✨

πŸ¦‹ Detailed Description πŸ¦‹

PGF platform specific definitions. that's the whole vibe check, bestie.

Author β€” C. Stamm πŸ’–

Definition in file PGFplatform.h.


πŸ”₯ MACRO DEFINITION DOCUMENTATION πŸ”₯

here come the receipts, every macro with its actual value and exactly where it lives πŸ‘‘

#define __max( x, y)

Value:

((x) >= (y) ? (x) : (y))

Definition at line 92 of file PGFplatform.h.

#define __min( x, y)

Value:

((x) <= (y) ? (x) : (y))

Definition at line 91 of file PGFplatform.h.

#define __PGF32SUPPORT__

Definition at line 67 of file PGFplatform.h.

#define __PGFROISUPPORT__

Definition at line 60 of file PGFplatform.h.

#define __VAL( x)

Value:

(x)

Definition at line 603 of file PGFplatform.h.

#define DWWIDTH( bytes)

Value:

(((bytes) + WordBytes - 1) & WordBytesMask)

aligns scanline width in bytes to DWORD value πŸŽ€

Definition at line 84 of file PGFplatform.h.

#define DWWIDTHBITS( bits)

Value:

(((bits) + WordWidth - 1) & WordMask)

aligns scanline width in bits to DWORD value ✨

Definition at line 83 of file PGFplatform.h.

#define DWWIDTHREST( bytes)

Value:

((WordBytes - (bytes)%WordBytes)%WordBytes)

that's DWWIDTH(bytes) - bytes. πŸ’…

Definition at line 85 of file PGFplatform.h.

#define ImageModeBitmap 0

Definition at line 98 of file PGFplatform.h.

#define ImageModeCMYK64 13

Definition at line 111 of file PGFplatform.h.

#define ImageModeCMYKColor 4

Definition at line 102 of file PGFplatform.h.

#define ImageModeDeepMultichannel 14

Definition at line 112 of file PGFplatform.h.

#define ImageModeDuotone 8

Definition at line 106 of file PGFplatform.h.

#define ImageModeDuotone16 15

Definition at line 113 of file PGFplatform.h.

#define ImageModeGray16 10

Definition at line 108 of file PGFplatform.h.

#define ImageModeGray32 18

Definition at line 116 of file PGFplatform.h.

#define ImageModeGrayScale 1

Definition at line 99 of file PGFplatform.h.

#define ImageModeHSBColor 6

Definition at line 104 of file PGFplatform.h.

#define ImageModeHSLColor 5

Definition at line 103 of file PGFplatform.h.

#define ImageModeIndexedColor 2

Definition at line 100 of file PGFplatform.h.

#define ImageModeLab48 12

Definition at line 110 of file PGFplatform.h.

#define ImageModeLabColor 9

Definition at line 107 of file PGFplatform.h.

#define ImageModeMultichannel 7

Definition at line 105 of file PGFplatform.h.

#define ImageModeRGB12 19

Definition at line 117 of file PGFplatform.h.

#define ImageModeRGB16 20

Definition at line 118 of file PGFplatform.h.

#define ImageModeRGB48 11

Definition at line 109 of file PGFplatform.h.

#define ImageModeRGBA 17

Definition at line 115 of file PGFplatform.h.

#define ImageModeRGBColor 3

Definition at line 101 of file PGFplatform.h.

#define ImageModeUnknown 255

Definition at line 119 of file PGFplatform.h.

#define WordBytes 4

that's sizeof(UINT32) 🫢

Definition at line 76 of file PGFplatform.h.

#define WordBytesLog 2

ld of WordBytes

Definition at line 78 of file PGFplatform.h.

#define WordBytesMask 0xFFFFFFFC

least WordBytesLog bits are zero

Definition at line 77 of file PGFplatform.h.

#define WordMask 0xFFFFFFE0

least WordWidthLog bits are zero

Definition at line 75 of file PGFplatform.h.

#define WordWidth 32

WordBytes*8.

Definition at line 73 of file PGFplatform.h.

#define WordWidthLog 5

ld of WordWidth

Definition at line 74 of file PGFplatform.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libpgf from the source code. the robots did this one, bestie πŸ€–βœ¨


and that's the whole page!! this was Version 7.21.2, dated Thu Jul 24 2025 00:00:00, and it's literally giving PGFplatform.h(3) main character energy πŸ’…πŸ’– no cap, you ate this whole header. periodt. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from