From b9de71c5c28693a07c683969daba116ba8277621 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 30 Dec 2009 00:48:45 +0000 Subject: 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 --- converter/other/fiasco/fiasco.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'converter/other/fiasco/fiasco.h') 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); -- cgit 1.4.1