Loading rs/java/android/renderscript/ScriptIntrinsicBlur.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -59,6 +59,9 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic { * @param ain The input allocation * @param ain The input allocation */ */ public void setInput(Allocation ain) { public void setInput(Allocation ain) { if (ain.getType().getY() == 0) { throw new RSIllegalArgumentException("Input set to a 1D Allocation"); } mInput = ain; mInput = ain; setVar(1, ain); setVar(1, ain); } } Loading @@ -85,6 +88,9 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic { * type. * type. */ */ public void forEach(Allocation aout) { public void forEach(Allocation aout) { if (aout.getType().getY() == 0) { throw new RSIllegalArgumentException("Output is a 1D Allocation"); } forEach(0, (Allocation) null, aout, null); forEach(0, (Allocation) null, aout, null); } } Loading @@ -97,6 +103,9 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic { * @param opt LaunchOptions for clipping * @param opt LaunchOptions for clipping */ */ public void forEach(Allocation aout, Script.LaunchOptions opt) { public void forEach(Allocation aout, Script.LaunchOptions opt) { if (aout.getType().getY() == 0) { throw new RSIllegalArgumentException("Output is a 1D Allocation"); } forEach(0, (Allocation) null, aout, null, opt); forEach(0, (Allocation) null, aout, null, opt); } } Loading Loading
rs/java/android/renderscript/ScriptIntrinsicBlur.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -59,6 +59,9 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic { * @param ain The input allocation * @param ain The input allocation */ */ public void setInput(Allocation ain) { public void setInput(Allocation ain) { if (ain.getType().getY() == 0) { throw new RSIllegalArgumentException("Input set to a 1D Allocation"); } mInput = ain; mInput = ain; setVar(1, ain); setVar(1, ain); } } Loading @@ -85,6 +88,9 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic { * type. * type. */ */ public void forEach(Allocation aout) { public void forEach(Allocation aout) { if (aout.getType().getY() == 0) { throw new RSIllegalArgumentException("Output is a 1D Allocation"); } forEach(0, (Allocation) null, aout, null); forEach(0, (Allocation) null, aout, null); } } Loading @@ -97,6 +103,9 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic { * @param opt LaunchOptions for clipping * @param opt LaunchOptions for clipping */ */ public void forEach(Allocation aout, Script.LaunchOptions opt) { public void forEach(Allocation aout, Script.LaunchOptions opt) { if (aout.getType().getY() == 0) { throw new RSIllegalArgumentException("Output is a 1D Allocation"); } forEach(0, (Allocation) null, aout, null, opt); forEach(0, (Allocation) null, aout, null, opt); } } Loading