| java.lang.Object | ||||
| ↳ | android.support.v8.renderscript.BaseObj | |||
| ↳ | android.support.v8.renderscript.Script | |||
| ↳ | android.support.v8.renderscript.ScriptIntrinsic | |||
| ↳ | android.support.v8.renderscript.ScriptIntrinsicConvolve3x3 | |||
Intrinsic for applying a 3x3 convolve to an allocation.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Supported elements types are
U8(RenderScript), U8_2(RenderScript), U8_3(RenderScript), U8_4(RenderScript),
F32(RenderScript), F32_2(RenderScript), F32_3(RenderScript), and F32_4(RenderScript)
The default coefficients are.
| |||||||||||
Apply the filter to the input and save to the specified
allocation.
| |||||||||||
Apply the filter to the input and save to the specified
allocation.
| |||||||||||
Get a FieldID for the input field of this intrinsic.
| |||||||||||
Get a KernelID for this intrinsic kernel.
| |||||||||||
Set the coefficients for the convolve.
| |||||||||||
Set the input of the blur.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
|
| |||||||||||
Supported elements types are [ 0, 0, 0 ]
[ 0, 1, 0 ]
[ 0, 0, 0 ]
U8(RenderScript), U8_2(RenderScript), U8_3(RenderScript), U8_4(RenderScript),
F32(RenderScript), F32_2(RenderScript), F32_3(RenderScript), and F32_4(RenderScript)
The default coefficients are.
| Parameters | |
|---|---|
rs |
RenderScript:
The RenderScript context |
e |
Element:
Element type for intputs and outputs |
| Returns | |
|---|---|
ScriptIntrinsicConvolve3x3 |
ScriptIntrinsicConvolve3x3 |
Apply the filter to the input and save to the specified allocation.
| Parameters | |
|---|---|
aout |
Allocation:
Output allocation. Must match creation element
type. |
opt |
Script.LaunchOptions:
LaunchOptions for clipping
|
Apply the filter to the input and save to the specified allocation.
| Parameters | |
|---|---|
aout |
Allocation:
Output allocation. Must match creation element
type.
|
Get a FieldID for the input field of this intrinsic.
| Returns | |
|---|---|
Script.FieldID |
Script.FieldID The FieldID object. |
Get a KernelID for this intrinsic kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
Set the coefficients for the convolve.
The convolve layout is
[ 0, 1, 2 ]
[ 3, 4, 5 ]
[ 6, 7, 8 ]
| Parameters | |
|---|---|
v |
float:
The array of coefficients to set
|
Set the input of the blur. Must match the element type supplied during create.
| Parameters | |
|---|---|
ain |
Allocation:
The input allocation.
|