Author: post
Date: 2012-05-15 16:46:05 +0200 (Tue, 15 May 2012)
New Revision: 4229

Modified:
   trunk/plugins/dcp/dcp.c
Log:
Check for SSE2 before calculating lookup tables for these functions.

Modified: trunk/plugins/dcp/dcp.c
===================================================================
--- trunk/plugins/dcp/dcp.c     2012-05-06 15:17:58 UTC (rev 4228)
+++ trunk/plugins/dcp/dcp.c     2012-05-15 14:46:05 UTC (rev 4229)
@@ -1452,9 +1452,9 @@
        g_static_rec_mutex_lock(&dcp_mutex);
        if (dcp->use_profile)
                matrix3_multiply(&xyz_to_prophoto, &dcp->camera_to_pcs, 
&dcp->camera_to_prophoto); /* verified by SDK */
-       if (dcp->huesatmap)
+       if (dcp->huesatmap && (rs_detect_cpu_features() & RS_CPU_FLAG_SSE2))
                calc_hsm_constants(dcp->huesatmap, dcp->huesatmap_precalc); 
-       if (dcp->looktable)
+       if (dcp->looktable && (rs_detect_cpu_features() & RS_CPU_FLAG_SSE2))
                calc_hsm_constants(dcp->looktable, dcp->looktable_precalc); 
        g_static_rec_mutex_unlock(&dcp_mutex);
 }


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to