summaryrefslogtreecommitdiff
path: root/AutoVideosLiveBlackWhite.cl
diff options
context:
space:
mode:
authorpommicket <leonardomtenenbaum@gmail.com>2015-09-13 20:02:48 -0400
committerpommicket <leonardomtenenbaum@gmail.com>2015-09-13 20:02:48 -0400
commit06d2a1f6d78361f9410e3c4326554b4568efe91b (patch)
tree6351a3e388ab204f35ad16be9f6a7cf17432351f /AutoVideosLiveBlackWhite.cl
parent2bb9926748d1a800ccaab943830ca9cc77772151 (diff)
Added AutoVideosLive black and white
Diffstat (limited to 'AutoVideosLiveBlackWhite.cl')
-rw-r--r--AutoVideosLiveBlackWhite.cl16
1 files changed, 16 insertions, 0 deletions
diff --git a/AutoVideosLiveBlackWhite.cl b/AutoVideosLiveBlackWhite.cl
new file mode 100644
index 0000000..238b028
--- /dev/null
+++ b/AutoVideosLiveBlackWhite.cl
@@ -0,0 +1,16 @@
+
+__kernel void AutoFrame(__global float *output)
+{
+ unsigned int id = get_global_id(0);
+ int width = <WIDTH>;
+
+ int xInt = (id/3) % width;
+ int yInt = (id/3) / width;
+ float t = <FRAMENUMBER>;
+
+ float x = (float)xInt;
+ float y = (float)yInt;
+
+ output[id] = function;
+
+}