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 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: dfufp2i.h 5444 2010-08-25 16:40:05Z byrn $ */
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  HDFFCLIBAPI 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  HDFFCLIBAPI 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
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);
82 
83 #if defined c_plusplus || defined __cplusplus
84 }
85 #endif /* c_plusplus || __cplusplus */
86 
87 #endif /* DFUFP2IM_H */
HDFFCLIBAPI int generate_scale(int32 dim, float32 *scale)
intn ct_method
Definition: dfufp2i.h:29
float32 min
Definition: dfufp2i.h:31
Definition: dfufp2i.h:39
uint8 * palette
Definition: dfufp2i.h:46
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd _fcd outfile
float32 * hscale
Definition: dfufp2i.h:32
intn compress
Definition: dfufp2i.h:43
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)
int32 vdim
Definition: dfufp2i.h:25
intn is_hscale
Definition: dfufp2i.h:28
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd _fcd int int32 int32 * vres
Definition: dfufp2i.h:22
HDFFCLIBAPI int32 float32 * max
#define HDFFCLIBAPI
Definition: H4api_adpt.h:196
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
int32 hres
Definition: dfufp2i.h:41
HDFFCLIBAPI intf void * scale
HDFFCLIBAPI void * data
intn is_pal
Definition: dfufp2i.h:26
float32 * vscale
Definition: dfufp2i.h:33
float32 max
Definition: dfufp2i.h:30
HDFFCLIBAPI int32 float32 float32 float32 float32 float32 _fcd palette
float32 * data
Definition: dfufp2i.h:34
intn is_vscale
Definition: dfufp2i.h:27
HDFFCLIBAPI void * min
uint8 * image
Definition: dfufp2i.h:45
int32 hdim
Definition: dfufp2i.h:24
int32 vres
Definition: dfufp2i.h:42
HDFFCLIBAPI int32 float32 float32 float32 float32 vscale[]

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