EXIF library (libexif) Internals  0.6.24
exif-gps-ifd.c
Go to the documentation of this file.
1 
4 /*
5  * Copyright (c) 2020 Heiko Lewin <hlewin@gmx.de>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301 USA.
21  */
22 
23 #include <stddef.h>
24 #include "exif-gps-ifd.h"
25 
26 static const struct ExifGPSIfdTagInfo exif_gps_ifd_tags[] = {
27 
28  {EXIF_TAG_GPS_VERSION_ID, EXIF_FORMAT_BYTE, 4, 4, "\x02\x02\x00\x00"},
40  {EXIF_TAG_GPS_SPEED_REF, EXIF_FORMAT_ASCII, 2, 2, "K\x00"},
42  {EXIF_TAG_GPS_TRACK_REF, EXIF_FORMAT_ASCII, 2, 2, "T\x00"},
59 };
60 
62  size_t i;
63  for (i = 0; i < sizeof(exif_gps_ifd_tags) / sizeof(ExifGPSIfdTagInfo); ++i) {
64  if (tag==exif_gps_ifd_tags[i].tag)
65  return &exif_gps_ifd_tags[i];
66  }
67  return NULL;
68 }
69 
@ EXIF_FORMAT_RATIONAL
Definition: exif-format.h:37
@ EXIF_FORMAT_UNDEFINED
Definition: exif-format.h:39
@ EXIF_FORMAT_SHORT
Definition: exif-format.h:35
@ EXIF_FORMAT_ASCII
Definition: exif-format.h:34
@ EXIF_FORMAT_BYTE
Definition: exif-format.h:33
const ExifGPSIfdTagInfo * exif_get_gps_tag_info(ExifTag tag)
Definition: exif-gps-ifd.c:61
static const struct ExifGPSIfdTagInfo exif_gps_ifd_tags[]
Definition: exif-gps-ifd.c:26
Info about GPS tags.
#define EXIF_TAG_GPS_LONGITUDE
Definition: exif-tag.h:178
#define EXIF_TAG_GPS_DEST_LATITUDE
Definition: exif-tag.h:194
#define EXIF_TAG_GPS_PROCESSING_METHOD
Definition: exif-tag.h:201
ExifTag
EXIF tags.
Definition: exif-tag.h:34
#define EXIF_TAG_GPS_TRACK_REF
Definition: exif-tag.h:188
#define EXIF_TAG_GPS_DEST_DISTANCE_REF
Definition: exif-tag.h:199
#define EXIF_TAG_GPS_MAP_DATUM
Definition: exif-tag.h:192
#define EXIF_TAG_GPS_TIME_STAMP
Definition: exif-tag.h:181
#define EXIF_TAG_GPS_LONGITUDE_REF
Definition: exif-tag.h:177
#define EXIF_TAG_GPS_SPEED_REF
Definition: exif-tag.h:186
#define EXIF_TAG_GPS_VERSION_ID
Definition: exif-tag.h:174
#define EXIF_TAG_GPS_IMG_DIRECTION
Definition: exif-tag.h:191
#define EXIF_TAG_GPS_DEST_LONGITUDE
Definition: exif-tag.h:196
#define EXIF_TAG_GPS_DOP
Definition: exif-tag.h:185
#define EXIF_TAG_GPS_AREA_INFORMATION
Definition: exif-tag.h:202
#define EXIF_TAG_GPS_DATE_STAMP
Definition: exif-tag.h:203
#define EXIF_TAG_GPS_ALTITUDE
Definition: exif-tag.h:180
#define EXIF_TAG_GPS_DEST_BEARING
Definition: exif-tag.h:198
#define EXIF_TAG_GPS_DEST_BEARING_REF
Definition: exif-tag.h:197
#define EXIF_TAG_GPS_DIFFERENTIAL
Definition: exif-tag.h:204
#define EXIF_TAG_GPS_DEST_DISTANCE
Definition: exif-tag.h:200
#define EXIF_TAG_GPS_DEST_LATITUDE_REF
Definition: exif-tag.h:193
#define EXIF_TAG_GPS_LATITUDE_REF
Definition: exif-tag.h:175
#define EXIF_TAG_GPS_LATITUDE
Definition: exif-tag.h:176
#define EXIF_TAG_GPS_IMG_DIRECTION_REF
Definition: exif-tag.h:190
#define EXIF_TAG_GPS_TRACK
Definition: exif-tag.h:189
#define EXIF_TAG_GPS_MEASURE_MODE
Definition: exif-tag.h:184
#define EXIF_TAG_GPS_SPEED
Definition: exif-tag.h:187
#define EXIF_TAG_GPS_ALTITUDE_REF
Definition: exif-tag.h:179
#define EXIF_TAG_GPS_DEST_LONGITUDE_REF
Definition: exif-tag.h:195
#define EXIF_TAG_GPS_SATELLITES
Definition: exif-tag.h:182
#define EXIF_TAG_GPS_STATUS
Definition: exif-tag.h:183
MnoteAppleTag tag

libexif Generated by doxygen