MISR Toolkit  1.5.1
dfrig.h
Go to the documentation of this file.
1 
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3  * Copyright by The HDF Group. *
4  * Copyright by the Board of Trustees of the University of Illinois. *
5  * All rights reserved. *
6  * *
7  * This file is part of HDF. The full HDF copyright notice, including *
8  * terms governing use, modification, and redistribution, is contained in *
9  * the files COPYING and Copyright.html. COPYING can be found at the root *
10  * of the source code distribution tree; Copyright.html can be found at *
11  * http://hdfgroup.org/products/hdf4/doc/Copyright.html. If you do not have *
12  * access to either file, you may request a copy from help@hdfgroup.org. *
13  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
14 
15 /* $Id: dfrig.h 4932 2007-09-07 17:17:23Z bmribler $ */
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 #ifndef DFRIG /* avoid re-inclusion */
27 #define DFRIG
28 
29 /* description record: used to describe image data, palette data etc. */
30 typedef struct
31  {
32  int16 ncomponents; /* Number of components */
33  int16 interlace; /* data ordering: chunky / planar etc */
34  int32 xdim; /* X-dimension of data */
35  int32 ydim; /* Y-dimensionsof data */
36  DFdi nt; /* number type of data */
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  }
43 DFRdr;
44 
45 /* structure to hold RIG info */
46 typedef struct
47  {
48  char *cf; /* color format */
49  int32 xpos; /* X position of image on screen */
50  int32 ypos; /* Y position of image on screen */
51  float32 aspectratio; /* ratio of pixel height to width */
52  float32 ccngamma; /* gamma color correction parameters */
53  float32 ccnred[3]; /* red color correction parameters */
54  float32 ccngrren[3]; /* green color correction parameters */
55  float32 ccnblue[3]; /* blue color correction parameters */
56  float32 ccnwhite[3]; /* white color correction parameters */
57  DFdi image; /* image */
58  DFRdr descimage; /* image data description */
59  DFdi lut; /* color look-up table (palette) */
60  DFRdr desclut; /* look-up table description */
61  DFdi mattechannel; /* matte? */
62  DFRdr descmattechannel; /* Description of matte? */
63  }
64 DFRrig;
65 
66 /* dimensions of raster-8 image */
67 typedef struct R8dim
68  {
69  uint16 xd;
70  uint16 yd;
71  }
72 R8dim;
73 
74 #endif /*DFRIG */
int32 ydim
Definition: dfrig.h:35
DFRdr descimage
Definition: dfrig.h:58
DFRdr descmattechannel
Definition: dfrig.h:62
Definition: dfrig.h:46
int32 xdim
Definition: dfrig.h:34
Definition: hdf.h:24
float32 aspectratio
Definition: dfrig.h:51
char * cf
Definition: dfrig.h:48
float32 ccngamma
Definition: dfrig.h:52
DFdi lut
Definition: dfrig.h:59
DFdi mattechannel
Definition: dfrig.h:61
uint16 yd
Definition: dfrig.h:70
struct R8dim R8dim
int16 ncomponents
Definition: dfrig.h:32
DFdi image
Definition: dfrig.h:57
int32 xpos
Definition: dfrig.h:49
int32 ypos
Definition: dfrig.h:50
DFdi compr
Definition: dfrig.h:37
int16 interlace
Definition: dfrig.h:33
uint16 xd
Definition: dfrig.h:69
Definition: dfrig.h:30
DFRdr desclut
Definition: dfrig.h:60
Definition: dfrig.h:67
DFdi nt
Definition: dfrig.h:36

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52