ScriptIntrinsic3DLUT
public
final
class
ScriptIntrinsic3DLUT
extends ScriptIntrinsic
| 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.
Summary
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. |
void
|
forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt)
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.renderscript.Script
| |
android.renderscript.BaseObj
| |
java.lang.Object
| |
Public methods
create
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 |
forEach
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
|
forEach
void forEach (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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 |
opt |
Script.LaunchOptions: Launch options for kernel
|
getKernelID
Script.KernelID getKernelID ()
Get a KernelID for this intrinsic kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
setLUT
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 |
Interfaces
Classes
- Allocation
- AllocationAdapter
- BaseObj
- Byte2
- Byte3
- Byte4
- Double2
- Double3
- Double4
- Element
- Element.Builder
- FieldPacker
- Float2
- Float3
- Float4
- Int2
- Int3
- Int4
- Long2
- Long3
- Long4
- Matrix2f
- Matrix3f
- Matrix4f
- RenderScript
- RenderScript.RSErrorHandler
- RenderScript.RSMessageHandler
- Sampler
- Sampler.Builder
- Script
- Script.Builder
- Script.FieldBase
- Script.FieldID
- Script.InvokeID
- Script.KernelID
- Script.LaunchOptions
- ScriptC
- ScriptGroup
- ScriptGroup.Binding
- ScriptGroup.Builder
- ScriptGroup.Builder2
- ScriptGroup.Closure
- ScriptGroup.Future
- ScriptGroup.Input
- ScriptIntrinsic
- ScriptIntrinsic3DLUT
- ScriptIntrinsicBLAS
- ScriptIntrinsicBlend
- ScriptIntrinsicBlur
- ScriptIntrinsicColorMatrix
- ScriptIntrinsicConvolve3x3
- ScriptIntrinsicConvolve5x5
- ScriptIntrinsicHistogram
- ScriptIntrinsicLUT
- ScriptIntrinsicResize
- ScriptIntrinsicYuvToRGB
- Short2
- Short3
- Short4
- Type
- Type.Builder
Enums
Exceptions


