libgeotiff
geo_simpletags.h
1 /**********************************************************************
2  *
3  * geo_simpletags.h
4  *
5  * Provides interface for a "simple tags io in memory" mechanism
6  * as an alternative to accessing a real tiff file using libtiff.
7  *
8  **********************************************************************/
9 
10 #ifndef __geo_simpletags_h_
11 #define __geo_simpletags_h_
12 
13 #include "geotiff.h"
14 #include "cpl_serv.h"
15 
16 #if defined(__cplusplus)
17 extern "C" {
18 #endif
19 
20 #define STT_SHORT 1
21 #define STT_DOUBLE 2
22 #define STT_ASCII 3
23 
24 typedef struct {
25  int tag;
26  int count;
27  int type;
28  void *data;
29 } ST_KEY;
30 
31 typedef struct {
32  int key_count;
33  ST_KEY *key_list;
34 } ST_TIFF;
35 
36 typedef void *STIFF;
37 
38 void CPL_DLL GTIFSetSimpleTagsMethods(TIFFMethod *method);
39 
40 int CPL_DLL ST_SetKey( ST_TIFF *, int tag, int count,
41  int st_type, void *data );
42 int CPL_DLL ST_GetKey( ST_TIFF *, int tag, int *count,
43  int *st_type, void **data_ptr );
44 
45 ST_TIFF CPL_DLL *ST_Create();
46 void CPL_DLL ST_Destroy( ST_TIFF * );
47 
48 int CPL_DLL ST_TagType( int tag );
49 
50 #if defined(__cplusplus)
51 }
52 #endif
53 
54 #endif /* __geo_simpletags_h_ */

Generated for libgeotiff by doxygen 1.8.3.1