earlybrowserreborn - Rev 1

Subversion Repositories:
Rev:
/* imagetypes.h:
 *
 * supported image types and the imagetypes array declaration.  when you
 * add a new image type, only the makefile and this header need to be
 * changed.
 *
 * jim frost 10.15.89
 */


Image *facesLoad();
Image *pbmLoad();
Image *sunRasterLoad();
Image *gifLoad();
Image *rleLoad();
Image *xwdLoad();
Image *xbitmapLoad();
Image *xpixmapLoad();
Image *g3Load();
Image *fbmLoad();
Image *pcxLoad();
Image *imgLoad();
Image *macLoad();
Image *cmuwmLoad();
Image *mcidasLoad();

int facesIdent();
int pbmIdent();
int sunRasterIdent();
int gifIdent();
int rleIdent();
int xwdIdent();
int xbitmapIdent();
int xpixmapIdent();
int g3Ident();
int fbmIdent();
int pcxIdent();
int imgIdent();
int macIdent();
int cmuwmIdent();
int mcidasIdent();

/* some of these are order-dependent
 */


struct {
  int    (*identifier)(); /* print out image info if this kind of image */
  Image *(*loader)();     /* load image if this kind of image */
  char  *name;            /* name of this image format */
} ImageTypes[] = {
  fbmIdent,       fbmLoad,       "FBM Image",
  sunRasterIdent, sunRasterLoad, "Sun Rasterfile",
  cmuwmIdent,     cmuwmLoad,     "CMU WM Raster",
  pbmIdent,       pbmLoad,       "Portable Bit Map (PBM, PGM, PPM)",
  facesIdent,     facesLoad,     "Faces Project",
  gifIdent,       gifLoad,       "GIF Image",
  rleIdent,       rleLoad,       "Utah RLE Image",
  xwdIdent,       xwdLoad,       "X Window Dump",
  mcidasIdent,    mcidasLoad,    "McIDAS areafile",
  g3Ident,        g3Load,        "G3 FAX Image",
  pcxIdent,       pcxLoad,       "PC Paintbrush Image",
  imgIdent,       imgLoad,       "GEM Bit Image",
  macIdent,       macLoad,       "MacPaint Image",
  xpixmapIdent,   xpixmapLoad,   "X Pixmap",
  xbitmapIdent,   xbitmapLoad,   "X Bitmap",
  NULL,           NULL,          NULL
};