~ubuntu-branches/ubuntu/edgy/gwenview/edgy

« back to all changes in this revision

Viewing changes to src/libgvexif/exif-data.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-12-06 17:59:19 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051206175919-8yv9nfmw0pws6p52
Tags: 1.3.1-0ubuntu1
* Sync with Debian
* Edit kde.mk for .pot generation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* exif-data.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., 51 Franklin Steet, Fifth Floor,
 
18
 * Boston, MA 02110-1301, USA.
 
19
 */
 
20
 
 
21
#ifndef __EXIF_DATA_H__
 
22
#define __EXIF_DATA_H__
 
23
 
 
24
#ifdef __cplusplus
 
25
extern "C" {
 
26
#endif /* __cplusplus */
 
27
 
 
28
#include <libgvexif/exif-tag.h>
 
29
#include <libgvexif/exif-byte-order.h>
 
30
#include <libgvexif/exif-ifd.h>
 
31
 
 
32
typedef struct _ExifData        ExifData;
 
33
typedef struct _ExifDataPrivate ExifDataPrivate;
 
34
 
 
35
#include <libgvexif/exif-content.h>
 
36
 
 
37
struct _ExifData
 
38
{
 
39
        ExifContent *ifd[EXIF_IFD_COUNT];
 
40
 
 
41
        unsigned char *data;
 
42
        unsigned int size;
 
43
 
 
44
        ExifDataPrivate *priv;
 
45
};
 
46
 
 
47
ExifData *exif_data_new   (void);
 
48
ExifData *exif_data_new_from_file (const char *path);
 
49
ExifData *exif_data_new_from_data (const unsigned char *data,
 
50
                                   unsigned int size);
 
51
 
 
52
void      exif_data_load_data (ExifData *data, const unsigned char *d, 
 
53
                               unsigned int size);
 
54
void      exif_data_save_data (ExifData *data, unsigned char **d,
 
55
                               unsigned int *size);
 
56
 
 
57
void      exif_data_ref   (ExifData *data);
 
58
void      exif_data_unref (ExifData *data);
 
59
void      exif_data_free  (ExifData *data);
 
60
 
 
61
ExifByteOrder exif_data_get_byte_order  (ExifData *data);
 
62
void          exif_data_set_byte_order  (ExifData *data, ExifByteOrder order);
 
63
 
 
64
typedef void (* ExifDataForeachContentFunc) (ExifContent *, void *user_data);
 
65
void          exif_data_foreach_content (ExifData *data,
 
66
                                         ExifDataForeachContentFunc func,
 
67
                                         void *user_data);
 
68
 
 
69
void      exif_data_dump  (ExifData *data);
 
70
 
 
71
#ifdef __cplusplus
 
72
}
 
73
#endif /* __cplusplus */
 
74
 
 
75
#endif /* __EXIF_DATA_H__ */