public
class
ScriptIntrinsic3DLUT
extends ScriptIntrinsic
| java.lang.Object | ||||
| ↳ | android.support.v8.renderscript.BaseObj | |||
| ↳ | android.support.v8.renderscript.Script | |||
| ↳ | android.support.v8.renderscript.ScriptIntrinsic | |||
| ↳ | android.support.v8.renderscript.ScriptIntrinsic3DLUT | |||
Intrinsic for converting RGB to RGBA by using a 3D lookup table. The incoming r,g,b values are use as normalized x,y,z coordinates into a 3D allocation. The 8 nearest values are sampled and linearly interpolated. The result is placed in the output.
Protected constructors | |
|---|---|
ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e)
|
|
Public methods | |
|---|---|
static
ScriptIntrinsic3DLUT
|
create(RenderScript rs, Element e)
Supported elements types are |
void
|
forEach(Allocation ain, Allocation aout)
Invoke the kernel and apply the lookup to each cell of ain and copy to aout. |
Script.KernelID
|
getKernelID()
Get a KernelID for this intrinsic kernel. |
void
|
setLUT(Allocation lut)
Sets the |
Inherited methods | |
|---|---|
android.support.v8.renderscript.Script
| |
android.support.v8.renderscript.BaseObj
| |
java.lang.Object
| |
ScriptIntrinsic3DLUT (long id,
RenderScript rs,
Element e)
| Parameters | |
|---|---|
id |
long
|
rs |
RenderScript
|
e |
Element
|
ScriptIntrinsic3DLUT create (RenderScript rs, Element e)
Supported elements types are U8_4(RenderScript)
The defaults tables are identity.
| Parameters | |
|---|---|
rs |
RenderScript:
The RenderScript context |
e |
Element:
Element type for intputs and outputs |
| Returns | |
|---|---|
ScriptIntrinsic3DLUT |
ScriptIntrinsic3DLUT |
void forEach (Allocation ain, Allocation aout)
Invoke the kernel and apply the lookup to each cell of ain and copy to aout.
| Parameters | |
|---|---|
ain |
Allocation:
Input allocation |
aout |
Allocation:
Output allocation
|
Script.KernelID getKernelID ()
Get a KernelID for this intrinsic kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
void setLUT (Allocation lut)
Sets the Allocation to be used as
the lookup table.
The lookup table must use the same
Element as the intrinsic.
| Parameters | |
|---|---|
lut |
Allocation
|