about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-10-20 19:57:49 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-10-20 19:57:49 +0000
commitcbba7cc2c587c5187eb9c07232af21eeeb4b0e4a (patch)
tree785817e2deaccb1c7cb4794b736d90abbceac123
parentd51febce3146aaf426f8700de01d6c5279de0a9d (diff)
downloadnetpbm-mirror-cbba7cc2c587c5187eb9c07232af21eeeb4b0e4a.tar.gz
netpbm-mirror-cbba7cc2c587c5187eb9c07232af21eeeb4b0e4a.tar.xz
netpbm-mirror-cbba7cc2c587c5187eb9c07232af21eeeb4b0e4a.zip
Add comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2021 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/other/pnmtops.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c
index 1cf23be7..6c83f38e 100644
--- a/converter/other/pnmtops.c
+++ b/converter/other/pnmtops.c
@@ -1855,7 +1855,17 @@ convertRaster(struct pam * const inpamP,
               unsigned int const bitsPerSample,
               bool         const psFilter,
               FILE *       const fP) {
+/*----------------------------------------------------------------------------
+   Read the raster described by *inpamP, and write a bit stream of samples
+   to *fP.  This stream has to be compressed and converted to text before it
+   can be part of a Postscript program.
+   
+   'psFilter' means to do the conversion using built in Postscript filters, as
+   opposed to our own filters via /readstring.
 
+   'bitsPerSample' is how many bits each sample is to take in the Postscript
+   output.
+-----------------------------------------------------------------------------*/
     if (PAM_FORMAT_TYPE(inpamP->format) == PBM_TYPE && bitsPerSample == 1)  {
         unsigned char * bitrow;
         unsigned int row;