Mercurial > geeqie.yaz
comparison src/exif.h @ 1288:10073464e6aa
use metadata_read_* functions where possible
switch exiv2 to utf8 charset
support for exiv2 formatting that depends on other tags:
http://dev.robotbattle.com/bugs/view.php?id=0000516
author | nadvornik |
---|---|
date | Sat, 07 Feb 2009 19:01:21 +0000 |
parents | 8b89e3ff286b |
children | 91bed0d66cf2 |
comparison
equal
deleted
inserted
replaced
1287:5fdf258f9c24 | 1288:10073464e6aa |
---|---|
90 EXIF_UNIT_NOUNIT = 1, | 90 EXIF_UNIT_NOUNIT = 1, |
91 EXIF_UNIT_INCH = 2, | 91 EXIF_UNIT_INCH = 2, |
92 EXIF_UNIT_CENTIMETER = 3 | 92 EXIF_UNIT_CENTIMETER = 3 |
93 } ExifUnitType; | 93 } ExifUnitType; |
94 | 94 |
95 | |
96 typedef struct _ExifFormattedText ExifFormattedText; | 95 typedef struct _ExifFormattedText ExifFormattedText; |
97 struct _ExifFormattedText | 96 struct _ExifFormattedText |
98 { | 97 { |
99 const gchar *key; | 98 const gchar *key; |
100 const gchar *description; | 99 const gchar *description; |
104 /* | 103 /* |
105 *----------------------------------------------------------------------------- | 104 *----------------------------------------------------------------------------- |
106 * functions | 105 * functions |
107 *----------------------------------------------------------------------------- | 106 *----------------------------------------------------------------------------- |
108 */ | 107 */ |
108 | |
109 void exif_init(void); | |
109 | 110 |
110 ExifData *exif_read(gchar *path, gchar *sidecar_path, GHashTable *modified_xmp); | 111 ExifData *exif_read(gchar *path, gchar *sidecar_path, GHashTable *modified_xmp); |
111 | 112 |
112 ExifData *exif_read_fd(FileData *fd); | 113 ExifData *exif_read_fd(FileData *fd); |
113 void exif_free_fd(FileData *fd, ExifData *exif); | 114 void exif_free_fd(FileData *fd, ExifData *exif); |
149 gchar *exif_get_tag_description_by_key(const gchar *key); | 150 gchar *exif_get_tag_description_by_key(const gchar *key); |
150 | 151 |
151 gchar *exif_get_formatted_by_key(ExifData *exif, const gchar *key, gint *key_valid); | 152 gchar *exif_get_formatted_by_key(ExifData *exif, const gchar *key, gint *key_valid); |
152 | 153 |
153 gint exif_update_metadata(ExifData *exif, const gchar *key, const GList *values); | 154 gint exif_update_metadata(ExifData *exif, const gchar *key, const GList *values); |
154 GList *exif_get_metadata(ExifData *exif, const gchar *key); | 155 GList *exif_get_metadata(ExifData *exif, const gchar *key, MetadataFormat format); |
155 | 156 |
156 guchar *exif_get_color_profile(ExifData *exif, guint *data_len); | 157 guchar *exif_get_color_profile(ExifData *exif, guint *data_len); |
157 | 158 |
158 /* jpeg embedded icc support */ | 159 /* jpeg embedded icc support */ |
159 | 160 |