PGFplatform.h(3)
π 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'sWordBytes*8.WordWidthLog 5β theldofWordWidth.WordMask 0xFFFFFFE0β the leastWordWidthLogbits are zero.WordBytes 4β that'ssizeof(UINT32).WordBytesMask 0xFFFFFFFCβ the leastWordBytesLogbits are zero.WordBytesLog 2β theldofWordBytes.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'sDWWIDTH(bytes) - bytes.__min(x, y)β the little guy π₯Ί__max(x, y)β the big guy πImageModeBitmap 0β bestie, this is image mode0πImageModeGrayScale 1ImageModeIndexedColor 2ImageModeRGBColor 3ImageModeCMYKColor 4ImageModeHSLColor 5ImageModeHSBColor 6ImageModeMultichannel 7ImageModeDuotone 8ImageModeLabColor 9ImageModeGray16 10ImageModeRGB48 11ImageModeLab48 12ImageModeCMYK64 13ImageModeDeepMultichannel 14ImageModeDuotone16 15ImageModeRGBA 17β no, there is no16, don't ask, it's just the vibe πImageModeGray32 18ImageModeRGB12 19ImageModeRGB16 20ImageModeUnknown 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
- fedora 43: libpgf-devel 7.21.7-8.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: libpgf-devel 7.21.7-8.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms