home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / plotting / imagetoo / imagetl1.lha / Imagetool / HDF / dfgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-20  |  3.6 KB  |  90 lines

  1. /*****************************************************************************
  2. *              NCSA HDF version 3.10
  3. *                July 1, 1990
  4. *
  5. * NCSA HDF Version 3.10 source code and documentation are in the public
  6. * domain.  Specifically, we give to the public domain all rights for future
  7. * licensing of the source code, all resale rights, and all publishing rights.
  8. * We ask, but do not require, that the following message be included in all
  9. * derived works:
  10. * Portions developed at the National Center for Supercomputing Applications at
  11. * the University of Illinois at Urbana-Champaign.
  12. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  13. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  14. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  15. *****************************************************************************/
  16.  
  17. /*
  18. $Header: /pita/work/HDF/dev/RCS/src/dfgr.h,v 3.0 90/02/02 20:34:28 clow beta $
  19.  
  20. $Log:    dfgr.h,v $
  21.  * Revision 3.0  90/02/02  20:34:28  clow
  22.  * *** empty log message ***
  23.  * 
  24. */
  25. /*****************************************************************************
  26. *              NCSA HDF version 3.00
  27. *                December, 1989
  28. *
  29. * NCSA HDF Version 3.00 source code and documentation are in the public
  30. * domain.  Specifically, we give to the public domain all rights for future
  31. * licensing of the source code, all resale rights, and all publishing rights.
  32. * We ask, but do not require, that the following message be included in all
  33. * derived works:
  34. * Portions developed at the National Center for Supercomputing Applications at
  35. * the University of Illinois at Urbana-Champaign.
  36. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  37. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  38. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  39. *****************************************************************************/
  40.  
  41. /*-----------------------------------------------------------------------------
  42.  * File:    dfgr.h
  43.  * Purpose: header file for the Raster Image set
  44.  * Invokes: df.h
  45.  * Contents: 
  46.  *  Structure definitions: DFGRdr, DFGRrig
  47.  * Remarks: This is included with user programs which use general raster
  48.  *---------------------------------------------------------------------------*/
  49.  
  50.  
  51. #ifndef DFGR                        /* avoid re-inclusion */
  52. #define DFGR
  53.  
  54. #include "df.h"
  55.  
  56. /* description record: used to describe image data, palette data etc. */
  57. typedef struct {
  58.     int32 xdim, ydim;               /* dimensions of data */
  59.     DFdi nt;                        /* number type of data */
  60.     int16 ncomponents, interlace;   /* data ordering: chunky / planar etc */
  61.     DFdi compr;                     /* compression */
  62.         /* ### Note: compression is currently uniquely described with a tag.
  63.             No data is attached to this tag/ref.  But this capability is
  64.             provided for future expansion, when this tag/ref might point to
  65.             some data needed for decompression, such as the actual encodings */
  66. } DFGRdr;
  67.  
  68. /* structure to hold RIG info */
  69. typedef struct {
  70.     DFdi data[3];                   /* image/lut/mattechannel */
  71.     DFGRdr datadesc[3];             /* description of image/lut/mattechannel */
  72.     int32 xpos, ypos;               /* X-Y position of image on screen */
  73.     float aspectratio;              /* ratio of pixel height to width */
  74.     float ccngamma,                 /* color correction parameters */
  75.         ccnred[3], ccngrren[3], ccnblue[3], ccnwhite[3];
  76.     char *cf;                       /* color format */
  77. } DFGRrig;
  78.  
  79. #endif /*DFGR*/
  80.