java.lang.Object | ||||
↳ | android.renderscript.BaseObj | |||
↳ | android.renderscript.Script | |||
↳ | android.renderscript.ScriptIntrinsic | |||
↳ | android.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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Supported elements types are
U8_4(RenderScript)
The defaults tables are identity.
|
||||||||||
|
Invoke the kernel and apply the lookup to each cell of ain
and copy to aout.
|
||||||||||
|
Get a KernelID for this intrinsic kernel.
|
||||||||||
|
Sets the
Allocation
to be used as the lookup table.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.renderscript.Script
|
|||||||||||
From class
android.renderscript.BaseObj
|
|||||||||||
From class
java.lang.Object
|
Supported elements types are
U8_4(RenderScript)
The defaults tables are identity.
rs | The RenderScript context |
---|---|
e | Element type for intputs and outputs |
Invoke the kernel and apply the lookup to each cell of ain and copy to aout.
ain | Input allocation |
---|---|
aout | Output allocation |
Get a KernelID for this intrinsic kernel.
Sets the
Allocation
to be used as the lookup table.
The lookup table must use the same
Element
as the intrinsic.