summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2014-10-08 14:16:21 +0530
committerMukund Sivaraman <muks@banu.com>2014-10-08 14:16:21 +0530
commitb6027c99ba338403db6470c6bc7aa6208cdf8f6f (patch)
treef33699841bd84d4f7292b03affc983718ccc6a54 /opencl
parent60b5dd6b17b288a0e4894ef072a758f1abe731ea (diff)
sobel: Rename property keep_signal to keep_sign
Diffstat (limited to 'opencl')
-rw-r--r--opencl/edge-sobel.cl4
-rw-r--r--opencl/edge-sobel.cl.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/opencl/edge-sobel.cl b/opencl/edge-sobel.cl
index ed8aed61..c41a290b 100644
--- a/opencl/edge-sobel.cl
+++ b/opencl/edge-sobel.cl
@@ -3,7 +3,7 @@ kernel void kernel_edgesobel(global float4 *in,
global float4 *out,
const int horizontal,
const int vertical,
- const int keep_signal,
+ const int keep_sign,
const int has_alpha)
{
int gidx = get_global_id(0);
@@ -52,7 +52,7 @@ kernel void kernel_edgesobel(global float4 *in,
}
else
{
- if (keep_signal)
+ if (keep_sign)
gradient = hor_grad + ver_grad;
else
gradient = fabs(hor_grad + ver_grad);
diff --git a/opencl/edge-sobel.cl.h b/opencl/edge-sobel.cl.h
index 6f1816b8..2dc5b0c6 100644
--- a/opencl/edge-sobel.cl.h
+++ b/opencl/edge-sobel.cl.h
@@ -4,7 +4,7 @@ static const char* edge_sobel_cl_source =
" global float4 *out, \n"
" const int horizontal, \n"
" const int vertical, \n"
-" const int keep_signal, \n"
+" const int keep_sign, \n"
" const int has_alpha) \n"
"{ \n"
" int gidx = get_global_id(0); \n"
@@ -53,7 +53,7 @@ static const char* edge_sobel_cl_source =
" } \n"
" else \n"
" { \n"
-" if (keep_signal) \n"
+" if (keep_sign) \n"
" gradient = hor_grad + ver_grad; \n"
" else \n"
" gradient = fabs(hor_grad + ver_grad); \n"