3
* Copyright � 2001 Lutz M�ller <lutz@users.sourceforge.net>
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 of the License, or (at your option) any later version.
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.
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., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
21
#include "exif-format.h"
30
} ExifFormatTable[] = {
31
{EXIF_FORMAT_BYTE, "Byte", 1},
32
{EXIF_FORMAT_ASCII, "Ascii", 1},
33
{EXIF_FORMAT_SHORT, "Short", 2},
34
{EXIF_FORMAT_LONG, "Long", 4},
35
{EXIF_FORMAT_RATIONAL, "Rational", 8},
36
{EXIF_FORMAT_SLONG, "SLong", 4},
37
{EXIF_FORMAT_SRATIONAL, "SRational", 8},
38
{EXIF_FORMAT_UNDEFINED, N_("Undefined"), 1},
43
exif_format_get_name (ExifFormat format)
48
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
49
bindtextdomain (GETTEXT_PACKAGE, LIBEXIF_LOCALEDIR);
52
for (i = 0; ExifFormatTable[i].name; i++)
53
if (ExifFormatTable[i].format == format)
54
return (_(ExifFormatTable[i].name));
59
exif_format_get_size (ExifFormat format)
63
for (i = 0; ExifFormatTable[i].size; i++)
64
if (ExifFormatTable[i].format == format)
65
return (ExifFormatTable[i].size);