Most visited

Recently visited

ScriptIntrinsicResize

public class ScriptIntrinsicResize
extends ScriptIntrinsic

java.lang.Object
    android.support.v8.renderscript.BaseObj
      android.support.v8.renderscript.Script
        android.support.v8.renderscript.ScriptIntrinsic
          android.support.v8.renderscript.ScriptIntrinsicResize


用于执行2D分配的调整大小。

摘要(Summary)

Protected constructors

ScriptIntrinsicResize(long id, RenderScript rs)

公共方法(Public methods)

static ScriptIntrinsicResize create(RenderScript rs)

支持的元素类型是 U8(RenderScript)U8_2(RenderScript)U8_3(RenderScript)U8_4(RenderScript) F32(RenderScript)F32_2(RenderScript)F32_3(RenderScript)F32_4(RenderScript)

void forEach_bicubic(Allocation aout)

调整大小将输入分配复制到指定的输出。

void forEach_bicubic(Allocation aout, Script.LaunchOptions opt)

调整大小将输入分配复制到指定的输出。

Script.FieldID getFieldID_Input()

获取此内在的输入字段的FieldID。

Script.KernelID getKernelID_bicubic()

为此内核获取KernelID。

void setInput(Allocation ain)

设置调整大小的输入。

继承方法(Inherited methods)

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

Protected constructors

ScriptIntrinsicResize

ScriptIntrinsicResize (long id, 
                RenderScript rs)

参数(Parameters)
id long
rs RenderScript

公共方法(Public methods)

create

ScriptIntrinsicResize create (RenderScript rs)

支持的元素类型是 U8(RenderScript)U8_2(RenderScript)U8_3(RenderScript)U8_4(RenderScript) F32(RenderScript)F32_2(RenderScript)F32_3(RenderScript)F32_4(RenderScript)

参数(Parameters)
rs RenderScript: The RenderScript context
返回(Returns)
ScriptIntrinsicResize ScriptIntrinsicResize

forEach_bicubic

void forEach_bicubic (Allocation aout)

调整大小将输入分配复制到指定的输出。 如有必要,使用双三次插值将分配重新调整比例。

参数(Parameters)
aout Allocation: Output allocation. Element type must match current input. Must not be same as input.

forEach_bicubic

void forEach_bicubic (Allocation aout, 
                Script.LaunchOptions opt)

调整大小将输入分配复制到指定的输出。 如有必要,使用双三次插值将分配重新调整比例。

参数(Parameters)
aout Allocation: Output allocation. Element type must match current input.
opt Script.LaunchOptions: LaunchOptions for clipping

getFieldID_Input

Script.FieldID getFieldID_Input ()

获取此内在的输入字段的FieldID。

返回(Returns)
Script.FieldID Script.FieldID The FieldID object.

getKernelID_bicubic

Script.KernelID getKernelID_bicubic ()

为此内核获取KernelID。

返回(Returns)
Script.KernelID Script.KernelID The KernelID object.

setInput

void setInput (Allocation ain)

设置调整大小的输入。 必须与创建期间提供的元素类型相匹配。

参数(Parameters)
ain Allocation: The input allocation.

Hooray!