summaryrefslogtreecommitdiff
path: root/src/exif_cfg.h
blob: 390c1adf072a7b2ef7f76d6f408b0a2eb1ca4515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* exif_cfg.h

Copyright (C) 2012      Dennis Real.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies of the Software and its documentation and acknowledgment shall be
given in the documentation and software packages that this Software was
used.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

*/

#ifndef EXIF_CFG_H
#define EXIF_CFG_H

#include <libexif/exif-data.h>

typedef struct
{
  ExifIfd ifd; /* section */
  ExifTag tag;  /* tag */
} t_EXIF_INFO;


/* show these standard tags. section must be given first, than the tag itself */
const t_EXIF_INFO Exif_tag_list [] =
{
  {EXIF_IFD_0, EXIF_TAG_MAKE},
  {EXIF_IFD_0, EXIF_TAG_MODEL},
  {EXIF_IFD_0, EXIF_TAG_IMAGE_DESCRIPTION},
  {EXIF_IFD_EXIF, EXIF_TAG_DATE_TIME_ORIGINAL},
  {EXIF_IFD_EXIF, EXIF_TAG_EXPOSURE_TIME},
  {EXIF_IFD_EXIF, EXIF_TAG_SHUTTER_SPEED_VALUE},
  {EXIF_IFD_EXIF, EXIF_TAG_FNUMBER},
  {EXIF_IFD_EXIF, EXIF_TAG_APERTURE_VALUE},
  {EXIF_IFD_EXIF, EXIF_TAG_EXPOSURE_BIAS_VALUE},
  {EXIF_IFD_EXIF, EXIF_TAG_ISO_SPEED_RATINGS},
  {EXIF_IFD_EXIF, EXIF_TAG_FOCAL_LENGTH},
  {EXIF_IFD_EXIF, EXIF_TAG_FOCAL_LENGTH_IN_35MM_FILM},
  {EXIF_IFD_EXIF, EXIF_TAG_EXPOSURE_MODE},
  {EXIF_IFD_EXIF, EXIF_TAG_EXPOSURE_PROGRAM},
  {EXIF_IFD_EXIF, EXIF_TAG_SCENE_CAPTURE_TYPE},
  {EXIF_IFD_EXIF, EXIF_TAG_FLASH},
  
  {EXIF_IFD_COUNT, 0}	/* end marker */
};


#define EXIF_NIKON_MAKERNOTE_END 0  /* end marker: if 0 used as a tag we must find something else */

/* show these nikon makernote tags */
const unsigned int Exif_makernote_nikon_tag_list [] =
{
  8,   /* Flash Setting */
  9,   /* Flash Mode */
  24,  /* Flash exposure bracket value */
  135, /* Flash used */
  168, /* Flash info: control mode */
  
  132, /* Lens */
  171, /* Digital Vari-Program */
  34,  /* ActiveD-Lighting */
  183, /* AFInfo2 */

  EXIF_NIKON_MAKERNOTE_END   /* end marker */
};

#endif