Author: abrander
Date: 2009-07-06 17:44:49 +0200 (Mon, 06 Jul 2009)
New Revision: 2562

Modified:
   trunk/plugins/resample/resample.c
Log:
Made RSResample respect quick-flag.

Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c   2009-07-06 15:40:11 UTC (rev 2561)
+++ trunk/plugins/resample/resample.c   2009-07-06 15:44:49 UTC (rev 2562)
@@ -271,6 +271,7 @@
 static RSFilterResponse *
 get_image(RSFilter *filter, const RSFilterParam *param)
 {
+       gboolean use_fast = FALSE;
        RSResample *resample = RS_RESAMPLE(filter);
        RSFilterResponse *previous_response;
        RSFilterResponse *response;
@@ -309,8 +310,13 @@
 
        /* Use compatible (and slow) version if input isn't 3 channels and 
pixelsize 4 */ 
        gboolean use_compatible = ( ! ( input->pixelsize == 4 && 
input->channels == 3));
-       gboolean use_fast = FALSE;
 
+       if (rs_filter_param_get_quick(param))
+       {
+               use_fast = TRUE;
+               rs_filter_response_set_quick(response);
+       }
+
        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