MISR Toolkit
1.5.1
win32
HDF-EOS5Includes
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 files COPYING and Copyright.html. COPYING can be found at the root *
9
* of the source code distribution tree; Copyright.html can be found at *
10
* http://hdfgroup.org/products/hdf4/doc/Copyright.html. If you do not have *
11
* access to either file, you may request a copy from help@hdfgroup.org. *
12
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13
14
/* $Id: dfgr.h 4932 2007-09-07 17:17:23Z bmribler $ */
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 */
DFGRdr::compr
DFdi compr
Definition:
dfgr.h:36
filename
char * filename
Definition:
cdjpeg.h:133
DFGRrig::cf
char * cf
Definition:
dfgr.h:47
DFGRIopen
int32 DFGRIopen(const char *filename, int acc_mode)
DFdi
Definition:
hdf.h:24
DFGRrig::ypos
int32 ypos
Definition:
dfgr.h:49
DFGRdr::ncomponents
intn ncomponents
Definition:
dfgr.h:31
DFGRdr::ydim
int32 ydim
Definition:
dfgr.h:34
DFGRrig::xpos
int32 xpos
Definition:
dfgr.h:48
DFGRdr::nt
DFdi nt
Definition:
dfgr.h:35
DFGRdr::xdim
int32 xdim
Definition:
dfgr.h:33
DFGRdr
Definition:
dfgr.h:29
DFGRdr::interlace
intn interlace
Definition:
dfgr.h:32
acc_mode
HDFFCLIBAPI intf * acc_mode
Definition:
hproto_fortran.h:577
data
HDFFCLIBAPI void * data
Definition:
hproto_fortran.h:277
DFGRrig::ccngamma
float32 ccngamma
Definition:
dfgr.h:51
DFGRrig
Definition:
dfgr.h:45
DFGRrig::aspectratio
float32 aspectratio
Definition:
dfgr.h:50
MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52