public final class ScriptIntrinsic3DLUT
extends ScriptIntrinsic
| java.lang.Object | ||||
| android.renderscript.BaseObj | ||||
| android.renderscript.Script | ||||
| android.renderscript.ScriptIntrinsic | ||||
| android.renderscript.ScriptIntrinsic3DLUT | ||||
通过使用3D查找表将RGB转换为RGBA是固有的。 输入的r,g,b值被用作归一化的x,y,z坐标以进行3D分配。 对8个最接近的值进行采样和线性插值。 结果放置在输出中。
公共方法(Public methods) |
|
|---|---|
static ScriptIntrinsic3DLUT |
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 |
setLUT(Allocation lut) 将 |
继承方法(Inherited methods) |
|
|---|---|
android.renderscript.Script
|
|
android.renderscript.BaseObj
|
|
java.lang.Object
|
|
ScriptIntrinsic3DLUT create (RenderScript rs, Element e)
支持的元素类型是 U8_4(RenderScript)默认表是标识。
| 参数(Parameters) | |
|---|---|
rs |
RenderScript: The RenderScript context |
e |
Element: Element type for intputs and outputs |
| 返回(Returns) | |
|---|---|
ScriptIntrinsic3DLUT |
ScriptIntrinsic3DLUT |
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: Launch options for kernel |
Script.KernelID getKernelID ()
为此内核获取KernelID。
| 返回(Returns) | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
void setLUT (Allocation lut)
将Allocation设置为查找表。 查找表必须使用与内部相同的Element 。
| 参数(Parameters) | |
|---|---|
lut |
Allocation
|