ScriptIntrinsicLUT
public
final
class
ScriptIntrinsicLUT
extends ScriptIntrinsic
| java.lang.Object | ||||
| ↳ | android.renderscript.BaseObj | |||
| ↳ | android.renderscript.Script | |||
| ↳ | android.renderscript.ScriptIntrinsic | |||
| ↳ | android.renderscript.ScriptIntrinsicLUT | |||
Intrinsic for applying a per-channel lookup table. Each
channel of the input has an independant lookup table. The
tables are 256 entries in size and can cover the full value
range of U8_4(RenderScript).
Summary
Public methods | |
|---|---|
static
ScriptIntrinsicLUT
|
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
|
setAlpha(int index, int value)
Set an entry in the alpha channel lookup table |
void
|
setBlue(int index, int value)
Set an entry in the blue channel lookup table |
void
|
setGreen(int index, int value)
Set an entry in the green channel lookup table |
void
|
setRed(int index, int value)
Set an entry in the red channel lookup table |
Inherited methods | |
|---|---|
android.renderscript.Script
| |
android.renderscript.BaseObj
| |
java.lang.Object
| |
Public methods
create
ScriptIntrinsicLUT 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 | |
|---|---|
ScriptIntrinsicLUT |
ScriptIntrinsicLUT |
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:
Options for clipping
|
getKernelID
Script.KernelID getKernelID ()
Get a KernelID for this intrinsic kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
setAlpha
void setAlpha (int index,
int value)
Set an entry in the alpha channel lookup table
| Parameters | |
|---|---|
index |
int:
Must be 0-255 |
value |
int:
Must be 0-255
|
setBlue
void setBlue (int index,
int value)
Set an entry in the blue channel lookup table
| Parameters | |
|---|---|
index |
int:
Must be 0-255 |
value |
int:
Must be 0-255
|
setGreen
void setGreen (int index,
int value)
Set an entry in the green channel lookup table
| Parameters | |
|---|---|
index |
int:
Must be 0-255 |
value |
int:
Must be 0-255
|
setRed
void setRed (int index,
int value)
Set an entry in the red channel lookup table
| Parameters | |
|---|---|
index |
int:
Must be 0-255 |
value |
int:
Must be 0-255
|
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

