summaryrefslogtreecommitdiffstats
path: root/libs/rs/java/ImageProcessing
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-05-20 17:56:05 -0700
committerJason Sams <rjsams@android.com>2010-05-20 17:56:05 -0700
commit1001a5b97bf910c164dce45c174c4660d678d818 (patch)
treeabb68ebd1670710508f63dbc093e8ee43fa41481 /libs/rs/java/ImageProcessing
parent62697e57eddc89d76fdfb6cdacaf83d058d9744a (diff)
downloadframeworks_base-1001a5b97bf910c164dce45c174c4660d678d818.zip
frameworks_base-1001a5b97bf910c164dce45c174c4660d678d818.tar.gz
frameworks_base-1001a5b97bf910c164dce45c174c4660d678d818.tar.bz2
Remove noise functions and update images processing to use new rs namespace names.
Change-Id: I2dc9b5ec7877acd630bea1a011ecc4a6d43a31eb
Diffstat (limited to 'libs/rs/java/ImageProcessing')
-rw-r--r--libs/rs/java/ImageProcessing/res/raw/threshold.rs27
-rw-r--r--libs/rs/java/ImageProcessing/res/raw/threshold_bc.bcbin8400 -> 8772 bytes
2 files changed, 13 insertions, 14 deletions
diff --git a/libs/rs/java/ImageProcessing/res/raw/threshold.rs b/libs/rs/java/ImageProcessing/res/raw/threshold.rs
index 0317088..6af4012 100644
--- a/libs/rs/java/ImageProcessing/res/raw/threshold.rs
+++ b/libs/rs/java/ImageProcessing/res/raw/threshold.rs
@@ -50,7 +50,7 @@ void computeColorMatrix() {
float oneMinusS = 1.0f - saturation;
- matrixLoadIdentity(colorMat);
+ rsMatrixLoadIdentity((rs_matrix4x4 *)colorMat);
colorMat[0][0] = oneMinusS * rWeight + saturation;
colorMat[0][1] = oneMinusS * rWeight;
@@ -165,7 +165,7 @@ void processNoBlur() {
output->a = input->a;
}
}
- sendToClient(&count, 1, 4, 0);
+ rsSendToClient(&count, 1, 4, 0);
}
void horizontalBlur() {
@@ -294,16 +294,15 @@ void verticalBlur() {
}
void filter() {
- debugP(0, (void *)height);
- debugP(0, (void *)width);
- debugP(0, (void *)radius);
-
- debugPf(10, inBlack);
- debugPf(11, outBlack);
- debugPf(12, inWhite);
- debugPf(13, outWhite);
- debugPf(14, gamma);
- debugPf(15, saturation);
+ RS_DEBUG(height);
+ RS_DEBUG(width);
+ RS_DEBUG(radius);
+ RS_DEBUG(inBlack);
+ RS_DEBUG(outBlack);
+ RS_DEBUG(inWhite);
+ RS_DEBUG(outWhite);
+ RS_DEBUG(gamma);
+ RS_DEBUG(saturation);
computeColorMatrix();
@@ -318,7 +317,7 @@ void filter() {
verticalBlur();
int count = 0;
- sendToClient(&count, 1, 4, 0);
+ rsSendToClient(&count, 1, 4, 0);
}
void filterBenchmark() {
@@ -329,6 +328,6 @@ void filterBenchmark() {
verticalBlur();
int count = 0;
- sendToClient(&count, 1, 4, 0);
+ rsSendToClient(&count, 1, 4, 0);
}
diff --git a/libs/rs/java/ImageProcessing/res/raw/threshold_bc.bc b/libs/rs/java/ImageProcessing/res/raw/threshold_bc.bc
index 58a93e6..29eba2d 100644
--- a/libs/rs/java/ImageProcessing/res/raw/threshold_bc.bc
+++ b/libs/rs/java/ImageProcessing/res/raw/threshold_bc.bc
Binary files differ