Most visited

Recently visited

ScriptIntrinsic3DLUT

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个最接近的值进行采样和线性插值。 结果放置在输出中。

Summary

Protected constructors

ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e)

Public methods

static ScriptIntrinsic3DLUT create(RenderScript rs, Element e)

受支持的元素类型是 U8_4(RenderScript)默认表是标识。

void forEach(Allocation ain, Allocation aout)

调用内核并将查找应用于ain的每个单元并复制到aout。

Script.KernelID getKernelID()

为此内核获取KernelID。

void setLUT(Allocation lut)

将 Allocation设置为查找表。

Inherited methods

From class android.support.v8.renderscript.Script
From class android.support.v8.renderscript.BaseObj
From class java.lang.Object

Protected constructors

ScriptIntrinsic3DLUT

ScriptIntrinsic3DLUT (long id, 
                RenderScript rs, 
                Element e)

Parameters
id long
rs RenderScript
e Element

Public methods

create

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

forEach

void forEach (Allocation ain, 
                Allocation aout)

调用内核并将查找应用于ain的每个单元并复制到aout。

Parameters
ain Allocation: Input allocation
aout Allocation: Output allocation

getKernelID

Script.KernelID getKernelID ()

为此内核获取KernelID。

Returns
Script.KernelID Script.KernelID The KernelID object.

setLUT

void setLUT (Allocation lut)

将Allocation设置为查找表。 查找表必须使用与内部相同的Element 。

Parameters
lut Allocation

Hooray!