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
#ifndef __EXIF_UTILS_H__
22
#define __EXIF_UTILS_H__
26
#endif /* __cplusplus */
28
#include <libgvexif/exif-byte-order.h>
30
typedef char ExifByte; /* 1 byte */
31
typedef char * ExifAscii;
32
typedef unsigned short ExifShort; /* 2 bytes */
33
typedef unsigned long ExifLong; /* 4 bytes */
34
typedef struct {ExifLong numerator; ExifLong denominator;} ExifRational;
35
typedef char ExifUndefined; /* 1 byte */
36
typedef signed long ExifSLong; /* 4 bytes */
37
typedef struct {ExifSLong numerator; ExifSLong denominator;} ExifSRational;
40
ExifShort exif_get_short (const unsigned char *b, ExifByteOrder order);
41
ExifLong exif_get_long (const unsigned char *b, ExifByteOrder order);
42
ExifSLong exif_get_slong (const unsigned char *b, ExifByteOrder order);
43
ExifRational exif_get_rational (const unsigned char *b, ExifByteOrder order);
44
ExifSRational exif_get_srational (const unsigned char *b, ExifByteOrder order);
46
void exif_set_short (unsigned char *b, ExifByteOrder order,
48
void exif_set_long (unsigned char *b, ExifByteOrder order,
50
void exif_set_slong (unsigned char *b, ExifByteOrder order,
52
void exif_set_rational (unsigned char *b, ExifByteOrder order,
54
void exif_set_srational (unsigned char *b, ExifByteOrder order,
59
#endif /* __cplusplus */
61
#endif /* __EXIF_UTILS_H__ */