~ubuntu-branches/ubuntu/intrepid/gwenview/intrepid

« back to all changes in this revision

Viewing changes to libgvexif/exif-utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Christopher Martin
  • Date: 2004-06-13 18:55:04 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040613185504-net8ekxoswwvyxs9
Tags: 1.1.3-1
New upstream release. Translations now included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* exif-utils.h
 
2
 *
 
3
 * Copyright � 2001 Lutz M�ller <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 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., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef __EXIF_UTILS_H__
 
22
#define __EXIF_UTILS_H__
 
23
 
 
24
#ifdef __cplusplus
 
25
extern "C" {
 
26
#endif /* __cplusplus */
 
27
 
 
28
#include <libgvexif/exif-byte-order.h>
 
29
 
 
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;
 
38
 
 
39
 
 
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);
 
45
 
 
46
void exif_set_short     (unsigned char *b, ExifByteOrder order,
 
47
                         ExifShort value);
 
48
void exif_set_long      (unsigned char *b, ExifByteOrder order,
 
49
                         ExifLong value);
 
50
void exif_set_slong     (unsigned char *b, ExifByteOrder order,
 
51
                         ExifSLong value);
 
52
void exif_set_rational  (unsigned char *b, ExifByteOrder order,
 
53
                         ExifRational value);
 
54
void exif_set_srational (unsigned char *b, ExifByteOrder order,
 
55
                         ExifSRational value);
 
56
 
 
57
#ifdef __cplusplus
 
58
}
 
59
#endif /* __cplusplus */
 
60
 
 
61
#endif /* __EXIF_UTILS_H__ */