[Rawstudio-commit] r1568 - trunk/src

Anders Brander anders at brander.dk
Thu Jan 17 06:10:46 CET 2008


Author: abrander
Date: 2008-01-17 06:10:46 +0100 (Thu, 17 Jan 2008)
New Revision: 1568

Modified:
   trunk/src/rs-tiff.c
Log:
Now using GET_PIXEL()-macros in TIFF savers.

Modified: trunk/src/rs-tiff.c
===================================================================
--- trunk/src/rs-tiff.c	2008-01-17 02:25:04 UTC (rev 1567)
+++ trunk/src/rs-tiff.c	2008-01-17 05:10:46 UTC (rev 1568)
@@ -77,7 +77,7 @@
 	TIFFSetField(output, TIFFTAG_BITSPERSAMPLE, 8);
 	for(row=0;row<image->h;row++)
 	{
-		guchar *buf = image->pixels + image->rowstride * row;
+		guchar *buf = GET_PIXEL(image, 0, row);
 		TIFFWriteScanline(output, buf, row, 0);
 	}
 	TIFFClose(output);
@@ -99,7 +99,7 @@
 		TIFFSetField(output, TIFFTAG_BITSPERSAMPLE, 16);
 		for(row=0;row<image->h;row++)
 		{
-			gushort *buf = image->pixels + image->rowstride * row;
+			gushort *buf = GET_PIXEL(image, 0, row);
 			TIFFWriteScanline(output, buf, row, 0);
 		}
 		TIFFClose(output);




More information about the Rawstudio-commit mailing list