summaryrefslogtreecommitdiff
path: root/jpeg-utils.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-08-02 13:50:16 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-08-02 13:50:16 +0200
commit1e355114311d7bf44b96b11b745857a2b68e8a06 (patch)
treee9e63419c60b1668a22bceda4447794469db21ba /jpeg-utils.h
parent64c8713ab4a64eaf53a764530837bd3ae47a89d2 (diff)
downloadcataract-1e355114311d7bf44b96b11b745857a2b68e8a06.tar.xz
Port to exiv2 library
Now we are able to read EXIF, IPTC and JPEG metadata such as caption, copyright, author etc. though we don't display them anywhere yet. Fixes weird shutter times.
Diffstat (limited to 'jpeg-utils.h')
-rw-r--r--jpeg-utils.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/jpeg-utils.h b/jpeg-utils.h
index 56bb51d..4c47d3c 100644
--- a/jpeg-utils.h
+++ b/jpeg-utils.h
@@ -15,9 +15,15 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
#include <glib.h>
+/* TODO: we want to have numerical values here at some point in the future */
typedef struct {
char *datetime;
char *camera_model;
@@ -27,15 +33,27 @@ typedef struct {
char *aperture;
char *exposure;
char *flash;
- unsigned long width;
- unsigned long height;
+
+ char *exif_software;
+ char *exif_imgdesc;
+ char *exif_artist;
+ char *exif_copyright;
+ char *exif_usercomment;
+
+ char *iptc_objectname;
+ char *iptc_copyright;
+ char *iptc_credit;
+ char *iptc_caption;
+ char *iptc_author;
+
+ char *jpeg_comment;
} TExifData;
/*
* get_exif: retrieve EXIF info from a JPEG image
*/
-int get_exif (const char *filename, TExifData *data);
+int get_exif (const char *filename, TExifData **exif_data);
/*
* free_exif_struct: free allocated structure
@@ -63,3 +81,7 @@ void get_image_sizes (const char *img,
void calculate_sizes (const unsigned long max_width, const unsigned long max_height,
unsigned long *width, unsigned long *height);
+
+#ifdef __cplusplus
+ }
+#endif \ No newline at end of file