public final class ScriptIntrinsicBlur extends ScriptIntrinsic
Script.Builder, Script.FieldBase, Script.FieldID, Script.InvokeID, Script.KernelID, Script.LaunchOptions
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.
|
void |
forEach(Allocation aout,
Script.LaunchOptions opt)
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, getVarB, getVarD, getVarF, getVarI, getVarJ, getVarV, invoke, invoke, reduce, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
public static ScriptIntrinsicBlur create(RenderScript rs, Element e)
Element.U8(android.renderscript.RenderScript)
,
Element.U8_4(android.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 void forEach(Allocation aout, Script.LaunchOptions opt)
aout
- Output allocation. Must match creation element
type.opt
- LaunchOptions for clippingpublic Script.KernelID getKernelID()
public Script.FieldID getFieldID_Input()