Author: post
Date: 2010-12-29 21:43:41 +0100 (Wed, 29 Dec 2010)
New Revision: 3724

Modified:
   trunk/plugins/resample/resample.c
Log:
Use compatible resampler on very small images.

Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c   2010-12-29 20:32:12 UTC (rev 3723)
+++ trunk/plugins/resample/resample.c   2010-12-29 20:43:41 UTC (rev 3724)
@@ -319,7 +319,7 @@
                gboolean sse2_available = !!(rs_detect_cpu_features() & 
RS_CPU_FLAG_SSE2);
                if (t->use_fast)
                        ResizeV_fast(t);
-               else if (!sse2_available && t->use_compatible)
+               else if (t->use_compatible)
                        ResizeV_compatible(t);
                else if (sse2_available)
                        ResizeV_SSE2(t);
@@ -400,6 +400,9 @@
                rs_filter_response_set_quick(response);
        }
 
+       if (input_width < 32 || input_height < 32)
+               use_compatible = TRUE;
+
        guint threads = rs_get_number_of_processor_cores();
 
        ResampleInfo* h_resample = g_new(ResampleInfo,  threads);


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

Reply via email to