public class ScriptIntrinsicLUT
extends ScriptIntrinsic
java.lang.Object | ||||
android.support.v8.renderscript.BaseObj | ||||
android.support.v8.renderscript.Script | ||||
android.support.v8.renderscript.ScriptIntrinsic | ||||
android.support.v8.renderscript.ScriptIntrinsicLUT |
用于应用每个通道查找表的固有内容。 输入的每个通道都有一个独立的查找表。 这些表格的大小为256个,可以覆盖U8_4(RenderScript)
的全部数值范围。
Protected constructors |
|
---|---|
ScriptIntrinsicLUT(long id, RenderScript rs) |
公共方法(Public methods) |
|
---|---|
static ScriptIntrinsicLUT |
create(RenderScript rs, Element e) 支持的元素类型是 |
void |
forEach(Allocation ain, Allocation aout) 调用内核并将查找应用于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.support.v8.renderscript.Script
|
|
![]() android.support.v8.renderscript.BaseObj
|
|
![]() java.lang.Object
|
ScriptIntrinsicLUT (long id, RenderScript rs)
参数(Parameters) | |
---|---|
id |
long
|
rs |
RenderScript
|
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 |
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 |