changeset 2122:09f2694ce8ac

Drop unused code and variables (transform/orientation).
author Laurent Monin <zas@norz.org>
date Thu, 30 Aug 2012 14:06:24 +0200
parents aa22fecfe752
children 20bf5f007835
files src/image_load_tiff.c
diffstat 1 files changed, 0 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/src/image_load_tiff.c	Thu Aug 30 14:01:41 2012 +0200
+++ b/src/image_load_tiff.c	Thu Aug 30 14:06:24 2012 +0200
@@ -153,8 +153,6 @@
 	TIFF *tiff;
 	guchar *pixels = NULL;
 	gint width, height, rowstride, bytes;
-	uint16 orientation = 0;
-	uint16 transform = 0;
 	uint32 rowsperstrip;
 
 	lt->buffer = buf;
@@ -236,36 +234,6 @@
 		return FALSE;
 		}
 
-	/* Set the "orientation" key associated with this image. libtiff 
-	   orientation handling is odd, so further processing is required
-	   by higher-level functions based on this tag. If the embedded
-	   orientation tag is 1-4, libtiff flips/mirrors the image as
-	   required, and no client processing is required - so we report 
-	   no orientation. Orientations 5-8 require rotations which would 
-	   swap the width and height of the image. libtiff does not do this. 
-	   Instead it interprets orientations 5-8 the same as 1-4. 
-	   See http://bugzilla.remotesensing.org/show_bug.cgi?id=1548.
-	   To correct for this, the client must apply the transform normally
-	   used for orientation 5 to both orientations 5 and 7, and apply
-	   the transform normally used for orientation 7 for both
-	   orientations 6 and 8. Then everythings works out OK! */
-	
-	TIFFGetField (tiff, TIFFTAG_ORIENTATION, &orientation);
-
-	switch (orientation) {
-		case 5:
-		case 7:
-			transform = 5;
-			break;
-		case 6:
-		case 8:
-			transform = 7;
-			break;
-		default:
-			transform = 0;
-			break;
-	}
-
 	lt->area_prepared_cb(loader, lt->data);
 
 	if (TIFFGetField(tiff, TIFFTAG_ROWSPERSTRIP, &rowsperstrip))