summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
Diffstat (limited to 'opencl')
-rw-r--r--opencl/edge-laplace.cl4
-rw-r--r--opencl/edge-laplace.cl.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/opencl/edge-laplace.cl b/opencl/edge-laplace.cl
index fccceb50..d0388367 100644
--- a/opencl/edge-laplace.cl
+++ b/opencl/edge-laplace.cl
@@ -101,8 +101,8 @@ kernel void pre_edgelaplace (global float4 *in,
fmax((maxval - pix_mm[c]),(pix_mm[c] - minval));
gradient[c] =
(pix_fl[c] + pix_fm[c] + pix_fr[c] +
- pix_bm[c] - 8.0f * pix_mm[c]+ pix_br[c]
- pix_ml[c] + pix_mr[c] + pix_bl[c] +) <
+ pix_bm[c] - 8.0f * pix_mm[c] + pix_br[c] +
+ pix_ml[c] + pix_mr[c] + pix_bl[c]) <
EPSILON ? -1.0f * gradient[c] : gradient[c];
}
gradient[3] = pix_mm[3];
diff --git a/opencl/edge-laplace.cl.h b/opencl/edge-laplace.cl.h
index d227c26e..5682583a 100644
--- a/opencl/edge-laplace.cl.h
+++ b/opencl/edge-laplace.cl.h
@@ -102,8 +102,8 @@ static const char* edge_laplace_cl_source =
" fmax((maxval - pix_mm[c]),(pix_mm[c] - minval)); \n"
" gradient[c] = \n"
" (pix_fl[c] + pix_fm[c] + pix_fr[c] + \n"
-" pix_bm[c] - 8.0f * pix_mm[c]+ pix_br[c] \n"
-" pix_ml[c] + pix_mr[c] + pix_bl[c] +) < \n"
+" pix_bm[c] - 8.0f * pix_mm[c] + pix_br[c] + \n"
+" pix_ml[c] + pix_mr[c] + pix_bl[c]) < \n"
" EPSILON ? -1.0f * gradient[c] : gradient[c]; \n"
" } \n"
" gradient[3] = pix_mm[3]; \n"