summaryrefslogtreecommitdiff
path: root/src/jpeg-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jpeg-utils.h')
-rw-r--r--src/jpeg-utils.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h
index 9b8919f..65e97c5 100644
--- a/src/jpeg-utils.h
+++ b/src/jpeg-utils.h
@@ -25,35 +25,35 @@
/* TODO: we want to have numerical values here at some point in the future */
typedef struct {
- char *datetime;
- char *camera_model;
- char *iso;
- char *focal_length;
- char *focal_length_35mm;
- char *aperture;
- char *exposure;
- char *flash;
-
- 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;
+ gchar *datetime;
+ gchar *camera_model;
+ gchar *iso;
+ gchar *focal_length;
+ gchar *focal_length_35mm;
+ gchar *aperture;
+ gchar *exposure;
+ gchar *flash;
+
+ gchar *exif_software;
+ gchar *exif_imgdesc;
+ gchar *exif_artist;
+ gchar *exif_copyright;
+ gchar *exif_usercomment;
+
+ gchar *iptc_objectname;
+ gchar *iptc_copyright;
+ gchar *iptc_credit;
+ gchar *iptc_caption;
+ gchar *iptc_author;
+
+ gchar *jpeg_comment;
} TExifData;
/*
* get_exif: retrieve EXIF info from a JPEG image
*/
-int get_exif (const char *filename, TExifData **exif_data);
+int get_exif (const gchar *filename, TExifData **exif_data);
/*
* free_exif_struct: free allocated structure
@@ -65,28 +65,28 @@ void free_exif_data (TExifData *data);
* resize_image: resize image pointed by src and save result to dst
* - setting thumbnail flag will remove all profiles and optimize for size
*/
-gboolean resize_image (const char *src, const char *dst,
- int size_x, int size_y,
- int quality,
- gboolean thumbnail);
+gboolean resize_image (const gchar *src, const gchar *dst,
+ int size_x, int size_y,
+ int quality,
+ gboolean thumbnail);
/*
* get_image_sizes: retrieve image dimensions
*/
-void get_image_sizes (const char *img,
+void get_image_sizes (const gchar *img,
unsigned long *width, unsigned long *height);
/*
* calculate_sizes: calculate maximal image sizes within specified limits keeping aspect ratio
*/
void calculate_sizes (const unsigned long max_width, const unsigned long max_height,
- unsigned long *width, unsigned long *height);
+ unsigned long *width, unsigned long *height);
/*
* modify_exif: - strip thumbnail stored in EXIF table
* - add copyright to Exif::Image::Copyright and Iptc::Application2::Copyright
*/
-void modify_exif (const char *filename, gboolean strip_thumbnail, const char *add_copyright);
+void modify_exif (const gchar *filename, gboolean strip_thumbnail, const gchar *add_copyright);
#ifdef __cplusplus