public class ScriptIntrinsic3DLUT
extends ScriptIntrinsic
| java.lang.Object | ||||
| android.support.v8.renderscript.BaseObj | ||||
| android.support.v8.renderscript.Script | ||||
| android.support.v8.renderscript.ScriptIntrinsic | ||||
| android.support.v8.renderscript.ScriptIntrinsic3DLUT | ||||
通过使用3D查找表将RGB转换为RGBA是固有的。 输入的r,g,b值被用作归一化的x,y,z坐标以进行3D分配。 对8个最接近的值进行采样和线性插值。 结果放置在输出中。
Protected constructors |
|
|---|---|
ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e) |
|
公共方法(Public methods) |
|
|---|---|
static ScriptIntrinsic3DLUT |
create(RenderScript rs, Element e) 受支持的元素类型是 |
void |
forEach(Allocation ain, Allocation aout) 调用内核并将查找应用于ain的每个单元并复制到aout。 |
Script.KernelID |
getKernelID() 为此内核获取KernelID。 |
void |
setLUT(Allocation lut) 将 |
继承方法(Inherited methods) |
|
|---|---|
android.support.v8.renderscript.Script
|
|
android.support.v8.renderscript.BaseObj
|
|
java.lang.Object
|
|
ScriptIntrinsic3DLUT (long id,
RenderScript rs,
Element e)
| 参数(Parameters) | |
|---|---|
id |
long
|
rs |
RenderScript
|
e |
Element
|
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 |
Script.KernelID getKernelID ()
为此内核获取KernelID。
| 返回(Returns) | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
void setLUT (Allocation lut)
将Allocation设置为查找表。 查找表必须使用与内部相同的Element 。
| 参数(Parameters) | |
|---|---|
lut |
Allocation
|