diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-08 18:46:11 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-08 18:46:11 +0000 |
commit | 03890c65333369af7b53beb62ac1e025f253ca6c (patch) | |
tree | fd55534763786ed2454f48efbd9e846abca729ca /converter | |
parent | 03c430017d34f0b4f96b7764326db0cbcc5f7357 (diff) | |
download | netpbm-mirror-03890c65333369af7b53beb62ac1e025f253ca6c.tar.gz netpbm-mirror-03890c65333369af7b53beb62ac1e025f253ca6c.tar.xz netpbm-mirror-03890c65333369af7b53beb62ac1e025f253ca6c.zip |
Add some information about MGR format
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@115 9d0c8265-081b-0410-96cb-a4ca84ce46f8
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. +*/ |