diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:29:32 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:29:32 +0000 |
commit | 23ce26f64c34e30951ad9ade2151552ed77e7357 (patch) | |
tree | d73b31a0c2f7c7be4a69f8a8e84e00dd39c432b5 /lib/pnm.h | |
parent | 1b6e51a266008348ad93ed8b6ac9ec91b5024fea (diff) | |
download | netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.tar.gz netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.tar.xz netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.zip |
promote Advanced to Stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4558 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/pnm.h')
-rw-r--r-- | lib/pnm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/pnm.h b/lib/pnm.h index 0625cb5c..a8aad161 100644 --- a/lib/pnm.h +++ b/lib/pnm.h @@ -18,7 +18,18 @@ extern "C" { typedef pixel xel; + /* Xels come in three types: PBM, PGM, and PPM; the user of an Xel has to + know which as a matter of context (and like a pixel, the user also has + to interpret an xel in the context of a certain maxval). Though the + structure is identical to 'pixel', the values are the same only for PPM + xels. For a PGM xel, the 'r' and 'g' components of the 'xel' structure + are zero and the 'b' component is the gray level. For a PBM xel, the + 'r' and 'g' components are zero and the 'b' component is 0 for black + or maxval for white. + */ + typedef pixval xelval; + #define PNM_OVERALLMAXVAL PPM_OVERALLMAXVAL #define PNM_MAXMAXVAL PPM_MAXMAXVAL #define pnm_unnormalize ppm_unnormalize |