Class Overview
Intrinsic Gausian blur filter. Applies a gaussian blur of the
specified radius to all elements of an allocation.
Summary
[Expand]
Inherited Methods |
From class
android.renderscript.Script
void
|
bindAllocation(Allocation va, int slot)
Only intended for use by generated reflected code.
|
Script.FieldID
|
createFieldID(int slot, Element e)
Only to be used by generated reflected classes.
|
Script.KernelID
|
createKernelID(int slot, int sig, Element ein, Element eout)
Only to be used by generated reflected classes.
|
void
|
forEach(int slot, Allocation ain, Allocation aout, FieldPacker v)
Only intended for use by generated reflected code.
|
void
|
invoke(int slot)
Only intended for use by generated reflected code.
|
void
|
invoke(int slot, FieldPacker v)
Only intended for use by generated reflected code.
|
void
|
setTimeZone(String timeZone)
|
void
|
setVar(int index, int v)
Only intended for use by generated reflected code.
|
void
|
setVar(int index, FieldPacker v)
Only intended for use by generated reflected code.
|
void
|
setVar(int index, FieldPacker v, Element e, int[] dims)
Only intended for use by generated reflected code.
|
void
|
setVar(int index, double v)
Only intended for use by generated reflected code.
|
void
|
setVar(int index, boolean v)
Only intended for use by generated reflected code.
|
void
|
setVar(int index, float v)
Only intended for use by generated reflected code.
|
void
|
setVar(int index, long v)
Only intended for use by generated reflected code.
|
void
|
setVar(int index, BaseObj o)
Only intended for use by generated reflected code.
|
|
From class
android.renderscript.BaseObj
synchronized
void
|
destroy()
destroy disconnects the object from the native object effectively
rendering this java object dead.
|
boolean
|
equals(Object obj)
Compare the current BaseObj with another BaseObj for equality.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
String
|
getName()
|
int
|
hashCode()
Calculates the hash code value for a BaseObj.
|
void
|
setName(String name)
setName assigns a name to an object.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Methods
Create an intrinsic for applying a blur to an allocation. The
default radius is 5.0.
Supported elements types are U8_4(RenderScript)
Parameters
rs
| The Renderscript context |
e
| Element type for inputs and outputs |
public
void
forEach
(Allocation aout)
Apply the filter to the input and save to the specified
allocation.
Parameters
aout
| Output allocation. Must match creation element
type.
|
Get a FieldID for the input field of this intrinsic.
Returns
- Script.FieldID The FieldID object.
Get a KernelID for this intrinsic kernel.
Returns
- Script.KernelID The KernelID object.
public
void
setInput
(Allocation ain)
Set the input of the blur.
Must match the element type supplied during create.
public
void
setRadius
(float radius)
Set the radius of the Blur.
Supported range 0 < radius <= 25
Parameters
radius
| The radius of the blur
|