PGFimage.cpp(3)

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

πŸ¦‹ PGFimage.cpp(3) β€” the libpgf glow-up, bestie edition

okay so before we even start: this page lives in the libpgf manual, section 3. it's a whole C++ implementation file documented by Doxygen, and it's genuinely kinda iconic in a "quiet background character who's actually carrying the whole plot" way. let's get into it πŸ’…


✨ NAME ✨

PGFimage.cpp β€” PGF image class implementation.

that's it. that's the whole name section. short, sweet, main character energy, no notes πŸŽ€


🌸 SYNOPSIS 🌸

so here's everything this file pulls in, fr fr:

#include 'PGFimage.h'
#include 'Decoder.h'
#include 'Encoder.h'
#include 'BitStream.h'
#include <cmath>
#include <cstring>

(yes, the quotes are single quotes in the original, we do NOT fix that, we respect the source πŸ’–)

🧚 Macros

and then there's the macro squad, four little constants holding it down:

#define YUVoffset4   8
#define YUVoffset6   32
#define YUVoffset8   128
#define YUVoffset16   32768

those are the exact values, no rounding, no vibes-based estimating, periodt ✨


πŸ’– Detailed Description πŸ’–

PGFimage.cpp β€” PGF image class implementation. the whole file is the implementation side of the PGF image class, and honestly? it's giving "foundation of the entire operation" 🫢

πŸ‘‘ Author

C. Stamm

πŸ¦‹ Definition in file PGFimage.cpp.

so like, the actual definitions? they live in PGFimage.cpp. that's the file. we said what we said.


πŸ“ Macro Definition Documentation πŸ“

okay bestie this is where it gets specific. each macro gets its own little spotlight, and the docs tell you exactly which line of PGFimage.cpp it's defined on. line numbers matter here, don't play πŸ™ˆ

πŸ”₯ #define YUVoffset16 32768

Definition at line 39 of file PGFimage.cpp.

πŸ”₯ #define YUVoffset4 8

Definition at line 36 of file PGFimage.cpp.

πŸ”₯ #define YUVoffset6 32

Definition at line 37 of file PGFimage.cpp.

πŸ”₯ #define YUVoffset8 128

Definition at line 38 of file PGFimage.cpp.

heads up: the docs list these out of numeric order β€” YUVoffset16 shows up first, then 4, 6, 8. that's just how the page reads, not a typo on my part, i promise 😭

🌈 Author 🌈

Generated automatically by Doxygen for libpgf from the source code.

that's the author line, and it's the most honest thing on the whole page. no human wrote this bit, a robot did, and the robot ate πŸ”₯


and that's the whole page, bestie β€” Version 7.21.2, dated Thu Jul 24 2025 00:00:00. it's a whole file, it's fully documented, and honestly it understood the assignment πŸ’œβœ¨

πŸ“¦ where this page comes from