diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-30 00:48:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-30 00:48:45 +0000 |
commit | b9de71c5c28693a07c683969daba116ba8277621 (patch) | |
tree | 76dd9198edbbef58fd065a73522dce7a8cefc367 /converter/other/fiasco/fiasco.h | |
parent | 31b7d917b2c1dca2511220c98b0a87d3dce81ac0 (diff) | |
download | netpbm-mirror-b9de71c5c28693a07c683969daba116ba8277621.tar.gz netpbm-mirror-b9de71c5c28693a07c683969daba116ba8277621.tar.xz netpbm-mirror-b9de71c5c28693a07c683969daba116ba8277621.zip |
fix bug: doesn't work with Standard Input
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1080 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/fiasco/fiasco.h')
-rw-r--r-- | converter/other/fiasco/fiasco.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/converter/other/fiasco/fiasco.h b/converter/other/fiasco/fiasco.h index 235b1279..59367bb8 100644 --- a/converter/other/fiasco/fiasco.h +++ b/converter/other/fiasco/fiasco.h @@ -28,6 +28,8 @@ * $State: Exp $ */ +#include "pnm.h" + #undef __BEGIN_DECLS #undef __END_DECLS #ifdef __cplusplus @@ -260,8 +262,17 @@ fiasco_decoder_get_comment (fiasco_decoder_t *decoder); image functions ****************************************************************************/ -/* Read FIASCO image (raw ppm or pgm format) */ -fiasco_image_t * fiasco_image_new (const char *filename); +/* Create FIASCO image (from PNM image file) */ +fiasco_image_t * +fiasco_image_new_file(const char * const filename); + +/* Create FIASCO image (from PNM image stream) */ +fiasco_image_t * +fiasco_image_new_stream(FILE * const ifP, + unsigned int const width, + unsigned int const height, + xelval const maxval, + int const format); /* Discard FIASCO image */ void fiasco_image_delete (fiasco_image_t *image); |