diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-06-28 23:54:29 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-06-28 23:54:29 +0000 |
commit | be0a23cddaf0182d1fda4f623a3b23f67db91d73 (patch) | |
tree | 5d46db6bd85005728f7821965e66e3e5f0018d62 /lib/pnm.h | |
parent | b13ba8b9b606c916e0bda39348ee009e920df22e (diff) | |
download | netpbm-mirror-be0a23cddaf0182d1fda4f623a3b23f67db91d73.tar.gz netpbm-mirror-be0a23cddaf0182d1fda4f623a3b23f67db91d73.tar.xz netpbm-mirror-be0a23cddaf0182d1fda4f623a3b23f67db91d73.zip |
Promote Development to Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3647 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 |