MISR Toolkit  1.5.1
dfgr.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF. The full HDF copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF/releases/. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /* $Id$ */
15 
16 /*-----------------------------------------------------------------------------
17  * File: dfgr.h
18  * Purpose: header file for the Raster Image set
19  * Invokes: df.h
20  * Contents:
21  * Structure definitions: DFGRdr, DFGRrig
22  * Remarks: This is included with user programs which use general raster
23  *---------------------------------------------------------------------------*/
24 
25 #ifndef DFGR_H /* avoid re-inclusion */
26 #define DFGR_H
27 
28 /* description record: used to describe image data, palette data etc. */
29 typedef struct
30  {
31  intn ncomponents; /* number of components */
32  intn interlace; /* data ordering: chunky / planar etc */
33  int32 xdim; /* X- dimension of data */
34  int32 ydim; /* Y- dimensionsof data */
35  DFdi nt; /* number type of data */
36  DFdi compr; /* compression */
37  /* ### Note: compression is currently uniquely described with a tag.
38  No data is attached to this tag/ref. But this capability is
39  provided for future expansion, when this tag/ref might point to
40  some data needed for decompression, such as the actual encodings */
41  }
42 DFGRdr;
43 
44 /* structure to hold RIG info */
45 typedef struct
46  {
47  char *cf; /* color format */
48  int32 xpos; /* X position of image on screen */
49  int32 ypos; /* Y position of image on screen */
50  float32 aspectratio; /* ratio of pixel height to width */
51  float32 ccngamma; /* gamma color correction parameter */
52  float32 ccnred[3]; /* red color correction parameter */
53  float32 ccngrren[3]; /* green color correction parameter */
54  float32 ccnblue[3]; /* blue color correction parameter */
55  float32 ccnwhite[3]; /* white color correction parameter */
56  DFdi data[3]; /* image/lut/mattechannel */
57  DFGRdr datadesc[3]; /* description of image/lut/mattechannel */
58  }
59 DFGRrig;
60 
61 #if defined c_plusplus || defined __cplusplus
62 extern "C"
63 {
64 #endif /* c_plusplus || __cplusplus */
65 
66 /* Library-developer functions */
67  extern int32 DFGRIopen
68  (const char *filename, int acc_mode);
69 
70 #if defined c_plusplus || defined __cplusplus
71 }
72 #endif /* c_plusplus || __cplusplus */
73 
74 #endif /* DFGR_H */
char * filename
Definition: cdjpeg.h:133
int32 DFGRIopen(const char *filename, int acc_mode)
Definition: hdf.h:24
HDFFCLIBAPI intf intf * interlace
HDFFCLIBAPI _fcd intf intf * nt
Definition: dfgr.h:29
HDFFCLIBAPI intf intf * ydim
HDFFCLIBAPI intf * xdim
HDFFCLIBAPI intf * acc_mode
HDFFCLIBAPI void * data
Definition: dfgr.h:45

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