public final class ScriptIntrinsicLUT extends ScriptIntrinsic
Element.U8_4(android.renderscript.RenderScript)
.Script.Builder, Script.FieldBase, Script.FieldID, Script.InvokeID, Script.KernelID, Script.LaunchOptions
Modifier and Type | Method and Description |
---|---|
static ScriptIntrinsicLUT |
create(RenderScript rs,
Element e)
Supported elements types are
Element.U8_4(android.renderscript.RenderScript)
The defaults tables are identity. |
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
|
bindAllocation, createFieldID, createInvokeID, createKernelID, forEach, forEach, forEach, forEach, getVarB, getVarD, getVarF, getVarI, getVarJ, getVarV, invoke, invoke, reduce, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
public static ScriptIntrinsicLUT create(RenderScript rs, Element e)
Element.U8_4(android.renderscript.RenderScript)
The defaults tables are identity.rs
- The RenderScript contexte
- Element type for intputs and outputspublic void setRed(int index, int value)
index
- Must be 0-255value
- Must be 0-255public void setGreen(int index, int value)
index
- Must be 0-255value
- Must be 0-255public void setBlue(int index, int value)
index
- Must be 0-255value
- Must be 0-255public void setAlpha(int index, int value)
index
- Must be 0-255value
- Must be 0-255public void forEach(Allocation ain, Allocation aout)
ain
- Input allocationaout
- Output allocationpublic void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt)
ain
- Input allocationaout
- Output allocationopt
- Options for clippingpublic Script.KernelID getKernelID()