exif-ifd.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <config.h>
00022
00023 #include <libexif/exif-ifd.h>
00024
00025 #include <stdlib.h>
00026
00027 static struct {
00028 ExifIfd ifd;
00029 const char *name;
00030 } ExifIfdTable[] = {
00031 {EXIF_IFD_0, "0"},
00032 {EXIF_IFD_1, "1"},
00033 {EXIF_IFD_EXIF, "EXIF"},
00034 {EXIF_IFD_GPS, "GPS"},
00035 {EXIF_IFD_INTEROPERABILITY, "Interoperability"},
00036 {0, NULL}
00037 };
00038
00039 const char *
00040 exif_ifd_get_name (ExifIfd ifd)
00041 {
00042 unsigned int i;
00043
00044 for (i = 0; ExifIfdTable[i].name; i++)
00045 if (ExifIfdTable[i].ifd == ifd)
00046 break;
00047
00048 return (ExifIfdTable[i].name);
00049 }