summaryrefslogtreecommitdiff
path: root/src/items.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2013-04-07 18:11:42 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2013-04-07 18:11:42 +0200
commitced9539fef270fe133cb0ad6fc04c30bd5fa2dfe (patch)
tree91e432faf1482e7adedcd0ea6e6942861325d7dc /src/items.h
parentd912f084ffbcae0ca4b8fdfb355d6bbd6a6d3506 (diff)
downloadcataract-ced9539fef270fe133cb0ad6fc04c30bd5fa2dfe.tar.xz
Add ability to specify thumbnail square crop hint
In simple crop square mode it's sometimes viable to specify position of the square. This is vastly useful for portrait pictures so that you don't crop the head off the body.
Diffstat (limited to 'src/items.h')
-rw-r--r--src/items.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/items.h b/src/items.h
index 331f29e..b502e71 100644
--- a/src/items.h
+++ b/src/items.h
@@ -39,6 +39,15 @@ typedef enum {
AUTH_TYPE_BASIC
} TAuthType;
+typedef enum {
+ CROP_HINT_UNDEFINED = 0,
+ CROP_HINT_CENTER,
+ CROP_HINT_LEFT,
+ CROP_HINT_RIGHT,
+ CROP_HINT_TOP,
+ CROP_HINT_BOTTOM
+} TCropHint;
+
typedef struct {
TGalleryType type;
gchar *ID;
@@ -66,6 +75,7 @@ typedef struct {
TAuthType auth_type;
int metadata_tz_shift; /* minutes */
time_t metadata_fake_datetime;
+ TCropHint thumbnail_crop_hint;
} TAlbum;
typedef struct {
@@ -85,6 +95,7 @@ typedef struct {
gchar *metadata_external_exif;
int metadata_tz_shift; /* minutes */
time_t metadata_fake_datetime;
+ TCropHint thumbnail_crop_hint;
} TIndexItem;
typedef struct {
@@ -115,7 +126,7 @@ void free_album_data (TAlbum *index);
/*
* get_album_info: retrieve number of items and protected status in the specified album
*/
-void get_album_info (const gchar *filename, int *objects_count, gboolean *protected);
+void get_album_info (const gchar *filename, int *objects_count, gboolean *is_protected);
/*
* get_album_titles: retrieve title, description and first thumbnail from specified album