summaryrefslogtreecommitdiffstats
path: root/plugins/file/uca-file-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-05-11 10:08:54 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-05-11 10:08:54 +0200
commit9993014314d01407e4dfa1ecf8c58a31b2217ea2 (patch)
tree52c01fdbd4d9910d30039789c6cbc6f399fa2e34 /plugins/file/uca-file-camera.c
parentad45d3ed62a29181b051b720f3b26866e87ca8d7 (diff)
downloaduca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.tar.gz
uca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.tar.bz2
uca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.tar.xz
uca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.zip
file: fix reading of 32 bit TIFFs
Diffstat (limited to 'plugins/file/uca-file-camera.c')
-rw-r--r--plugins/file/uca-file-camera.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/file/uca-file-camera.c b/plugins/file/uca-file-camera.c
index b89c5b6..00a3225 100644
--- a/plugins/file/uca-file-camera.c
+++ b/plugins/file/uca-file-camera.c
@@ -98,9 +98,7 @@ read_tiff_data (UcaFileCameraPrivate *priv, const gchar *fname, gpointer buffer)
return FALSE;
}
- if (priv->bitdepth > 8) {
- step *= priv->bitdepth <= 16 ? 2 : 4;
- }
+ step *= priv->bitdepth / 8;
for (guint32 i = 0; i < priv->height; i++) {
result = TIFFReadScanline (file, ((gchar *) buffer) + offset, i, 0);