annotate src/exif.h @ 1858:bba0f67aae5d

more compilation fixes
author Vladimir Nadvornik <nadvornik@suse.cz>
date Sun, 10 Apr 2011 21:11:50 +0200
parents 8941f18e9cac
children 26dfd7a4d130
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
1 /*
541
3d5c5376a39f Replace GQView by Geeqie.
Laurent Monin <geeqie@norz.org>
parents: 475
diff changeset
2 * Geeqie
3d5c5376a39f Replace GQView by Geeqie.
Laurent Monin <geeqie@norz.org>
parents: 475
diff changeset
3 * (C) 2006 John Ellis
1802
359d910c7ce0 added 2010 to copyright text
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1483
diff changeset
4 * Copyright (C) 2008 - 2010 The Geeqie Team
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
5 *
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
6 * Authors:
442
f698b737556b Big whitespaces cleanup:
Laurent Monin <geeqie@norz.org>
parents: 188
diff changeset
7 * Support for Exif file format, originally written by Eric Swalens.
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
8 * Modified by Quy Tonthat
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
9 * Reimplemented with generic data storage by John Ellis
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
10 *
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
11
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
12 This program is free software; you can redistribute it and/or modify
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
13 it under the terms of the GNU General Public License as published by
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
14 the Free Software Foundation; either version 2 of the License, or
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
15 (at your option) any later version.
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
16
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
17 This program is distributed in the hope that it will be useful,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
20 GNU General Public License for more details.
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
21
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
22 You should have received a copy of the GNU General Public License
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
23 along with this program; if not, write to the Free Software
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
24 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
25 */
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
26
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
27 #ifndef __EXIF_H
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
28 #define __EXIF_H
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
29
1805
8941f18e9cac Little macro correction
Klaus Ethgen <Klaus@Ethgen.de>
parents: 1802
diff changeset
30 #define EXIF_FORMATTED() "formatted."
1189
2f89804152d0 Do not hardcode exif formatted prefix.
Laurent Monin <geeqie@norz.org>
parents: 1069
diff changeset
31 #define EXIF_FORMATTED_LEN (sizeof(EXIF_FORMATTED()) - 1)
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
32
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
33 /*
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
34 *-----------------------------------------------------------------------------
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
35 * Tag formats
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
36 *-----------------------------------------------------------------------------
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
37 */
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
38
54
0c742dfb2e30 Thu Jun 9 22:23:18 2005 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents: 51
diff changeset
39 #define EXIF_FORMAT_COUNT 13
0c742dfb2e30 Thu Jun 9 22:23:18 2005 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents: 51
diff changeset
40
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
41 typedef enum {
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
42 EXIF_FORMAT_UNKNOWN = 0,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
43 EXIF_FORMAT_BYTE_UNSIGNED = 1,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
44 EXIF_FORMAT_STRING = 2,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
45 EXIF_FORMAT_SHORT_UNSIGNED = 3,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
46 EXIF_FORMAT_LONG_UNSIGNED = 4,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
47 EXIF_FORMAT_RATIONAL_UNSIGNED = 5,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
48 EXIF_FORMAT_BYTE = 6,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
49 EXIF_FORMAT_UNDEFINED = 7,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
50 EXIF_FORMAT_SHORT = 8,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
51 EXIF_FORMAT_LONG = 9,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
52 EXIF_FORMAT_RATIONAL = 10,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
53 EXIF_FORMAT_FLOAT = 11,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
54 EXIF_FORMAT_DOUBLE = 12
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
55 } ExifFormatType;
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
56
178
2e1758154286 first exiv2 support that does not crash immediately
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 177
diff changeset
57
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
58 /*
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
59 *-----------------------------------------------------------------------------
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
60 * Data storage
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
61 *-----------------------------------------------------------------------------
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
62 */
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
63
176
254f45cec904 simplified exif.h, moved implementation-specific stuff to exif-int.h
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 138
diff changeset
64 typedef struct _ExifItem ExifItem;
254f45cec904 simplified exif.h, moved implementation-specific stuff to exif-int.h
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 138
diff changeset
65
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
66 typedef struct _ExifRational ExifRational;
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
67 struct _ExifRational
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
68 {
51
daed872b77bc Sat Jun 4 22:24:00 2005 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents: 47
diff changeset
69 guint32 num;
daed872b77bc Sat Jun 4 22:24:00 2005 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents: 47
diff changeset
70 guint32 den;
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
71 };
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
72
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
73
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
74 /* enums useful for image manipulation */
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
75
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
76 typedef enum {
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
77 EXIF_ORIENTATION_UNKNOWN = 0,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
78 EXIF_ORIENTATION_TOP_LEFT = 1,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
79 EXIF_ORIENTATION_TOP_RIGHT = 2,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
80 EXIF_ORIENTATION_BOTTOM_RIGHT = 3,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
81 EXIF_ORIENTATION_BOTTOM_LEFT = 4,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
82 EXIF_ORIENTATION_LEFT_TOP = 5,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
83 EXIF_ORIENTATION_RIGHT_TOP = 6,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
84 EXIF_ORIENTATION_RIGHT_BOTTOM = 7,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
85 EXIF_ORIENTATION_LEFT_BOTTOM = 8
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
86 } ExifOrientationType;
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
87
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
88 typedef enum {
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
89 EXIF_UNIT_UNKNOWN = 0,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
90 EXIF_UNIT_NOUNIT = 1,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
91 EXIF_UNIT_INCH = 2,
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
92 EXIF_UNIT_CENTIMETER = 3
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
93 } ExifUnitType;
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
94
548
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
95 typedef struct _ExifFormattedText ExifFormattedText;
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
96 struct _ExifFormattedText
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
97 {
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
98 const gchar *key;
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
99 const gchar *description;
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
100 gchar *(*build_func)(ExifData *exif);
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
101 };
ee1b627276aa Add a pointer to the build function in the formatted exif tags struct
Laurent Monin <geeqie@norz.org>
parents: 541
diff changeset
102
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
103 /*
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
104 *-----------------------------------------------------------------------------
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
105 * functions
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
106 *-----------------------------------------------------------------------------
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
107 */
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
108
1288
01a4a8674c8b use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1284
diff changeset
109 void exif_init(void);
01a4a8674c8b use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1284
diff changeset
110
1203
3d2d07d88a5b prepared infrastructure for delayed metadata writting - refreshing
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1189
diff changeset
111 ExifData *exif_read(gchar *path, gchar *sidecar_path, GHashTable *modified_xmp);
188
3577ab0e5e8b write comment and keywords to xmp, sidecars are used if exist
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 187
diff changeset
112
449
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
113 ExifData *exif_read_fd(FileData *fd);
844
a311d66693d4 implemented generic FileData cache
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 552
diff changeset
114 void exif_free_fd(FileData *fd, ExifData *exif);
188
3577ab0e5e8b write comment and keywords to xmp, sidecars are used if exist
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 187
diff changeset
115
1069
495c9ff682ed infrastructure for preprocessing of metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1060
diff changeset
116 /* exif_read returns processed data (merged from image and sidecar, etc.)
495c9ff682ed infrastructure for preprocessing of metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1060
diff changeset
117 this function gives access to the original data from the image.
495c9ff682ed infrastructure for preprocessing of metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1060
diff changeset
118 original data are part of the processed data and should not be freed separately */
495c9ff682ed infrastructure for preprocessing of metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1060
diff changeset
119 ExifData *exif_get_original(ExifData *processed);
188
3577ab0e5e8b write comment and keywords to xmp, sidecars are used if exist
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 187
diff changeset
120
1211
cc4d3023ced3 most of the metadata options now works
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1203
diff changeset
121
cc4d3023ced3 most of the metadata options now works
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1203
diff changeset
122 gboolean exif_write(ExifData *exif);
cc4d3023ced3 most of the metadata options now works
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1203
diff changeset
123 gboolean exif_write_sidecar(ExifData *exif, gchar *path);
cc4d3023ced3 most of the metadata options now works
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1203
diff changeset
124
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
125 void exif_free(ExifData *exif);
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
126
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
127 gchar *exif_get_data_as_text(ExifData *exif, const gchar *key);
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
128 gint exif_get_integer(ExifData *exif, const gchar *key, gint *value);
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
129 ExifRational *exif_get_rational(ExifData *exif, const gchar *key, gint *sign);
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
130
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
131 ExifItem *exif_get_item(ExifData *exif, const gchar *key);
176
254f45cec904 simplified exif.h, moved implementation-specific stuff to exif-int.h
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 138
diff changeset
132 ExifItem *exif_get_first_item(ExifData *exif);
254f45cec904 simplified exif.h, moved implementation-specific stuff to exif-int.h
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 138
diff changeset
133 ExifItem *exif_get_next_item(ExifData *exif);
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
134
187
26f824afc045 write support in Exiv2 wrapper; for now only string values
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 185
diff changeset
135
1000
07f6093c1c1a For the sake of consistency, use glib basic types everywhere.
Laurent Monin <geeqie@norz.org>
parents: 844
diff changeset
136 gchar *exif_item_get_tag_name(ExifItem *item);
176
254f45cec904 simplified exif.h, moved implementation-specific stuff to exif-int.h
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 138
diff changeset
137 guint exif_item_get_tag_id(ExifItem *item);
254f45cec904 simplified exif.h, moved implementation-specific stuff to exif-int.h
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 138
diff changeset
138 guint exif_item_get_elements(ExifItem *item);
1000
07f6093c1c1a For the sake of consistency, use glib basic types everywhere.
Laurent Monin <geeqie@norz.org>
parents: 844
diff changeset
139 gchar *exif_item_get_data(ExifItem *item, guint *data_len);
07f6093c1c1a For the sake of consistency, use glib basic types everywhere.
Laurent Monin <geeqie@norz.org>
parents: 844
diff changeset
140 gchar *exif_item_get_description(ExifItem *item);
176
254f45cec904 simplified exif.h, moved implementation-specific stuff to exif-int.h
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 138
diff changeset
141 guint exif_item_get_format_id(ExifItem *item);
1422
bbdc6fe7f1b8 gint -> gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents: 1288
diff changeset
142 const gchar *exif_item_get_format_name(ExifItem *item, gboolean brief);
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
143 gchar *exif_item_get_data_as_text(ExifItem *item);
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
144 gint exif_item_get_integer(ExifItem *item, gint *value);
1058
4b6d0e465eff Fix up few signed vs unsigned warnings: exif_item_get_rational() last parameter is now of guint type.
Laurent Monin <geeqie@norz.org>
parents: 1055
diff changeset
145 ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, guint n);
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
146
1000
07f6093c1c1a For the sake of consistency, use glib basic types everywhere.
Laurent Monin <geeqie@norz.org>
parents: 844
diff changeset
147 gchar *exif_item_get_string(ExifItem *item, gint idx);
188
3577ab0e5e8b write comment and keywords to xmp, sidecars are used if exist
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 187
diff changeset
148
1053
d213ef1fc608 fixed charset of exiv2 strings in non-utf8 locales
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1052
diff changeset
149 gchar *exif_get_description_by_key(const gchar *key);
d213ef1fc608 fixed charset of exiv2 strings in non-utf8 locales
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1052
diff changeset
150 gchar *exif_get_tag_description_by_key(const gchar *key);
182
36dcfeeeb181 more exiv2 fixes
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 178
diff changeset
151
1422
bbdc6fe7f1b8 gint -> gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents: 1288
diff changeset
152 gchar *exif_get_formatted_by_key(ExifData *exif, const gchar *key, gboolean *key_valid);
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
153
1203
3d2d07d88a5b prepared infrastructure for delayed metadata writting - refreshing
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1189
diff changeset
154 gint exif_update_metadata(ExifData *exif, const gchar *key, const GList *values);
1288
01a4a8674c8b use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1284
diff changeset
155 GList *exif_get_metadata(ExifData *exif, const gchar *key, MetadataFormat format);
187
26f824afc045 write support in Exiv2 wrapper; for now only string values
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 185
diff changeset
156
1000
07f6093c1c1a For the sake of consistency, use glib basic types everywhere.
Laurent Monin <geeqie@norz.org>
parents: 844
diff changeset
157 guchar *exif_get_color_profile(ExifData *exif, guint *data_len);
187
26f824afc045 write support in Exiv2 wrapper; for now only string values
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 185
diff changeset
158
449
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
159 /* jpeg embedded icc support */
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
160
1000
07f6093c1c1a For the sake of consistency, use glib basic types everywhere.
Laurent Monin <geeqie@norz.org>
parents: 844
diff changeset
161 void exif_add_jpeg_color_profile(ExifData *exif, guchar *cp_data, guint cp_length);
449
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
162
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
163
1422
bbdc6fe7f1b8 gint -> gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents: 1288
diff changeset
164 gboolean exif_jpeg_parse_color(ExifData *exif, guchar *data, guint size);
449
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
165
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
166 /*raw support */
1060
54806f8e4af5 added option to use exif thumbnails
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1058
diff changeset
167 guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width, gint requested_height);
1008
2c38f14a2227 use mmaped files image loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1000
diff changeset
168 void exif_free_preview(guchar *buf);
47
98e48f9b178c Fri Jun 3 01:49:20 2005 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents: 9
diff changeset
169
1483
757f4a41c203 re-added possibility to display basic file info (size, mode, date)
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1422
diff changeset
170 gchar *metadata_file_info(FileData *fd, const gchar *key, MetadataFormat format);
449
19e6026ceed7 read color profiles from jpeg also with Exiv2
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 446
diff changeset
171
9
8d9e9edd6fdf Sync to GQview 1.5.9 release.
John Ellis <johne@verizon.net>
parents:
diff changeset
172 #endif
1055
4bbdfab3c89a Adding a vim modeline to all files - patch by Klaus Ethgen
Vladimir Nadvornik <nadvornik@suse.cz>
parents: 1053
diff changeset
173 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */