diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-26 00:16:12 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-26 03:16:41 +0100 |
commit | bafad1a67ee0071f74b2584d221ef2bc6e90d013 (patch) | |
tree | 14484e4f6f2c4444b943350600de361be643a964 /fastiv-io.h | |
parent | a5f64b1a65a60241d9529b26d3fea6ab16baddf4 (diff) | |
download | fiv-bafad1a67ee0071f74b2584d221ef2bc6e90d013.tar.gz fiv-bafad1a67ee0071f74b2584d221ef2bc6e90d013.tar.xz fiv-bafad1a67ee0071f74b2584d221ef2bc6e90d013.zip |
Add a function to decode TIFF/Exif Orientation
Diffstat (limited to 'fastiv-io.h')
-rw-r--r-- | fastiv-io.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fastiv-io.h b/fastiv-io.h index 3aed342..a611078 100644 --- a/fastiv-io.h +++ b/fastiv-io.h @@ -46,6 +46,23 @@ cairo_surface_t *fastiv_io_open_from_data( int fastiv_io_filecmp(GFile *f1, GFile *f2); +// --- Metadata ---------------------------------------------------------------- + +// https://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf Table 6 +typedef enum _FastivIoOrientation { + FastivIoOrientationUnknown = 0, + FastivIoOrientation0 = 1, + FastivIoOrientationMirror0 = 2, + FastivIoOrientation180 = 3, + FastivIoOrientationMirror180 = 4, + FastivIoOrientationMirror90 = 5, + FastivIoOrientation90 = 6, + FastivIoOrientationMirror270 = 7, + FastivIoOrientation270 = 8 +} FastivIoOrientation; + +FastivIoOrientation fastiv_io_exif_orientation(const guint8 *exif, gsize len); + // --- Thumbnails -------------------------------------------------------------- // And this is how you avoid glib-mkenums. |