Debian Codegraph @

converter/other/pm_tiff.h

raw
1 #ifndef PM_TIFF_H_INCLUDED
2 #define PM_TIFF_H_INCLUDED
3
4 typedef struct {
5 /*----------------------------------------------------------------------------
6 This is an association between a tag value name and the integer that
7 represents the tag value in the TIFF.
8
9 E.g. for an ORIENTATION tag, the value named "TOPLEFT" is represented
10 by the integer 1.
11 -----------------------------------------------------------------------------*/
12 const char * name;
13 unsigned long value;
14 } tagvalmap;
15
16 typedef struct tagDefinition {
17 /*----------------------------------------------------------------------------
18 This is the definition of a type of tag, e.g. ORIENTATION.
19 -----------------------------------------------------------------------------*/
20 const char * name;
21 /* The name by which our user knows the tag type, e.g.
22 "ORIENTATION"
23 */
24 unsigned int tagnum;
25 /* The integer by which libtiff knows the tag type, e.g.
26 TIFFTAG_ORIENTATION
27 */
28 void (* put)(TIFF *, unsigned int, const char *, const tagvalmap *);
29 const tagvalmap * choices;
30 /* List of the possible values for the tag, if it is one with
31 enumerated values. e.g. for ORIENTATION, it's TOPLEFT,
32 TOPRIGHT, etc.
33 */
34 } tagDefinition;
35
36
37
38 const tagDefinition *
39 tagDefFind(const char * const name);
40
41 #endif