diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-12-28 19:53:34 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-12-28 19:53:34 +0000 |
commit | 5d16663331afd0bc2edaeb2e49042dc219ce9c2f (patch) | |
tree | 476fbb2ab4311d4bb6d65b250825e254a7a2c1ef /converter/other/pnmtorast.c | |
parent | 42f0bf8e7f1ff88000a3584c265e6f1631662ec4 (diff) | |
download | netpbm-mirror-5d16663331afd0bc2edaeb2e49042dc219ce9c2f.tar.gz netpbm-mirror-5d16663331afd0bc2edaeb2e49042dc219ce9c2f.tar.xz netpbm-mirror-5d16663331afd0bc2edaeb2e49042dc219ce9c2f.zip |
promote Development to Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4827 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pnmtorast.c')
-rw-r--r-- | converter/other/pnmtorast.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/converter/other/pnmtorast.c b/converter/other/pnmtorast.c index e11d3cb7..14c0be0a 100644 --- a/converter/other/pnmtorast.c +++ b/converter/other/pnmtorast.c @@ -31,7 +31,7 @@ allocPrColormap(void) { MALLOCARRAY(prColormapP->map[0], MAXCOLORS); MALLOCARRAY(prColormapP->map[1], MAXCOLORS); MALLOCARRAY(prColormapP->map[2], MAXCOLORS); - if (prColormapP->map[0] == NULL || + if (prColormapP->map[0] == NULL || prColormapP->map[1] == NULL || prColormapP->map[2] == NULL) pm_error("out of memory"); @@ -92,7 +92,7 @@ doRowDepth1(const xel * const xelrow, xelval const maxval, colorhash_table const cht, unsigned int * const lenP) { - + unsigned int col; int bitcount; unsigned int cursor; @@ -191,7 +191,6 @@ doRowDepth8(const xel * const xelrow, - static void doRowDepth24(const xel * const xelrow, unsigned char * const rastRow, @@ -232,7 +231,7 @@ computeRaster(unsigned char * const rastRaster, xelval const maxval, xel ** const xels, colorhash_table const cht) { - + unsigned int row; unsigned char * rastRow; @@ -375,7 +374,7 @@ main(int argc, const char ** argv) { if (maxval > 255 && depth != 1) pm_message( "maxval is not 255 - automatically rescaling colors"); - + /* Allocate space for the Sun-format image. */ prP = mem_create(cols, rows, depth); if (!prP) @@ -398,3 +397,5 @@ main(int argc, const char ** argv) { return 0; } + + |