public class ScriptIntrinsicBlur extends ScriptIntrinsic
Script.Builder, Script.FieldBase, Script.FieldID, Script.InvokeID, Script.KernelID, Script.LaunchOptions
Modifier | Constructor and Description |
---|---|
protected |
ScriptIntrinsicBlur(long id,
RenderScript rs) |
Modifier and Type | Method and Description |
---|---|
static ScriptIntrinsicBlur |
create(RenderScript rs,
Element e)
Create an intrinsic for applying a blur to an allocation.
|
void |
forEach(Allocation aout)
Apply the filter to the input and save to the specified
allocation.
|
Script.FieldID |
getFieldID_Input()
Get a FieldID for the input field of this intrinsic.
|
Script.KernelID |
getKernelID()
Get a KernelID for this intrinsic kernel.
|
void |
setInput(Allocation ain)
Set the input of the blur.
|
void |
setRadius(float radius)
Set the radius of the Blur.
|
bindAllocation, createFieldID, createInvokeID, createKernelID, forEach, forEach, forEach, forEach, invoke, invoke, isIncSupp, reduce, setIncSupp, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
protected ScriptIntrinsicBlur(long id, RenderScript rs)
public static ScriptIntrinsicBlur create(RenderScript rs, Element e)
Element.U8(android.support.v8.renderscript.RenderScript)
,
Element.U8_4(android.support.v8.renderscript.RenderScript)
.rs
- The RenderScript contexte
- Element type for inputs and outputspublic void setInput(Allocation ain)
ain
- The input allocationpublic void setRadius(float radius)
radius
- The radius of the blurpublic void forEach(Allocation aout)
aout
- Output allocation. Must match creation element
type.public Script.KernelID getKernelID()
public Script.FieldID getFieldID_Input()