summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ScriptIntrinsicLUT.java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-01-13 11:47:53 -0800
committerTim Murray <timmurray@google.com>2014-01-13 11:47:53 -0800
commit6f842ac8aa37dd855fbffdc09f5491bd85ab3c9a (patch)
tree9228f5d9e3f2f84b26c5921f288567abd799b54e /rs/java/android/renderscript/ScriptIntrinsicLUT.java
parent291d64685dd05f76deaf210a75d2d06c153f4b39 (diff)
Add clipping for intrinsics.
Change-Id: Ic7e1da3c69aa3d5f990816178739120b6059e7a5
Diffstat (limited to 'rs/java/android/renderscript/ScriptIntrinsicLUT.java')
-rw-r--r--rs/java/android/renderscript/ScriptIntrinsicLUT.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/rs/java/android/renderscript/ScriptIntrinsicLUT.java b/rs/java/android/renderscript/ScriptIntrinsicLUT.java
index 001095c55c54..69ff64acdf90 100644
--- a/rs/java/android/renderscript/ScriptIntrinsicLUT.java
+++ b/rs/java/android/renderscript/ScriptIntrinsicLUT.java
@@ -114,7 +114,6 @@ public final class ScriptIntrinsicLUT extends ScriptIntrinsic {
mDirty = true;
}
-
/**
* Invoke the kernel and apply the lookup to each cell of ain
* and copy to aout.
@@ -123,11 +122,23 @@ public final class ScriptIntrinsicLUT extends ScriptIntrinsic {
* @param aout Output allocation
*/
public void forEach(Allocation ain, Allocation aout) {
+ forEach(ain, aout, null);
+ }
+
+ /**
+ * Invoke the kernel and apply the lookup to each cell of ain
+ * and copy to aout.
+ *
+ * @param ain Input allocation
+ * @param aout Output allocation
+ * @param opt Options for clipping
+ */
+ public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) {
if (mDirty) {
mDirty = false;
mTables.copyFromUnchecked(mCache);
}
- forEach(0, ain, aout, null);
+ forEach(0, ain, aout, null, opt);
}
/**