diff options
Diffstat (limited to 'src/setup.h')
| -rw-r--r-- | src/setup.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/setup.h b/src/setup.h index c11efed..730c035 100644 --- a/src/setup.h +++ b/src/setup.h @@ -25,11 +25,13 @@ G_BEGIN_DECLS #define DEFAULT_INDEX_FILENAME "index.html" #define THUMBNAIL_NAME_FORMAT "%.3d_%s" +#define HIDPI_NAME_FORMAT "%s_hidpi_%gx" #define TARGET_IMAGE_DIR_PREFIX "_" #define DEFAULT_NO_RESIZE_THRESHOLD 1 #define DEFAULT_AVAILABILITY_THRESHOLD 1 #define DEFAULT_QUALITY_THRESHOLD 5 +#define DEFAULT_UPSCALE_THRESHOLD 33 #define SETUP_XML "setup.xml" #define SETUP_V2_XML "setup2.xml" @@ -38,6 +40,7 @@ G_BEGIN_DECLS /* forward declaration */ typedef struct TGalleryDesign TGalleryDesign; +typedef struct TImageSize TImageSize; /* Global gallery setup */ typedef struct { @@ -96,7 +99,7 @@ typedef enum { CROP_STYLE_FIXED } TCropStyle; -typedef struct { +struct TImageSize { gchar *name; gchar *tagname; gboolean is_thumbnail; @@ -112,8 +115,11 @@ typedef struct { int no_resize_threshold; int availability_threshold; int quality_threshold; + gboolean is_hidpi; + gdouble hidpi_scale_factor; + TImageSize *hidpi_ref_size; TCropStyle thumb_crop_style; -} TImageSize; +}; typedef struct { gboolean enabled; @@ -139,6 +145,10 @@ struct TGalleryDesign { gchar **supplemental_files; gchar *imgmagick_resize_opts; gchar *imgmagick_thumb_opts; + int hidpi_upscale_threshold; + gdouble *hidpi_sizes; + int hidpi_quality; + int hidpi_thumbnail_quality; }; |
