home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / VIEWERS / UNIXVIEW / XGIFTAR.Z / XGIFTAR / imagetypes.h < prev    next >
C/C++ Source or Header  |  1991-05-20  |  2KB  |  67 lines

  1. /* imagetypes.h:
  2.  *
  3.  * supported image types and the imagetypes array declaration.  when you
  4.  * add a new image type, only the makefile and this header need to be
  5.  * changed.
  6.  *
  7.  * jim frost 10.15.89
  8.  */
  9.  
  10. Image *facesLoad();
  11. Image *pbmLoad();
  12. Image *sunRasterLoad();
  13. Image *gifLoad();
  14. Image *rleLoad();
  15. Image *xwdLoad();
  16. Image *xbitmapLoad();
  17. Image *xpixmapLoad();
  18. Image *g3Load();
  19. Image *fbmLoad();
  20. Image *pcxLoad();
  21. Image *imgLoad();
  22. Image *macLoad();
  23. Image *cmuwmLoad();
  24. Image *mcidasLoad();
  25.  
  26. int facesIdent();
  27. int pbmIdent();
  28. int sunRasterIdent();
  29. int gifIdent();
  30. int rleIdent();
  31. int xwdIdent();
  32. int xbitmapIdent();
  33. int xpixmapIdent();
  34. int g3Ident();
  35. int fbmIdent();
  36. int pcxIdent();
  37. int imgIdent();
  38. int macIdent();
  39. int cmuwmIdent();
  40. int mcidasIdent();
  41.  
  42. /* some of these are order-dependent
  43.  */
  44.  
  45. struct {
  46.   int    (*identifier)(); /* print out image info if this kind of image */
  47.   Image *(*loader)();     /* load image if this kind of image */
  48.   char  *name;            /* name of this image format */
  49. } ImageTypes[] = {
  50.   fbmIdent,       fbmLoad,       "FBM Image",
  51.   sunRasterIdent, sunRasterLoad, "Sun Rasterfile",
  52.   cmuwmIdent,     cmuwmLoad,     "CMU WM Raster",
  53.   pbmIdent,       pbmLoad,       "Portable Bit Map (PBM, PGM, PPM)",
  54.   facesIdent,     facesLoad,     "Faces Project",
  55.   gifIdent,       gifLoad,       "GIF Image",
  56.   rleIdent,       rleLoad,       "Utah RLE Image",
  57.   xwdIdent,       xwdLoad,       "X Window Dump",
  58.   mcidasIdent,    mcidasLoad,    "McIDAS areafile",
  59.   g3Ident,        g3Load,        "G3 FAX Image",
  60.   pcxIdent,       pcxLoad,       "PC Paintbrush Image",
  61.   imgIdent,       imgLoad,       "GEM Bit Image",
  62.   macIdent,       macLoad,       "MacPaint Image",
  63.   xpixmapIdent,   xpixmapLoad,   "X Pixmap",
  64.   xbitmapIdent,   xbitmapLoad,   "X Bitmap",
  65.   NULL,           NULL,          NULL
  66. };
  67.