public class ScriptIntrinsic3DLUT extends ScriptIntrinsic
Script.Builder, Script.FieldBase, Script.FieldID, Script.InvokeID, Script.KernelID, Script.LaunchOptions
Modifier | Constructor and Description |
---|---|
protected |
ScriptIntrinsic3DLUT(long id,
RenderScript rs,
Element e) |
Modifier and Type | Method and Description |
---|---|
static ScriptIntrinsic3DLUT |
create(RenderScript rs,
Element e)
Supported elements types are
Element.U8_4(android.support.v8.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.
|
Script.KernelID |
getKernelID()
Get a KernelID for this intrinsic kernel.
|
void |
setLUT(Allocation lut)
Sets the
Allocation to be used as
the lookup table. |
bindAllocation, createFieldID, createInvokeID, createKernelID, forEach, forEach, forEach, forEach, invoke, invoke, isIncSupp, reduce, setIncSupp, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
protected ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e)
public static ScriptIntrinsic3DLUT create(RenderScript rs, Element e)
Element.U8_4(android.support.v8.renderscript.RenderScript)
The defaults tables are identity.rs
- The RenderScript contexte
- Element type for intputs and outputspublic void setLUT(Allocation lut)
Allocation
to be used as
the lookup table.
The lookup table must use the same
Element
as the intrinsic.public void forEach(Allocation ain, Allocation aout)
ain
- Input allocationaout
- Output allocationpublic Script.KernelID getKernelID()