home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / compstol / cmpsttl1.lha / CompositeTool / v1.1.dist / HDF / dfrig.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-08  |  2.4 KB  |  65 lines

  1. /*****************************************************************************
  2. *              NCSA HDF version 3.00
  3. *                December, 1989
  4. *
  5. * NCSA HDF Version 3.00 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.  * File:    dfrig.h
  19.  * Purpose: header file for the Raster Image set
  20.  * Invokes: df.h
  21.  * Contents: 
  22.  *  Structure definitions: DFRdr, DFRrig
  23.  * Remarks: This is included with user programs which use RIG
  24.  *---------------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef DFRIG            /* avoid re-inclusion */
  28. #define DFRIG
  29.  
  30. #include "df.h"
  31.  
  32. /* description record: used to describe image data, palette data etc. */
  33. typedef struct {
  34.     int32 xdim, ydim;        /* dimensions of data */
  35.     DFdi nt;            /* number type of data */
  36.     int16 ncomponents, interlace; /* data ordering: chunky / planar etc */
  37.     DFdi compr;            /* compression */
  38.     /* ### Note: compression is currently uniquely described with a tag.
  39.        No data is attached to this tag/ref.  But this capability is
  40.        provided for future expansion, when this tag/ref might point to
  41.        some data needed for decompression, such as the actual encodings */
  42. } DFRdr;
  43.  
  44. /* structure to hold RIG info */
  45. typedef struct {
  46.     DFdi image;            /* image */
  47.     DFRdr descimage;        /* image data description */
  48.     DFdi lut;            /* color look-up table (palette) */
  49.     DFRdr desclut;        /* look-up table description */
  50.     DFdi mattechannel;
  51.     DFRdr descmattechannel;
  52.     int32 xpos, ypos;        /* X-Y position of image on screen */
  53.     float aspectratio;        /* ratio of pixel height to width */
  54.     float ccngamma, ccnred[3], ccngrren[3], ccnblue[3], ccnwhite[3];
  55.                 /* color correction parameters */
  56.     char *cf;            /* color format */
  57. } DFRrig;
  58.  
  59. #endif /*DFRIG*/
  60.