summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomas Farago <sensej007@email.cz>2019-06-24 09:12:41 +0200
committerTomas Farago <sensej007@email.cz>2019-06-24 13:35:03 +0200
commitf5bbcab5f22eb63327e1feb7a136768c59d363bf (patch)
tree9706f9fb07576e1be5c284b94f9fdeed8d30faed /src
parent3080c9cc4bf53ae07ffb3139d9ef1bf6c959a19a (diff)
downloadufo-filters-f5bbcab5f22eb63327e1feb7a136768c59d363bf.tar.gz
ufo-filters-f5bbcab5f22eb63327e1feb7a136768c59d363bf.tar.bz2
ufo-filters-f5bbcab5f22eb63327e1feb7a136768c59d363bf.tar.xz
ufo-filters-f5bbcab5f22eb63327e1feb7a136768c59d363bf.zip
Fix stripe_filter kernel
Modify only all horizontal frequencies and take interleaved storage into account.
Diffstat (limited to 'src')
-rw-r--r--src/kernels/.filter.cl.swpbin0 -> 12288 bytes
-rw-r--r--src/kernels/filter.cl2
2 files changed, 1 insertions, 1 deletions
diff --git a/src/kernels/.filter.cl.swp b/src/kernels/.filter.cl.swp
new file mode 100644
index 0000000..92485a6
--- /dev/null
+++ b/src/kernels/.filter.cl.swp
Binary files differ
diff --git a/src/kernels/filter.cl b/src/kernels/filter.cl
index 445a735..ed68e16 100644
--- a/src/kernels/filter.cl
+++ b/src/kernels/filter.cl
@@ -38,7 +38,7 @@ stripe_filter (global float *input,
const int height = get_global_size(1);
const int index = idy * get_global_size(0) + idx;
- if (((idy < 1) || (idy >= height - 1)) && (idx > 0) && (idx < width - 1))
+ if (idy == 0 && idx > 1)
output[index] = 0.0f;
else
output[index] = input[index];