summaryrefslogtreecommitdiff
path: root/src/jpeg-utils.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2019-05-13 22:16:28 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2019-05-13 22:16:28 +0200
commit0c3b218886342e44275b087c41faf3b6a2b7f664 (patch)
tree35191c66c8f20e6f9b245d81cd79398a435370d9 /src/jpeg-utils.h
parent86438b558aaeb758d8770144c9e2fe70fdc4ee8a (diff)
downloadcataract-0c3b218886342e44275b087c41faf3b6a2b7f664.tar.xz
jpeg-utils: Port to gexiv2
The gexiv2 library is just a GObject wrapper around exiv2 library. It's a healthy project that continually keeps up with exiv2 API changes. Adopted by e.g. GIMP there's certain guarantee of future maintenance. This allows us to get rid of C++ code, making it more readable and predictable.
Diffstat (limited to 'src/jpeg-utils.h')
-rw-r--r--src/jpeg-utils.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h
index 767320a..b73576b 100644
--- a/src/jpeg-utils.h
+++ b/src/jpeg-utils.h
@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define CROP_SIMPLE_SHAVE_AMOUNT 0 /* percent */
/* EXIF data known keys */
+/* Exiv2 Tag Reference can be found at http://exiv2.org/metadata.html */
#define EXIF_APERTURE "Exif.Photo.FNumber"
#define EXIF_CAMERA_MODEL "Exif.Image.Model"
#define EXIF_DATETIME "Exif.Photo.DateTimeOriginal"
@@ -99,12 +100,12 @@ gboolean exif_has_key (ExifData *exif, const gchar *key);
*/
gboolean resize_image (const gchar *src, const gchar *dst,
unsigned long size_x, unsigned long size_y,
- int quality,
- gboolean thumbnail,
- gboolean autorotate,
- gboolean hidpi_strict_dimensions,
- ExifData *exif,
- gchar *resize_opts);
+ int quality,
+ gboolean thumbnail,
+ gboolean autorotate,
+ gboolean hidpi_strict_dimensions,
+ ExifData *exif,
+ gchar *resize_opts);
/*
* get_image_sizes: retrieve image dimensions
@@ -118,7 +119,7 @@ void get_image_sizes (const gchar *img,
* 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