Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

ScriptIntrinsicLUT

extends ScriptIntrinsic
java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.renderscript.Script
       ↳ android.renderscript.ScriptIntrinsic
         ↳ android.renderscript.ScriptIntrinsicLUT

Class Overview

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 U8_4(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 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
[Expand]
Inherited Methods
From class android.renderscript.Script
From class android.renderscript.BaseObj
From class java.lang.Object

Public Methods

public static ScriptIntrinsicLUT create ( RenderScript rs, Element e)

Supported elements types are U8_4(RenderScript) The defaults tables are identity.

Parameters
rs The RenderScript context
e Element type for intputs and outputs
Returns
  • ScriptIntrinsicLUT

public void forEach ( Allocation ain, Allocation aout)

Invoke the kernel and apply the lookup to each cell of ain and copy to aout.

Parameters
ain Input allocation
aout Output allocation

public Script.KernelID getKernelID ()

Get a KernelID for this intrinsic kernel.

Returns
  • Script.KernelID The KernelID object.

public void setAlpha (int index, int value)

Set an entry in the alpha channel lookup table

Parameters
index Must be 0-255
value Must be 0-255

public void setBlue (int index, int value)

Set an entry in the blue channel lookup table

Parameters
index Must be 0-255
value Must be 0-255

public void setGreen (int index, int value)

Set an entry in the green channel lookup table

Parameters
index Must be 0-255
value Must be 0-255

public void setRed (int index, int value)

Set an entry in the red channel lookup table

Parameters
index Must be 0-255
value Must be 0-255