MISR Toolkit  1.5.1
dfufp2i.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 #ifndef DFUFP2IM_H /* avoid re-inclusion */
17 #define DFUFP2IM_H
18 
19 #include "H4api_adpt.h"
20 
21 /* Input structure */
22 typedef struct
23  {
24  int32 hdim; /* horizontal dimension of input data */
25  int32 vdim; /* vertical dimension of input data */
26  intn is_pal; /* flag to tell whether there is a palette */
27  intn is_vscale; /* flag telling whether vertical scale included */
28  intn is_hscale; /* flag telling whether horizonatal scale included */
29  intn ct_method; /* color transform method: EXPAND or INTERP */
30  float32 max; /* max value of data */
31  float32 min; /* min value of the data */
32  float32 *hscale; /* horizontal scale */
33  float32 *vscale; /* vertical scale */
34  float32 *data; /* floating point data */
35  }
36 Input;
37 
38 /* Output structure */
39 typedef struct
40  {
41  int32 hres; /* horizontal resolution of image */
42  int32 vres; /* vertical resolution of image */
43  intn compress; /* compression scheme */
44  char outfile[32]; /* output file name */
45  uint8 *image; /* Image */
46  uint8 *palette; /* Palette */
47  }
48 Output;
49 
50 /*----------------------------------------------------------------------------*/
51 /* Function Prototypes */
52 
53 #if defined c_plusplus || defined __cplusplus
54 extern "C"
55 {
56 #endif /* c_plusplus || __cplusplus */
57 
58 /* prototypes for dfufp2im.c */
59 
60 #ifdef OLD_WAY
61  HDFLIBAPI int duif2i_(int32 *hdim, int32 *vdim, float32 *max, float32 *min,
62  float32 hscale[], float32 vscale[], float32 data[],
63  _fcd palette, _fcd outfile, int *ct_method, int32 *hres,
64  int32 *vres, int *compress, int *lenfn);
65  HDFLIBAPI int DFUfptoimage(int32 hdim, int32 vdim, float32 max, float32 min,
66  float32 *hscale, float32 *vscale, float32 *data,
67  uint8 *palette, char *outfile, int ct_method,
68  int32 hres, int32 vres, int compress);
69 #endif
70  HDFLIBAPI int process
71  (Input * in, Output * out);
73  (int32 dim, float32 *scale);
75  (Input * in, Output * out);
77  (Input * in, Output * out);
79  (float32 *scale, int32 dim, int32 *offsets, int32 res);
81  (Input * in, Output * out);
83  (int32 hdim, int32 vdim, float32 max, float32 min,
84  float32 *hscale, float32 *vscale, float32 *data, uint8 *palette,
85  char *outfile, int ct_method, int32 hres, int32 vres, int compress);
86 
87 #if defined c_plusplus || defined __cplusplus
88 }
89 #endif /* c_plusplus || __cplusplus */
90 
91 #endif /* DFUFP2IM_H */
HDFFCLIBAPI int generate_scale(int32 dim, float32 *scale)
Definition: dfufp2i.h:39
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd _fcd outfile
HDFFCLIBAPI int convert_interp(Input *in, Output *out)
HDFFCLIBAPI int32 float32 float32 float32 hscale[]
HDFFCLIBAPI int pixrep_simple(Input *in, Output *out)
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd _fcd int * ct_method
char * _fcd
Definition: H5f90i.h:37
HDFFCLIBAPI int32 * vdim
HDFLIBAPI int DFUfptoimage(int32 hdim, int32 vdim, float32 max, float32 min, float32 *hscale, float32 *vscale, float32 *data, uint8 *palette, char *outfile, int ct_method, int32 hres, int32 vres, int compress)
HDFFCLIBAPI _fcd intf intf intf * compress
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd _fcd int int32 * hres
HDFFCLIBAPI int process(Input *in, Output *out)
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd _fcd int int32 int32 * vres
Definition: dfufp2i.h:22
HDFFCLIBAPI int32 float32 * max
HDFFCLIBAPI int pixrep_scaled(Input *in, Output *out)
HDFFCLIBAPI int compute_offsets(float32 *scale, int32 dim, int32 *offsets, int32 res)
HDFFCLIBAPI intf intf intf intf * lenfn
HDFFCLIBAPI intf void * scale
HDFFCLIBAPI void * data
#define HDFLIBAPI
Definition: H4api_adpt.h:195
HDFFCLIBAPI _fcd image
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd palette
HDFFCLIBAPI void * min
HDFFCLIBAPI int32 float32 float32 float32 float32 vscale[]

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