summaryrefslogtreecommitdiffstats
path: root/libs/rs
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-02-12 17:26:46 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-02-12 17:26:46 -0800
commit6f8a3dfa6bda25d98e9a3001c046496575212648 (patch)
tree1f129f2b460b28c40b894f60ccaef51a205d6ee5 /libs/rs
parentd2affae13dfdb116adaee1bb10aaaac80a885481 (diff)
parent941533186c70d80c014859d3f09b518d31f535bf (diff)
downloadframeworks_base-6f8a3dfa6bda25d98e9a3001c046496575212648.zip
frameworks_base-6f8a3dfa6bda25d98e9a3001c046496575212648.tar.gz
frameworks_base-6f8a3dfa6bda25d98e9a3001c046496575212648.tar.bz2
Merge "Add comment block matching the type defines added by RS."
Diffstat (limited to 'libs/rs')
-rw-r--r--libs/rs/java/ImageProcessing/res/raw/threshold.rs28
1 files changed, 26 insertions, 2 deletions
diff --git a/libs/rs/java/ImageProcessing/res/raw/threshold.rs b/libs/rs/java/ImageProcessing/res/raw/threshold.rs
index 888b5cd..888f0cd 100644
--- a/libs/rs/java/ImageProcessing/res/raw/threshold.rs
+++ b/libs/rs/java/ImageProcessing/res/raw/threshold.rs
@@ -1,3 +1,29 @@
+/*
+// block of defines matching what RS will insert at runtime.
+struct Params_s{
+ int inHeight;
+ int inWidth;
+ int outHeight;
+ int outWidth;
+ float threshold;
+};
+struct Params_s * Params;
+struct InPixel_s{
+ char a;
+ char b;
+ char g;
+ char r;
+};
+struct InPixel_s * InPixel;
+struct OutPixel_s{
+ char a;
+ char b;
+ char g;
+ char r;
+};
+struct OutPixel_s * OutPixel;
+*/
+
struct color_s {
char b;
char g;
@@ -15,8 +41,6 @@ void main() {
int i;
float threshold = (Params->threshold * 255.f);
- //testFnc(count, threshold, in, out);
-
for (i = 0; i < count; i++) {
float luminance = 0.2125f * in->r +
0.7154f * in->g +