Most visited

Recently visited

ScriptIntrinsicLUT

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)的全部数值范围。

摘要(Summary)

Protected constructors

ScriptIntrinsicLUT(long id, RenderScript rs)

公共方法(Public methods)

static ScriptIntrinsicLUT create(RenderScript rs, Element e)

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

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)

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

Protected constructors

ScriptIntrinsicLUT

ScriptIntrinsicLUT (long id, 
                RenderScript rs)

参数(Parameters)
id long
rs RenderScript

公共方法(Public methods)

create

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

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.

setAlpha

void setAlpha (int index, 
                int value)

在alpha通道查找表中设置一个条目

参数(Parameters)
index int: Must be 0-255
value int: Must be 0-255

setBlue

void setBlue (int index, 
                int value)

在蓝色通道查找表中设置一个条目

参数(Parameters)
index int: Must be 0-255
value int: Must be 0-255

setGreen

void setGreen (int index, 
                int value)

在绿色通道查找表中设置一个条目

参数(Parameters)
index int: Must be 0-255
value int: Must be 0-255

setRed

void setRed (int index, 
                int value)

在红色通道查找表中设置一个条目

参数(Parameters)
index int: Must be 0-255
value int: Must be 0-255

Hooray!