public final class ScriptIntrinsicLUT
extends ScriptIntrinsic
| java.lang.Object | ||||
| android.renderscript.BaseObj | ||||
| android.renderscript.Script | ||||
| android.renderscript.ScriptIntrinsic | ||||
| android.renderscript.ScriptIntrinsicLUT | ||||
用于应用每个通道查找表的固有内容。 输入的每个通道都有一个独立的查找表。 这些表格的大小为256个,可以覆盖U8_4(RenderScript)的全部数值范围。
公共方法(Public methods) |
|
|---|---|
static ScriptIntrinsicLUT |
create(RenderScript rs, Element e) 受支持的元素类型是 |
void |
forEach(Allocation ain, Allocation aout) 调用内核并将查找应用于ain的每个单元并复制到aout。 |
void |
forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) 调用内核并将查找应用于ain的每个单元并复制到aout。 |
Script.KernelID |
getKernelID() 为此内核获取KernelID。 |
void |
setAlpha(int index, int value) 在alpha通道查找表中设置一个条目 |
void |
setBlue(int index, int value) 在蓝色通道查找表中设置一个条目 |
void |
setGreen(int index, int value) 在绿色通道查找表中设置一个条目 |
void |
setRed(int index, int value) 在红色通道查找表中设置一个条目 |
继承方法(Inherited methods) |
|
|---|---|
android.renderscript.Script
|
|
android.renderscript.BaseObj
|
|
java.lang.Object
|
|
ScriptIntrinsicLUT create (RenderScript rs, Element e)
支持的元素类型是 U8_4(RenderScript)默认表是标识。
| 参数(Parameters) | |
|---|---|
rs |
RenderScript: The RenderScript context |
e |
Element: Element type for intputs and outputs |
| 返回(Returns) | |
|---|---|
ScriptIntrinsicLUT |
ScriptIntrinsicLUT |
void forEach (Allocation ain, Allocation aout)
调用内核并将查找应用于ain的每个单元并复制到aout。
| 参数(Parameters) | |
|---|---|
ain |
Allocation: Input allocation |
aout |
Allocation: Output allocation |
void forEach (Allocation ain, Allocation aout, Script.LaunchOptions opt)
调用内核并将查找应用于ain的每个单元并复制到aout。
| 参数(Parameters) | |
|---|---|
ain |
Allocation: Input allocation |
aout |
Allocation: Output allocation |
opt |
Script.LaunchOptions: Options for clipping |
Script.KernelID getKernelID ()
为此内核获取KernelID。
| 返回(Returns) | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
void setAlpha (int index,
int value)
在alpha通道查找表中设置一个条目
| 参数(Parameters) | |
|---|---|
index |
int: Must be 0-255 |
value |
int: Must be 0-255 |
void setBlue (int index,
int value)
在蓝色通道查找表中设置一个条目
| 参数(Parameters) | |
|---|---|
index |
int: Must be 0-255 |
value |
int: Must be 0-255 |
void setGreen (int index,
int value)
在绿色通道查找表中设置一个条目
| 参数(Parameters) | |
|---|---|
index |
int: Must be 0-255 |
value |
int: Must be 0-255 |
void setRed (int index,
int value)
在红色通道查找表中设置一个条目
| 参数(Parameters) | |
|---|---|
index |
int: Must be 0-255 |
value |
int: Must be 0-255 |