From 6f842ac8aa37dd855fbffdc09f5491bd85ab3c9a Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Mon, 13 Jan 2014 11:47:53 -0800 Subject: Add clipping for intrinsics. Change-Id: Ic7e1da3c69aa3d5f990816178739120b6059e7a5 --- .../android/renderscript/ScriptIntrinsicConvolve3x3.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'rs/java/android/renderscript/ScriptIntrinsicConvolve3x3.java') diff --git a/rs/java/android/renderscript/ScriptIntrinsicConvolve3x3.java b/rs/java/android/renderscript/ScriptIntrinsicConvolve3x3.java index a1a1b7eab22f..fb91fdceddd9 100644 --- a/rs/java/android/renderscript/ScriptIntrinsicConvolve3x3.java +++ b/rs/java/android/renderscript/ScriptIntrinsicConvolve3x3.java @@ -106,7 +106,19 @@ public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { * type. */ public void forEach(Allocation aout) { - forEach(0, null, aout, null); + forEach(aout, null); + } + + /** + * Apply the filter to the input and save to the specified + * allocation. + * + * @param aout Output allocation. Must match creation element + * type. + * @param opt LaunchOptions for clipping + */ + public void forEach(Allocation aout, Script.LaunchOptions opt) { + forEach(0, null, aout, null, opt); } /** -- cgit v1.2.3