Most visited

Recently visited

Added in API level 20

ScriptIntrinsicResize

public final class ScriptIntrinsicResize
extends ScriptIntrinsic

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


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

摘要(Summary)

公共方法(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, Script.LaunchOptions opt)

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

void forEach_bicubic(Allocation aout)

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

Script.FieldID getFieldID_Input()

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

Script.KernelID getKernelID_bicubic()

为此内核获取KernelID。

void setInput(Allocation ain)

设置调整大小的输入。

继承方法(Inherited methods)

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

公共方法(Public methods)

create

Added in API level 20
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

Added in API level 20
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

forEach_bicubic

Added in API level 20
void forEach_bicubic (Allocation aout)

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

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

getFieldID_Input

Added in API level 20
Script.FieldID getFieldID_Input ()

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

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

getKernelID_bicubic

Added in API level 20
Script.KernelID getKernelID_bicubic ()

为此内核获取KernelID。

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

setInput

Added in API level 20
void setInput (Allocation ain)

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

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

Hooray!