diff options
Diffstat (limited to 'converter')
-rw-r--r-- | converter/pbm/mgrtopbm.c | 45 | ||||
-rw-r--r-- | converter/pbm/pbmtomgr.c | 41 |
2 files changed, 53 insertions, 33 deletions
diff --git a/converter/pbm/mgrtopbm.c b/converter/pbm/mgrtopbm.c index 79b918fb..9f7004a1 100644 --- a/converter/pbm/mgrtopbm.c +++ b/converter/pbm/mgrtopbm.c @@ -1,22 +1,10 @@ /* mgrtopbm.c - read a MGR bitmap and produce a PBM image. -** -** Copyright (C) 1989 by Jef Poskanzer. -** -** Permission to use, copy, modify, and distribute this software and its -** documentation for any purpose and without fee is hereby granted, provided -** that the above copyright notice appear in all copies and that both that -** copyright notice and this permission notice appear in supporting -** documentation. This software is provided "as is" without express or -** implied warranty. -*/ -/* 2006.10 (afu) - Changed bitrow from plain to raw, read function from getc() to fread(), - write function from pbm_writepbmrow() to pbm_writepbmrow_packed(). - Retired bitwise transformation functions. - - NOT tested for old-style format files. Only one zz file in mgrsrc-0.69 . - + Copyright information is at end of file. + + You can find MGR and some MGR format test images at + ftp://sunsite.unc.edu/pub/Linux/apps/MGR/!INDEX.html + */ #include <string.h> @@ -133,3 +121,26 @@ main(int argc, pm_close(stdout); return 0; } + + + +/* 2006.10 (afu) + Changed bitrow from plain to raw, read function from getc() to fread(), + write function from pbm_writepbmrow() to pbm_writepbmrow_packed(). + Retired bitwise transformation functions. + + NOT tested for old-style format files. Only one zz file in mgrsrc-0.69 . + +*/ + + +/* +** Copyright (C) 1989 by Jef Poskanzer. +** +** Permission to use, copy, modify, and distribute this software and its +** documentation for any purpose and without fee is hereby granted, provided +** that the above copyright notice appear in all copies and that both that +** copyright notice and this permission notice appear in supporting +** documentation. This software is provided "as is" without express or +** implied warranty. +*/ diff --git a/converter/pbm/pbmtomgr.c b/converter/pbm/pbmtomgr.c index 56c4fdd6..2ca7c7d0 100644 --- a/converter/pbm/pbmtomgr.c +++ b/converter/pbm/pbmtomgr.c @@ -1,22 +1,9 @@ /* pbmtomgr.c - read a PBM image and produce a MGR bitmap -** -** Copyright (C) 1989 by Jef Poskanzer. -** -** Permission to use, copy, modify, and distribute this software and its -** documentation for any purpose and without fee is hereby granted, provided -** that the above copyright notice appear in all copies and that both that -** copyright notice and this permission notice appear in supporting -** documentation. This software is provided "as is" without express or -** implied warranty. -*/ -/* 2006.10 (afu) - Changed bitrow from plain to raw, read function from pbm_readpbmrow() to - pbm_readpbmrow_packed(), write function from putc() to fwrite(). + Copyright information is at end of file. - Retired bitwise transformation functions. - - Produces only new style bitmap (8 bit padding.) See mgrtopbm.c . + You can find MGR and some MGR format test images at + ftp://sunsite.unc.edu/pub/Linux/apps/MGR/!INDEX.html */ #include "pbm.h" @@ -103,3 +90,25 @@ main(int argc, pm_close(ifP); return 0; } + + + +/* 2006.10 (afu) + Changed bitrow from plain to raw, read function from pbm_readpbmrow() to + pbm_readpbmrow_packed(), write function from putc() to fwrite(). + + Retired bitwise transformation functions. + + Produces only new style bitmap (8 bit padding.) See mgrtopbm.c . +*/ + +/* +** Copyright (C) 1989 by Jef Poskanzer. +** +** Permission to use, copy, modify, and distribute this software and its +** documentation for any purpose and without fee is hereby granted, provided +** that the above copyright notice appear in all copies and that both that +** copyright notice and this permission notice appear in supporting +** documentation. This software is provided "as is" without express or +** implied warranty. +*/ |