Author: abrander
Date: 2009-07-06 17:40:11 +0200 (Mon, 06 Jul 2009)
New Revision: 2561

Modified:
   trunk/plugins/demosaic/demosaic.c
Log:
Made RSDemosaic respect the quick flag.

Modified: trunk/plugins/demosaic/demosaic.c
===================================================================
--- trunk/plugins/demosaic/demosaic.c   2009-07-06 15:27:45 UTC (rev 2560)
+++ trunk/plugins/demosaic/demosaic.c   2009-07-06 15:40:11 UTC (rev 2561)
@@ -214,22 +214,29 @@
                        }
                }
        }
-    /* Do the actual demosaic */
-    switch (demosaic->method)
-    {
-      case RS_DEMOSAIC_BILINEAR:
-        lin_interpolate_INDI(output, filters, 3);
-        break;
-      case RS_DEMOSAIC_PPG:
-        ppg_interpolate_INDI(output, filters, 3);
-        break;
-      case RS_DEMOSAIC_NONE:
-        none_interpolate_INDI(input, output, filters, 3);
-        break;
-      default:
-        /* Do nothing */
-        break;
-    }
+
+       /* Do the actual demosaic */
+       if (rs_filter_param_get_quick(param))
+       {
+               rs_filter_response_set_quick(response);
+               none_interpolate_INDI(input, output, filters, 3);
+       }
+       else
+               switch (demosaic->method)
+               {
+                 case RS_DEMOSAIC_BILINEAR:
+                       lin_interpolate_INDI(output, filters, 3);
+                       break;
+                 case RS_DEMOSAIC_PPG:
+                       ppg_interpolate_INDI(output, filters, 3);
+                       break;
+                 case RS_DEMOSAIC_NONE:
+                       none_interpolate_INDI(input, output, filters, 3);
+                       break;
+                 default:
+                       /* Do nothing */
+                       break;
+               }
   
        g_object_unref(input);
        return response;


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

Reply via email to