[Rawstudio-commit] r2763 - trunk/plugins/dcp

Klaus Post klauspost at gmail.com
Sun Nov 29 15:33:24 CET 2009


Author: post
Date: 2009-11-29 15:33:24 +0100 (Sun, 29 Nov 2009)
New Revision: 2763

Modified:
   trunk/plugins/dcp/dcp.c
Log:
DCP: Check if pixelsize is 4 before using SSE2.

Modified: trunk/plugins/dcp/dcp.c
===================================================================
--- trunk/plugins/dcp/dcp.c	2009-11-29 14:32:21 UTC (rev 2762)
+++ trunk/plugins/dcp/dcp.c	2009-11-29 14:33:24 UTC (rev 2763)
@@ -360,7 +360,7 @@
 	RS_IMAGE16 *tmp = t->tmp;
 
 #if defined (__SSE2__)
-	if (rs_detect_cpu_features() & RS_CPU_FLAG_SSE2)
+	if (tmp->pixelsize == 4  && (rs_detect_cpu_features() & RS_CPU_FLAG_SSE2))
 	{
 		render_SSE2(t);
 		if (tmp->w & 3)




More information about the Rawstudio-commit mailing list