diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-05-11 10:08:54 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-05-11 10:08:54 +0200 |
commit | 9993014314d01407e4dfa1ecf8c58a31b2217ea2 (patch) | |
tree | 52c01fdbd4d9910d30039789c6cbc6f399fa2e34 /plugins | |
parent | ad45d3ed62a29181b051b720f3b26866e87ca8d7 (diff) | |
download | libuca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.tar.gz libuca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.tar.bz2 libuca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.tar.xz libuca-9993014314d01407e4dfa1ecf8c58a31b2217ea2.zip |
file: fix reading of 32 bit TIFFs
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/file/uca-file-camera.c | 4 |
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); |