aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-07 08:50:07 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-01-07 09:43:28 +0100
commit3274b64f5aecbb6cd68a606fce439f08ecf14acb (patch)
tree18756372760665343d777fe87f45a848d485b038 /fiv-io.h
parentfeda4fd70f592d845fce374b0e9bb38f05f26656 (diff)
downloadfiv-3274b64f5aecbb6cd68a606fce439f08ecf14acb.tar.gz
fiv-3274b64f5aecbb6cd68a606fce439f08ecf14acb.tar.xz
fiv-3274b64f5aecbb6cd68a606fce439f08ecf14acb.zip
Fix SVG thumbnailing
They're not loaded as image surfaces.
Diffstat (limited to 'fiv-io.h')
-rw-r--r--fiv-io.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/fiv-io.h b/fiv-io.h
index f8f3118..066770c 100644
--- a/fiv-io.h
+++ b/fiv-io.h
@@ -130,12 +130,11 @@ 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);
+/// Returns a rendering matrix for a surface, and its target dimensions.
+cairo_matrix_t fiv_io_orientation_apply(cairo_surface_t *surface,
+ FivIoOrientation orientation, double *width, double *height);
+void fiv_io_orientation_dimensions(cairo_surface_t *surface,
+ 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);