Class Overview
Intrinsic for applying a 3x3 convolve to 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
Supported elements types are U8_4(RenderScript)
The default coefficients are.
[ 0, 0, 0 ]
[ 0, 1, 0 ]
[ 0, 0, 0 ]
Parameters
rs
| The Renderscript context |
e
| Element type for intputs and outputs |
Returns
- ScriptIntrinsicConvolve3x3
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
setCoefficients
(float[] v)
Set the coefficients for the convolve.
The convolve layout is
[ 0, 1, 2 ]
[ 3, 4, 5 ]
[ 6, 7, 8 ]
Parameters
v
| The array of coefficients to set
|
public
void
setInput
(Allocation ain)
Set the input of the blur.
Must match the element type supplied during create.
Parameters
ain
| The input allocation.
|