PGFHeader(3)

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

πŸ’– PGFHeader(3) β€” the libpgf glow-up πŸ’–

okay bestie, sit DOWN, because we're talking about PGFHeader, straight out of libpgf. this is the header struct that holds all the image tea. it's giving "small struct, huge main character energy" and honestly? iconic. πŸŽ€


✨ NAME ✨

PGFHeader β€” the PGF header. that's it. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <PGFtypes.h>

🫢 Public Member Functions

  • PGFHeader () β€” the constructor, she's the entry point, the door girl, the beginning of everything.

πŸ¦‹ Public Attributes

  • UINT32 width β€” image width in pixels. the horizontal slay. πŸ“
  • UINT32 height β€” image height in pixels. the vertical slay.
  • UINT8 nLevels β€” number of FWT transforms. count 'em.
  • UINT8 quality β€” quantization parameter: 0=lossless, 4=standard, 6=poor quality. choose your fighter. πŸ”₯
  • UINT8 bpp β€” bits per pixel.
  • UINT8 channels β€” number of channels.
  • UINT8 mode β€” image mode according to Adobe's image modes. yes, Adobe's. respect the elders.
  • UINT8 usedBitsPerChannel β€” number of used bits per channel in 16- and 32-bit per channel modes.
  • PGFVersionNumber version β€” codec version number: (since Version 7). she's new-ish, she's thriving.

πŸ‘‘ Detailed Description πŸ‘‘

PGF header.

PGF header contains image information. literally that's her job, that's her whole thing, and she does it flawlessly. no notes. πŸ’œ

Author: C. Stamm

Definition at line 151 of file PGFtypes.h.


🧚 Constructor & Destructor Documentation 🧚

PGFHeader::PGFHeader () [inline]

Definition at line 152 of file PGFtypes.h.

152 : width(0), height(0), nLevels(0), quality(0), bpp(0), channels(0), mode(ImageModeUnknown), usedBitsPerChannel(0), version(0, 0, 0) {}

look at her. every single field zeroed out except mode, which is ImageModeUnknown because she doesn't know herself yet. growth. we love a blank-slate era. 🌱✨


πŸ“ Member Data Documentation πŸ“

UINT8 PGFHeader::bpp

bits per pixel

Definition at line 157 of file PGFtypes.h.

UINT8 PGFHeader::channels

number of channels

Definition at line 158 of file PGFtypes.h.

UINT32 PGFHeader::height

image height in pixels

Definition at line 154 of file PGFtypes.h.

UINT8 PGFHeader::mode

image mode according to Adobe's image modes

Definition at line 159 of file PGFtypes.h.

UINT8 PGFHeader::nLevels

number of FWT transforms

Definition at line 155 of file PGFtypes.h.

UINT8 PGFHeader::quality

quantization parameter: 0=lossless, 4=standard, 6=poor quality

Definition at line 156 of file PGFtypes.h.

UINT8 PGFHeader::usedBitsPerChannel

number of used bits per channel in 16- and 32-bit per channel modes

Definition at line 160 of file PGFtypes.h.

PGFVersionNumber PGFHeader::version

codec version number: (since Version 7)

Definition at line 161 of file PGFtypes.h.

UINT32 PGFHeader::width

image width in pixels

Definition at line 153 of file PGFtypes.h.

bestie note: yes, the member docs are alphabetical, not declaration order. that's just how Doxygen decided to serve it and we're not about to fight her about it. πŸ™ˆ

πŸ’Œ Author πŸ’Œ

Generated automatically by Doxygen for libpgf from the source code.


and that's the whole page, periodt. πŸ’…

Version 7.21.2 🌈 dated Thu Jul 24 2025 00:00:00 β€” shoutout to libpgf for feeding us this Doxygen-generated masterpiece, mwah, take care of yourselves, hydrate, and go read PGFtypes.h line by line like it's a group chat. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from