aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-12-28 23:10:45 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-28 23:29:58 +0100
commit98bdab443adfbf4d6ecc485874806016771ddbf6 (patch)
tree993a4b3a0db308b83fe26eefe4b648ed8d7d56af /fiv-io.h
parentbf47782f0a4720da8b6aeb39cfc128b6b26ded6e (diff)
downloadfiv-98bdab443adfbf4d6ecc485874806016771ddbf6.tar.gz
fiv-98bdab443adfbf4d6ecc485874806016771ddbf6.tar.xz
fiv-98bdab443adfbf4d6ecc485874806016771ddbf6.zip
Hardcode Exif orientation in thumbnails
Diffstat (limited to 'fiv-io.h')
-rw-r--r--fiv-io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fiv-io.h b/fiv-io.h
index 54e2727..35eff32 100644
--- a/fiv-io.h
+++ b/fiv-io.h
@@ -108,6 +108,14 @@ typedef enum _FivIoOrientation {
FivIoOrientation270 = 8
} FivIoOrientation;
+/// Returns whether dimensions need to be swapped for rendering.
+gboolean fiv_io_orientation_is_sideways(FivIoOrientation orientation);
+
+/// Returns a rendering matrix for a surface. Dimensions need to be pre-swapped.
+cairo_matrix_t fiv_io_orientation_matrix(
+ FivIoOrientation orientation, double width, double height);
+
+/// Extracts the orientation field from Exif, if there's any.
FivIoOrientation fiv_io_exif_orientation(const guint8 *exif, gsize len);
/// Save metadata attached by this module in Exiv2 format.