/* ***********************************************************
 * *                                                         *
 * *  Fileformats private Library Prototypes and Structures  *
 * *                                                         *
 * ***********************************************************
 * File: libs/fileformats/fileformats.h
 *
 *                       COPYRIGHT (c) 2002  BY 
 *          SIGMET INCORPORATED, WESTFORD MASSACHUSETTS, U.S.A.  
 * 
 * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
 * ONLY  IN  ACCORDANCE WITH  THE  TERMS  OF  SUCH  LICENSE  AND WITH THE
 * INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE  OR  ANY OTHER
 * COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
 * OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
 * TRANSFERED. 
 */ 


void ColormapFromRgb                     /* File: ColormapFromRgb.c */
(struct color_def Colormap_a[256],
 const UINT1 iRed_a[256],
 const UINT1 iGreen_a[256],
 const UINT1 iBlue_a[256]);


UINT1 *Conv8to24
( UINT1 *pic8, int   w, int   h,
  const UINT1 *rmap, const UINT1 *gmap, const UINT1 *bmap);

MESSAGE WriteBMP(
   FILE  *fp,
   UINT1 *image_ptr_a,
   SINT4 iwidth_a,
   SINT4 iheight_a,
   const struct color_def Colormap_a[256],
   int   numcols,
   int   colorstyle); /* F_REDUCED */

MESSAGE WriteJPEG(
   FILE  *fp,
   UINT1 *image_ptr_a,
   SINT4 iwidth_a,
   SINT4 iheight_a,
   const struct color_def Colormap_a[256],
   const char *sdatetime,
   UINT4 iquality_percent_a);

MESSAGE WriteTIFF                         /* File: vtv_to_tiff.c */
(FILE  *fp,
 UINT1 *image_ptr_a,
 SINT4 iwidth_a,
 SINT4 iheight_a,
 const struct color_def Colormap_a[256],
 const char *fname,
 const char *sdescription,
 const char *sdatetime,
 int comp_a);

void WritePS(
 FILE *fp,
 const UINT1 *inpix,
 int image_width_pix,
 int image_height_pix,
 const struct color_def Colormap_a[256],
 const char *filename,
 int paper_orientation,
 int paper_size_idx, 
 int image_color,
 int image_pos, 
 int image_size);

FILE *printer_pipe_fopen(volatile const char *quename, UINT2 lraw_output);

