home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / hdf / unix / hdf3_2r2 / src / dfrig.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-29  |  3.3 KB  |  81 lines

  1. /***************************************************************************
  2. *
  3. *
  4. *                         NCSA HDF version 3.2r2
  5. *                            October 30, 1992
  6. *
  7. * NCSA HDF Version 3.2 source code and documentation are in the public
  8. * domain.  Specifically, we give to the public domain all rights for future
  9. * licensing of the source code, all resale rights, and all publishing rights.
  10. *
  11. * We ask, but do not require, that the following message be included in all
  12. * derived works:
  13. *
  14. * Portions developed at the National Center for Supercomputing Applications at
  15. * the University of Illinois at Urbana-Champaign, in collaboration with the
  16. * Information Technology Institute of Singapore.
  17. *
  18. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  19. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  20. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  21. *
  22. ****************************************************************************
  23. */
  24.  
  25. /*
  26. $Header: /hdf/hdf/v3.2r2/src/RCS/dfrig.h,v 1.3 1992/10/23 00:14:11 koziol beta koziol $
  27.  
  28. $Log: dfrig.h,v $
  29.  * Revision 1.3  1992/10/23  00:14:11  koziol
  30.  * Changed all DFIstr*() and DFImem*() calls to HDstr*() and HDmem*() calls
  31.  * #ifdef'd out the macros Jason defined for Hopen, Hclose, etc. for Vsets
  32.  * Replaced Vset VFREESPACE and VGETSPACE calls with actual calls to HDfreespace
  33.  * and HDgetspace
  34.  * Added a MS-Windows lower lower for file I/O (which may not be completely working
  35.  *
  36.  * Revision 1.1  1992/08/25  21:40:44  koziol
  37.  * Initial revision
  38.  *
  39. */
  40. /*-----------------------------------------------------------------------------
  41.  * File:    dfrig.h
  42.  * Purpose: header file for the Raster Image set
  43.  * Invokes: df.h
  44.  * Contents:
  45.  *  Structure definitions: DFRdr, DFRrig
  46.  * Remarks: This is included with user programs which use RIG
  47.  *---------------------------------------------------------------------------*/
  48.  
  49.  
  50. #ifndef DFRIG                  /* avoid re-inclusion */
  51. #define DFRIG
  52.  
  53. /* description record: used to describe image data, palette data etc. */
  54. typedef struct {
  55.     int32 xdim, ydim;          /* dimensions of data */
  56.     DFdi nt;                   /* number type of data */
  57.     int16 ncomponents, interlace; /* data ordering: chunky / planar etc */
  58.     DFdi compr;                        /* compression */
  59.     /* ### Note: compression is currently uniquely described with a tag.
  60.        No data is attached to this tag/ref.  But this capability is
  61.        provided for future expansion, when this tag/ref might point to
  62.        some data needed for decompression, such as the actual encodings */
  63. } DFRdr;
  64.  
  65. /* structure to hold RIG info */
  66. typedef struct {
  67.     DFdi image;                        /* image */
  68.     DFRdr descimage;           /* image data description */
  69.     DFdi lut;                  /* color look-up table (palette) */
  70.     DFRdr desclut;             /* look-up table description */
  71.     DFdi mattechannel;
  72.     DFRdr descmattechannel;
  73.     int32 xpos, ypos;          /* X-Y position of image on screen */
  74.     float32 aspectratio;         /* ratio of pixel height to width */
  75.     float32 ccngamma, ccnred[3], ccngrren[3], ccnblue[3], ccnwhite[3];
  76.                                /* color correction parameters */
  77.     char *cf;                  /* color format */
  78. } DFRrig;
  79.  
  80. #endif /*DFRIG*/
  81.