EXIF library (libexif) Internals
0.6.24
exif-ifd.c
Go to the documentation of this file.
1
/* exif-ifd.c
2
*
3
* Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301 USA.
19
*/
20
21
#include <config.h>
22
23
#include <
libexif/exif-ifd.h
>
24
25
#include <stdlib.h>
26
27
static
const
struct
{
28
ExifIfd
ifd
;
29
const
char
*
name
;
30
}
ExifIfdTable
[] = {
31
{
EXIF_IFD_0
,
"0"
},
32
{
EXIF_IFD_1
,
"1"
},
33
{
EXIF_IFD_EXIF
,
"EXIF"
},
34
{
EXIF_IFD_GPS
,
"GPS"
},
35
{
EXIF_IFD_INTEROPERABILITY
,
"Interoperability"
},
36
{0, NULL}
37
};
38
39
const
char
*
40
exif_ifd_get_name
(
ExifIfd
ifd
)
41
{
42
unsigned
int
i;
43
44
for
(i = 0;
ExifIfdTable
[i].name; i++)
45
if
(
ExifIfdTable
[i].
ifd
==
ifd
)
46
break
;
47
48
return
(
ExifIfdTable
[i].
name
);
49
}
ExifIfdTable
static const struct @8 ExifIfdTable[]
ifd
ExifIfd ifd
Definition:
exif-ifd.c:28
exif_ifd_get_name
const char * exif_ifd_get_name(ExifIfd ifd)
Return a textual name of the given IFD.
Definition:
exif-ifd.c:40
name
const char * name
Definition:
exif-ifd.c:29
exif-ifd.h
ExifIfd
ExifIfd
Possible EXIF Image File Directories.
Definition:
exif-ifd.h:29
EXIF_IFD_GPS
@ EXIF_IFD_GPS
Definition:
exif-ifd.h:33
EXIF_IFD_INTEROPERABILITY
@ EXIF_IFD_INTEROPERABILITY
Definition:
exif-ifd.h:34
EXIF_IFD_EXIF
@ EXIF_IFD_EXIF
Definition:
exif-ifd.h:32
EXIF_IFD_1
@ EXIF_IFD_1
Definition:
exif-ifd.h:31
EXIF_IFD_0
@ EXIF_IFD_0
Definition:
exif-ifd.h:30
libexif
Generated by