Author: post
Date: 2010-10-20 22:28:59 +0200 (Wed, 20 Oct 2010)
New Revision: 3579

Modified:
   trunk/plugins/denoise/denoise.c
Log:
When denoising ROi-image, adjust the ROI to even pixels, so memory accesses are 
16 byte aligned.

Modified: trunk/plugins/denoise/denoise.c
===================================================================
--- trunk/plugins/denoise/denoise.c     2010-10-20 20:27:25 UTC (rev 3578)
+++ trunk/plugins/denoise/denoise.c     2010-10-20 20:28:59 UTC (rev 3579)
@@ -250,7 +250,12 @@
        g_object_unref(output);
 
        if ((roi = rs_filter_request_get_roi(request)))
+       {
+               /* Align so we start at even pixel counts */
+               roi->width += (roi->x&1);
+               roi->x -= (roi->x&1);
                tmp = rs_image16_new_subframe(output, roi);
+       }
        else
                tmp = g_object_ref(output);
 


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

Reply via email to