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/rast.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/rast.c')
-rw-r--r-- | converter/other/rast.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/converter/other/rast.c b/converter/other/rast.c index 1c787089..1a64f7e5 100644 --- a/converter/other/rast.c +++ b/converter/other/rast.c @@ -61,6 +61,8 @@ mem_create( w, h, depth ) return p; } + + void mem_free( p ) struct pixrect* p; @@ -70,6 +72,8 @@ mem_free( p ) free( p ); } + + int pr_dump( p, out, colormap, type, copy_flag ) struct pixrect* p; @@ -371,11 +375,11 @@ pr_load_colormap( in, hP, colormap ) free( colormap->map[1] ); return PIX_ERR; } - if ( fread( colormap->map[0], 1, colormap->length, in ) != + if ( fread( colormap->map[0], 1, colormap->length, in ) != colormap->length || - fread( colormap->map[1], 1, colormap->length, in ) != + fread( colormap->map[1], 1, colormap->length, in ) != colormap->length || - fread( colormap->map[2], 1, colormap->length, in ) != + fread( colormap->map[2], 1, colormap->length, in ) != colormap->length ) { free( colormap->map[0] ); @@ -409,6 +413,8 @@ pr_load_colormap( in, hP, colormap ) return 0; } + + struct pixrect* pr_load_image( in, hP, colormap ) FILE* in; @@ -502,3 +508,6 @@ pr_load_image( in, hP, colormap ) return p; } + + + |